diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_list_meta.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_list_meta.py new file mode 100644 index 0000000000000000000000000000000000000000..974e7ecb798dfac9116ac4099a61d7ab2f50c484 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_list_meta.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ListMeta(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + '_continue': 'str', + 'remaining_item_count': 'int', + 'resource_version': 'str', + 'self_link': 'str' + } + + attribute_map = { + '_continue': 'continue', + 'remaining_item_count': 'remainingItemCount', + 'resource_version': 'resourceVersion', + 'self_link': 'selfLink' + } + + def __init__(self, _continue=None, remaining_item_count=None, resource_version=None, self_link=None, local_vars_configuration=None): # noqa: E501 + """V1ListMeta - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self.__continue = None + self._remaining_item_count = None + self._resource_version = None + self._self_link = None + self.discriminator = None + + if _continue is not None: + self._continue = _continue + if remaining_item_count is not None: + self.remaining_item_count = remaining_item_count + if resource_version is not None: + self.resource_version = resource_version + if self_link is not None: + self.self_link = self_link + + @property + def _continue(self): + """Gets the _continue of this V1ListMeta. # noqa: E501 + + continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. # noqa: E501 + + :return: The _continue of this V1ListMeta. # noqa: E501 + :rtype: str + """ + return self.__continue + + @_continue.setter + def _continue(self, _continue): + """Sets the _continue of this V1ListMeta. + + continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. # noqa: E501 + + :param _continue: The _continue of this V1ListMeta. # noqa: E501 + :type: str + """ + + self.__continue = _continue + + @property + def remaining_item_count(self): + """Gets the remaining_item_count of this V1ListMeta. # noqa: E501 + + remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. # noqa: E501 + + :return: The remaining_item_count of this V1ListMeta. # noqa: E501 + :rtype: int + """ + return self._remaining_item_count + + @remaining_item_count.setter + def remaining_item_count(self, remaining_item_count): + """Sets the remaining_item_count of this V1ListMeta. + + remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. # noqa: E501 + + :param remaining_item_count: The remaining_item_count of this V1ListMeta. # noqa: E501 + :type: int + """ + + self._remaining_item_count = remaining_item_count + + @property + def resource_version(self): + """Gets the resource_version of this V1ListMeta. # noqa: E501 + + String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency # noqa: E501 + + :return: The resource_version of this V1ListMeta. # noqa: E501 + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """Sets the resource_version of this V1ListMeta. + + String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency # noqa: E501 + + :param resource_version: The resource_version of this V1ListMeta. # noqa: E501 + :type: str + """ + + self._resource_version = resource_version + + @property + def self_link(self): + """Gets the self_link of this V1ListMeta. # noqa: E501 + + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. # noqa: E501 + + :return: The self_link of this V1ListMeta. # noqa: E501 + :rtype: str + """ + return self._self_link + + @self_link.setter + def self_link(self, self_link): + """Sets the self_link of this V1ListMeta. + + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. # noqa: E501 + + :param self_link: The self_link of this V1ListMeta. # noqa: E501 + :type: str + """ + + self._self_link = self_link + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListMeta): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ListMeta): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_load_balancer_ingress.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_load_balancer_ingress.py new file mode 100644 index 0000000000000000000000000000000000000000..c4d1d43dad093511e21dba8b28dc4a1ed44b1968 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_load_balancer_ingress.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1LoadBalancerIngress(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'hostname': 'str', + 'ip': 'str', + 'ip_mode': 'str', + 'ports': 'list[V1PortStatus]' + } + + attribute_map = { + 'hostname': 'hostname', + 'ip': 'ip', + 'ip_mode': 'ipMode', + 'ports': 'ports' + } + + def __init__(self, hostname=None, ip=None, ip_mode=None, ports=None, local_vars_configuration=None): # noqa: E501 + """V1LoadBalancerIngress - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._hostname = None + self._ip = None + self._ip_mode = None + self._ports = None + self.discriminator = None + + if hostname is not None: + self.hostname = hostname + if ip is not None: + self.ip = ip + if ip_mode is not None: + self.ip_mode = ip_mode + if ports is not None: + self.ports = ports + + @property + def hostname(self): + """Gets the hostname of this V1LoadBalancerIngress. # noqa: E501 + + Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) # noqa: E501 + + :return: The hostname of this V1LoadBalancerIngress. # noqa: E501 + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this V1LoadBalancerIngress. + + Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) # noqa: E501 + + :param hostname: The hostname of this V1LoadBalancerIngress. # noqa: E501 + :type: str + """ + + self._hostname = hostname + + @property + def ip(self): + """Gets the ip of this V1LoadBalancerIngress. # noqa: E501 + + IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) # noqa: E501 + + :return: The ip of this V1LoadBalancerIngress. # noqa: E501 + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this V1LoadBalancerIngress. + + IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) # noqa: E501 + + :param ip: The ip of this V1LoadBalancerIngress. # noqa: E501 + :type: str + """ + + self._ip = ip + + @property + def ip_mode(self): + """Gets the ip_mode of this V1LoadBalancerIngress. # noqa: E501 + + IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing. # noqa: E501 + + :return: The ip_mode of this V1LoadBalancerIngress. # noqa: E501 + :rtype: str + """ + return self._ip_mode + + @ip_mode.setter + def ip_mode(self, ip_mode): + """Sets the ip_mode of this V1LoadBalancerIngress. + + IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing. # noqa: E501 + + :param ip_mode: The ip_mode of this V1LoadBalancerIngress. # noqa: E501 + :type: str + """ + + self._ip_mode = ip_mode + + @property + def ports(self): + """Gets the ports of this V1LoadBalancerIngress. # noqa: E501 + + Ports is a list of records of service ports If used, every port defined in the service should have an entry in it # noqa: E501 + + :return: The ports of this V1LoadBalancerIngress. # noqa: E501 + :rtype: list[V1PortStatus] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """Sets the ports of this V1LoadBalancerIngress. + + Ports is a list of records of service ports If used, every port defined in the service should have an entry in it # noqa: E501 + + :param ports: The ports of this V1LoadBalancerIngress. # noqa: E501 + :type: list[V1PortStatus] + """ + + self._ports = ports + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1LoadBalancerIngress): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1LoadBalancerIngress): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_load_balancer_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_load_balancer_status.py new file mode 100644 index 0000000000000000000000000000000000000000..7dbde0e17d8156b03d1a721eae25db37cf0c711f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_load_balancer_status.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1LoadBalancerStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'ingress': 'list[V1LoadBalancerIngress]' + } + + attribute_map = { + 'ingress': 'ingress' + } + + def __init__(self, ingress=None, local_vars_configuration=None): # noqa: E501 + """V1LoadBalancerStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._ingress = None + self.discriminator = None + + if ingress is not None: + self.ingress = ingress + + @property + def ingress(self): + """Gets the ingress of this V1LoadBalancerStatus. # noqa: E501 + + Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. # noqa: E501 + + :return: The ingress of this V1LoadBalancerStatus. # noqa: E501 + :rtype: list[V1LoadBalancerIngress] + """ + return self._ingress + + @ingress.setter + def ingress(self, ingress): + """Sets the ingress of this V1LoadBalancerStatus. + + Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. # noqa: E501 + + :param ingress: The ingress of this V1LoadBalancerStatus. # noqa: E501 + :type: list[V1LoadBalancerIngress] + """ + + self._ingress = ingress + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1LoadBalancerStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1LoadBalancerStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_object_reference.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_object_reference.py new file mode 100644 index 0000000000000000000000000000000000000000..36a563aa09096e675573f037e4690a9007968cac --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_object_reference.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1LocalObjectReference(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None, local_vars_configuration=None): # noqa: E501 + """V1LocalObjectReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self.discriminator = None + + if name is not None: + self.name = name + + @property + def name(self): + """Gets the name of this V1LocalObjectReference. # noqa: E501 + + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :return: The name of this V1LocalObjectReference. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1LocalObjectReference. + + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :param name: The name of this V1LocalObjectReference. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1LocalObjectReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1LocalObjectReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_subject_access_review.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_subject_access_review.py new file mode 100644 index 0000000000000000000000000000000000000000..39cf2c1da41eaccf00c1f6d7c52fa10ccb064299 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_subject_access_review.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1LocalSubjectAccessReview(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1SubjectAccessReviewSpec', + 'status': 'V1SubjectAccessReviewStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1LocalSubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1LocalSubjectAccessReview. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1LocalSubjectAccessReview. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1LocalSubjectAccessReview. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1LocalSubjectAccessReview. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1LocalSubjectAccessReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1LocalSubjectAccessReview. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1LocalSubjectAccessReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1LocalSubjectAccessReview. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1LocalSubjectAccessReview. # noqa: E501 + + + :return: The metadata of this V1LocalSubjectAccessReview. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1LocalSubjectAccessReview. + + + :param metadata: The metadata of this V1LocalSubjectAccessReview. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1LocalSubjectAccessReview. # noqa: E501 + + + :return: The spec of this V1LocalSubjectAccessReview. # noqa: E501 + :rtype: V1SubjectAccessReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1LocalSubjectAccessReview. + + + :param spec: The spec of this V1LocalSubjectAccessReview. # noqa: E501 + :type: V1SubjectAccessReviewSpec + """ + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1LocalSubjectAccessReview. # noqa: E501 + + + :return: The status of this V1LocalSubjectAccessReview. # noqa: E501 + :rtype: V1SubjectAccessReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1LocalSubjectAccessReview. + + + :param status: The status of this V1LocalSubjectAccessReview. # noqa: E501 + :type: V1SubjectAccessReviewStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1LocalSubjectAccessReview): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1LocalSubjectAccessReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..0a1fc48d626dd41b6e0c74225249caa79e02f379 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_volume_source.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1LocalVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'fs_type': 'str', + 'path': 'str' + } + + attribute_map = { + 'fs_type': 'fsType', + 'path': 'path' + } + + def __init__(self, fs_type=None, path=None, local_vars_configuration=None): # noqa: E501 + """V1LocalVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._fs_type = None + self._path = None + self.discriminator = None + + if fs_type is not None: + self.fs_type = fs_type + self.path = path + + @property + def fs_type(self): + """Gets the fs_type of this V1LocalVolumeSource. # noqa: E501 + + fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified. # noqa: E501 + + :return: The fs_type of this V1LocalVolumeSource. # noqa: E501 + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """Sets the fs_type of this V1LocalVolumeSource. + + fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified. # noqa: E501 + + :param fs_type: The fs_type of this V1LocalVolumeSource. # noqa: E501 + :type: str + """ + + self._fs_type = fs_type + + @property + def path(self): + """Gets the path of this V1LocalVolumeSource. # noqa: E501 + + path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). # noqa: E501 + + :return: The path of this V1LocalVolumeSource. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this V1LocalVolumeSource. + + path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). # noqa: E501 + + :param path: The path of this V1LocalVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1LocalVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1LocalVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_managed_fields_entry.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_managed_fields_entry.py new file mode 100644 index 0000000000000000000000000000000000000000..3b739a2c42b8d0ec86f16c533703a393bc77d4dd --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_managed_fields_entry.py @@ -0,0 +1,290 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ManagedFieldsEntry(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'fields_type': 'str', + 'fields_v1': 'object', + 'manager': 'str', + 'operation': 'str', + 'subresource': 'str', + 'time': 'datetime' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'fields_type': 'fieldsType', + 'fields_v1': 'fieldsV1', + 'manager': 'manager', + 'operation': 'operation', + 'subresource': 'subresource', + 'time': 'time' + } + + def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=None, operation=None, subresource=None, time=None, local_vars_configuration=None): # noqa: E501 + """V1ManagedFieldsEntry - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._fields_type = None + self._fields_v1 = None + self._manager = None + self._operation = None + self._subresource = None + self._time = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if fields_type is not None: + self.fields_type = fields_type + if fields_v1 is not None: + self.fields_v1 = fields_v1 + if manager is not None: + self.manager = manager + if operation is not None: + self.operation = operation + if subresource is not None: + self.subresource = subresource + if time is not None: + self.time = time + + @property + def api_version(self): + """Gets the api_version of this V1ManagedFieldsEntry. # noqa: E501 + + APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. # noqa: E501 + + :return: The api_version of this V1ManagedFieldsEntry. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ManagedFieldsEntry. + + APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. # noqa: E501 + + :param api_version: The api_version of this V1ManagedFieldsEntry. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def fields_type(self): + """Gets the fields_type of this V1ManagedFieldsEntry. # noqa: E501 + + FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" # noqa: E501 + + :return: The fields_type of this V1ManagedFieldsEntry. # noqa: E501 + :rtype: str + """ + return self._fields_type + + @fields_type.setter + def fields_type(self, fields_type): + """Sets the fields_type of this V1ManagedFieldsEntry. + + FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" # noqa: E501 + + :param fields_type: The fields_type of this V1ManagedFieldsEntry. # noqa: E501 + :type: str + """ + + self._fields_type = fields_type + + @property + def fields_v1(self): + """Gets the fields_v1 of this V1ManagedFieldsEntry. # noqa: E501 + + FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. # noqa: E501 + + :return: The fields_v1 of this V1ManagedFieldsEntry. # noqa: E501 + :rtype: object + """ + return self._fields_v1 + + @fields_v1.setter + def fields_v1(self, fields_v1): + """Sets the fields_v1 of this V1ManagedFieldsEntry. + + FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. # noqa: E501 + + :param fields_v1: The fields_v1 of this V1ManagedFieldsEntry. # noqa: E501 + :type: object + """ + + self._fields_v1 = fields_v1 + + @property + def manager(self): + """Gets the manager of this V1ManagedFieldsEntry. # noqa: E501 + + Manager is an identifier of the workflow managing these fields. # noqa: E501 + + :return: The manager of this V1ManagedFieldsEntry. # noqa: E501 + :rtype: str + """ + return self._manager + + @manager.setter + def manager(self, manager): + """Sets the manager of this V1ManagedFieldsEntry. + + Manager is an identifier of the workflow managing these fields. # noqa: E501 + + :param manager: The manager of this V1ManagedFieldsEntry. # noqa: E501 + :type: str + """ + + self._manager = manager + + @property + def operation(self): + """Gets the operation of this V1ManagedFieldsEntry. # noqa: E501 + + Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. # noqa: E501 + + :return: The operation of this V1ManagedFieldsEntry. # noqa: E501 + :rtype: str + """ + return self._operation + + @operation.setter + def operation(self, operation): + """Sets the operation of this V1ManagedFieldsEntry. + + Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. # noqa: E501 + + :param operation: The operation of this V1ManagedFieldsEntry. # noqa: E501 + :type: str + """ + + self._operation = operation + + @property + def subresource(self): + """Gets the subresource of this V1ManagedFieldsEntry. # noqa: E501 + + Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. # noqa: E501 + + :return: The subresource of this V1ManagedFieldsEntry. # noqa: E501 + :rtype: str + """ + return self._subresource + + @subresource.setter + def subresource(self, subresource): + """Sets the subresource of this V1ManagedFieldsEntry. + + Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. # noqa: E501 + + :param subresource: The subresource of this V1ManagedFieldsEntry. # noqa: E501 + :type: str + """ + + self._subresource = subresource + + @property + def time(self): + """Gets the time of this V1ManagedFieldsEntry. # noqa: E501 + + Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. # noqa: E501 + + :return: The time of this V1ManagedFieldsEntry. # noqa: E501 + :rtype: datetime + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this V1ManagedFieldsEntry. + + Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. # noqa: E501 + + :param time: The time of this V1ManagedFieldsEntry. # noqa: E501 + :type: datetime + """ + + self._time = time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ManagedFieldsEntry): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ManagedFieldsEntry): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_match_condition.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_match_condition.py new file mode 100644 index 0000000000000000000000000000000000000000..e717e919eda1aebefb73b5cb78c99337b0554e56 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_match_condition.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1MatchCondition(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'expression': 'str', + 'name': 'str' + } + + attribute_map = { + 'expression': 'expression', + 'name': 'name' + } + + def __init__(self, expression=None, name=None, local_vars_configuration=None): # noqa: E501 + """V1MatchCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._expression = None + self._name = None + self.discriminator = None + + self.expression = expression + self.name = name + + @property + def expression(self): + """Gets the expression of this V1MatchCondition. # noqa: E501 + + Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. # noqa: E501 + + :return: The expression of this V1MatchCondition. # noqa: E501 + :rtype: str + """ + return self._expression + + @expression.setter + def expression(self, expression): + """Sets the expression of this V1MatchCondition. + + Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. # noqa: E501 + + :param expression: The expression of this V1MatchCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and expression is None: # noqa: E501 + raise ValueError("Invalid value for `expression`, must not be `None`") # noqa: E501 + + self._expression = expression + + @property + def name(self): + """Gets the name of this V1MatchCondition. # noqa: E501 + + Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. # noqa: E501 + + :return: The name of this V1MatchCondition. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1MatchCondition. + + Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. # noqa: E501 + + :param name: The name of this V1MatchCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1MatchCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1MatchCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_match_resources.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_match_resources.py new file mode 100644 index 0000000000000000000000000000000000000000..131a45e4a76ce489bb056c2f5d4cd7c8ee5b4e42 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_match_resources.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1MatchResources(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'exclude_resource_rules': 'list[V1NamedRuleWithOperations]', + 'match_policy': 'str', + 'namespace_selector': 'V1LabelSelector', + 'object_selector': 'V1LabelSelector', + 'resource_rules': 'list[V1NamedRuleWithOperations]' + } + + attribute_map = { + 'exclude_resource_rules': 'excludeResourceRules', + 'match_policy': 'matchPolicy', + 'namespace_selector': 'namespaceSelector', + 'object_selector': 'objectSelector', + 'resource_rules': 'resourceRules' + } + + def __init__(self, exclude_resource_rules=None, match_policy=None, namespace_selector=None, object_selector=None, resource_rules=None, local_vars_configuration=None): # noqa: E501 + """V1MatchResources - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._exclude_resource_rules = None + self._match_policy = None + self._namespace_selector = None + self._object_selector = None + self._resource_rules = None + self.discriminator = None + + if exclude_resource_rules is not None: + self.exclude_resource_rules = exclude_resource_rules + if match_policy is not None: + self.match_policy = match_policy + if namespace_selector is not None: + self.namespace_selector = namespace_selector + if object_selector is not None: + self.object_selector = object_selector + if resource_rules is not None: + self.resource_rules = resource_rules + + @property + def exclude_resource_rules(self): + """Gets the exclude_resource_rules of this V1MatchResources. # noqa: E501 + + ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) # noqa: E501 + + :return: The exclude_resource_rules of this V1MatchResources. # noqa: E501 + :rtype: list[V1NamedRuleWithOperations] + """ + return self._exclude_resource_rules + + @exclude_resource_rules.setter + def exclude_resource_rules(self, exclude_resource_rules): + """Sets the exclude_resource_rules of this V1MatchResources. + + ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) # noqa: E501 + + :param exclude_resource_rules: The exclude_resource_rules of this V1MatchResources. # noqa: E501 + :type: list[V1NamedRuleWithOperations] + """ + + self._exclude_resource_rules = exclude_resource_rules + + @property + def match_policy(self): + """Gets the match_policy of this V1MatchResources. # noqa: E501 + + matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" # noqa: E501 + + :return: The match_policy of this V1MatchResources. # noqa: E501 + :rtype: str + """ + return self._match_policy + + @match_policy.setter + def match_policy(self, match_policy): + """Sets the match_policy of this V1MatchResources. + + matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" # noqa: E501 + + :param match_policy: The match_policy of this V1MatchResources. # noqa: E501 + :type: str + """ + + self._match_policy = match_policy + + @property + def namespace_selector(self): + """Gets the namespace_selector of this V1MatchResources. # noqa: E501 + + + :return: The namespace_selector of this V1MatchResources. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._namespace_selector + + @namespace_selector.setter + def namespace_selector(self, namespace_selector): + """Sets the namespace_selector of this V1MatchResources. + + + :param namespace_selector: The namespace_selector of this V1MatchResources. # noqa: E501 + :type: V1LabelSelector + """ + + self._namespace_selector = namespace_selector + + @property + def object_selector(self): + """Gets the object_selector of this V1MatchResources. # noqa: E501 + + + :return: The object_selector of this V1MatchResources. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._object_selector + + @object_selector.setter + def object_selector(self, object_selector): + """Sets the object_selector of this V1MatchResources. + + + :param object_selector: The object_selector of this V1MatchResources. # noqa: E501 + :type: V1LabelSelector + """ + + self._object_selector = object_selector + + @property + def resource_rules(self): + """Gets the resource_rules of this V1MatchResources. # noqa: E501 + + ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. # noqa: E501 + + :return: The resource_rules of this V1MatchResources. # noqa: E501 + :rtype: list[V1NamedRuleWithOperations] + """ + return self._resource_rules + + @resource_rules.setter + def resource_rules(self, resource_rules): + """Sets the resource_rules of this V1MatchResources. + + ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. # noqa: E501 + + :param resource_rules: The resource_rules of this V1MatchResources. # noqa: E501 + :type: list[V1NamedRuleWithOperations] + """ + + self._resource_rules = resource_rules + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1MatchResources): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1MatchResources): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_modify_volume_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_modify_volume_status.py new file mode 100644 index 0000000000000000000000000000000000000000..503e1258213d05df519d3d870d8fe92f55cf81ba --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_modify_volume_status.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ModifyVolumeStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'status': 'str', + 'target_volume_attributes_class_name': 'str' + } + + attribute_map = { + 'status': 'status', + 'target_volume_attributes_class_name': 'targetVolumeAttributesClassName' + } + + def __init__(self, status=None, target_volume_attributes_class_name=None, local_vars_configuration=None): # noqa: E501 + """V1ModifyVolumeStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._status = None + self._target_volume_attributes_class_name = None + self.discriminator = None + + self.status = status + if target_volume_attributes_class_name is not None: + self.target_volume_attributes_class_name = target_volume_attributes_class_name + + @property + def status(self): + """Gets the status of this V1ModifyVolumeStatus. # noqa: E501 + + status is the status of the ControllerModifyVolume operation. It can be in any of following states: - Pending Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing. - InProgress InProgress indicates that the volume is being modified. - Infeasible Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified. Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. # noqa: E501 + + :return: The status of this V1ModifyVolumeStatus. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1ModifyVolumeStatus. + + status is the status of the ControllerModifyVolume operation. It can be in any of following states: - Pending Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing. - InProgress InProgress indicates that the volume is being modified. - Infeasible Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified. Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. # noqa: E501 + + :param status: The status of this V1ModifyVolumeStatus. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def target_volume_attributes_class_name(self): + """Gets the target_volume_attributes_class_name of this V1ModifyVolumeStatus. # noqa: E501 + + targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled # noqa: E501 + + :return: The target_volume_attributes_class_name of this V1ModifyVolumeStatus. # noqa: E501 + :rtype: str + """ + return self._target_volume_attributes_class_name + + @target_volume_attributes_class_name.setter + def target_volume_attributes_class_name(self, target_volume_attributes_class_name): + """Sets the target_volume_attributes_class_name of this V1ModifyVolumeStatus. + + targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled # noqa: E501 + + :param target_volume_attributes_class_name: The target_volume_attributes_class_name of this V1ModifyVolumeStatus. # noqa: E501 + :type: str + """ + + self._target_volume_attributes_class_name = target_volume_attributes_class_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ModifyVolumeStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ModifyVolumeStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook.py new file mode 100644 index 0000000000000000000000000000000000000000..6a2f94b20584e75d4b3ea1f5521835c5f62d7669 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook.py @@ -0,0 +1,428 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1MutatingWebhook(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'admission_review_versions': 'list[str]', + 'client_config': 'AdmissionregistrationV1WebhookClientConfig', + 'failure_policy': 'str', + 'match_conditions': 'list[V1MatchCondition]', + 'match_policy': 'str', + 'name': 'str', + 'namespace_selector': 'V1LabelSelector', + 'object_selector': 'V1LabelSelector', + 'reinvocation_policy': 'str', + 'rules': 'list[V1RuleWithOperations]', + 'side_effects': 'str', + 'timeout_seconds': 'int' + } + + attribute_map = { + 'admission_review_versions': 'admissionReviewVersions', + 'client_config': 'clientConfig', + 'failure_policy': 'failurePolicy', + 'match_conditions': 'matchConditions', + 'match_policy': 'matchPolicy', + 'name': 'name', + 'namespace_selector': 'namespaceSelector', + 'object_selector': 'objectSelector', + 'reinvocation_policy': 'reinvocationPolicy', + 'rules': 'rules', + 'side_effects': 'sideEffects', + 'timeout_seconds': 'timeoutSeconds' + } + + def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_conditions=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, reinvocation_policy=None, rules=None, side_effects=None, timeout_seconds=None, local_vars_configuration=None): # noqa: E501 + """V1MutatingWebhook - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._admission_review_versions = None + self._client_config = None + self._failure_policy = None + self._match_conditions = None + self._match_policy = None + self._name = None + self._namespace_selector = None + self._object_selector = None + self._reinvocation_policy = None + self._rules = None + self._side_effects = None + self._timeout_seconds = None + self.discriminator = None + + self.admission_review_versions = admission_review_versions + self.client_config = client_config + if failure_policy is not None: + self.failure_policy = failure_policy + if match_conditions is not None: + self.match_conditions = match_conditions + if match_policy is not None: + self.match_policy = match_policy + self.name = name + if namespace_selector is not None: + self.namespace_selector = namespace_selector + if object_selector is not None: + self.object_selector = object_selector + if reinvocation_policy is not None: + self.reinvocation_policy = reinvocation_policy + if rules is not None: + self.rules = rules + self.side_effects = side_effects + if timeout_seconds is not None: + self.timeout_seconds = timeout_seconds + + @property + def admission_review_versions(self): + """Gets the admission_review_versions of this V1MutatingWebhook. # noqa: E501 + + AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. # noqa: E501 + + :return: The admission_review_versions of this V1MutatingWebhook. # noqa: E501 + :rtype: list[str] + """ + return self._admission_review_versions + + @admission_review_versions.setter + def admission_review_versions(self, admission_review_versions): + """Sets the admission_review_versions of this V1MutatingWebhook. + + AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. # noqa: E501 + + :param admission_review_versions: The admission_review_versions of this V1MutatingWebhook. # noqa: E501 + :type: list[str] + """ + if self.local_vars_configuration.client_side_validation and admission_review_versions is None: # noqa: E501 + raise ValueError("Invalid value for `admission_review_versions`, must not be `None`") # noqa: E501 + + self._admission_review_versions = admission_review_versions + + @property + def client_config(self): + """Gets the client_config of this V1MutatingWebhook. # noqa: E501 + + + :return: The client_config of this V1MutatingWebhook. # noqa: E501 + :rtype: AdmissionregistrationV1WebhookClientConfig + """ + return self._client_config + + @client_config.setter + def client_config(self, client_config): + """Sets the client_config of this V1MutatingWebhook. + + + :param client_config: The client_config of this V1MutatingWebhook. # noqa: E501 + :type: AdmissionregistrationV1WebhookClientConfig + """ + if self.local_vars_configuration.client_side_validation and client_config is None: # noqa: E501 + raise ValueError("Invalid value for `client_config`, must not be `None`") # noqa: E501 + + self._client_config = client_config + + @property + def failure_policy(self): + """Gets the failure_policy of this V1MutatingWebhook. # noqa: E501 + + FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. # noqa: E501 + + :return: The failure_policy of this V1MutatingWebhook. # noqa: E501 + :rtype: str + """ + return self._failure_policy + + @failure_policy.setter + def failure_policy(self, failure_policy): + """Sets the failure_policy of this V1MutatingWebhook. + + FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. # noqa: E501 + + :param failure_policy: The failure_policy of this V1MutatingWebhook. # noqa: E501 + :type: str + """ + + self._failure_policy = failure_policy + + @property + def match_conditions(self): + """Gets the match_conditions of this V1MutatingWebhook. # noqa: E501 + + MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped # noqa: E501 + + :return: The match_conditions of this V1MutatingWebhook. # noqa: E501 + :rtype: list[V1MatchCondition] + """ + return self._match_conditions + + @match_conditions.setter + def match_conditions(self, match_conditions): + """Sets the match_conditions of this V1MutatingWebhook. + + MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped # noqa: E501 + + :param match_conditions: The match_conditions of this V1MutatingWebhook. # noqa: E501 + :type: list[V1MatchCondition] + """ + + self._match_conditions = match_conditions + + @property + def match_policy(self): + """Gets the match_policy of this V1MutatingWebhook. # noqa: E501 + + matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" # noqa: E501 + + :return: The match_policy of this V1MutatingWebhook. # noqa: E501 + :rtype: str + """ + return self._match_policy + + @match_policy.setter + def match_policy(self, match_policy): + """Sets the match_policy of this V1MutatingWebhook. + + matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" # noqa: E501 + + :param match_policy: The match_policy of this V1MutatingWebhook. # noqa: E501 + :type: str + """ + + self._match_policy = match_policy + + @property + def name(self): + """Gets the name of this V1MutatingWebhook. # noqa: E501 + + The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. # noqa: E501 + + :return: The name of this V1MutatingWebhook. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1MutatingWebhook. + + The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. # noqa: E501 + + :param name: The name of this V1MutatingWebhook. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def namespace_selector(self): + """Gets the namespace_selector of this V1MutatingWebhook. # noqa: E501 + + + :return: The namespace_selector of this V1MutatingWebhook. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._namespace_selector + + @namespace_selector.setter + def namespace_selector(self, namespace_selector): + """Sets the namespace_selector of this V1MutatingWebhook. + + + :param namespace_selector: The namespace_selector of this V1MutatingWebhook. # noqa: E501 + :type: V1LabelSelector + """ + + self._namespace_selector = namespace_selector + + @property + def object_selector(self): + """Gets the object_selector of this V1MutatingWebhook. # noqa: E501 + + + :return: The object_selector of this V1MutatingWebhook. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._object_selector + + @object_selector.setter + def object_selector(self, object_selector): + """Sets the object_selector of this V1MutatingWebhook. + + + :param object_selector: The object_selector of this V1MutatingWebhook. # noqa: E501 + :type: V1LabelSelector + """ + + self._object_selector = object_selector + + @property + def reinvocation_policy(self): + """Gets the reinvocation_policy of this V1MutatingWebhook. # noqa: E501 + + reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". # noqa: E501 + + :return: The reinvocation_policy of this V1MutatingWebhook. # noqa: E501 + :rtype: str + """ + return self._reinvocation_policy + + @reinvocation_policy.setter + def reinvocation_policy(self, reinvocation_policy): + """Sets the reinvocation_policy of this V1MutatingWebhook. + + reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". # noqa: E501 + + :param reinvocation_policy: The reinvocation_policy of this V1MutatingWebhook. # noqa: E501 + :type: str + """ + + self._reinvocation_policy = reinvocation_policy + + @property + def rules(self): + """Gets the rules of this V1MutatingWebhook. # noqa: E501 + + Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. # noqa: E501 + + :return: The rules of this V1MutatingWebhook. # noqa: E501 + :rtype: list[V1RuleWithOperations] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """Sets the rules of this V1MutatingWebhook. + + Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. # noqa: E501 + + :param rules: The rules of this V1MutatingWebhook. # noqa: E501 + :type: list[V1RuleWithOperations] + """ + + self._rules = rules + + @property + def side_effects(self): + """Gets the side_effects of this V1MutatingWebhook. # noqa: E501 + + SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. # noqa: E501 + + :return: The side_effects of this V1MutatingWebhook. # noqa: E501 + :rtype: str + """ + return self._side_effects + + @side_effects.setter + def side_effects(self, side_effects): + """Sets the side_effects of this V1MutatingWebhook. + + SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. # noqa: E501 + + :param side_effects: The side_effects of this V1MutatingWebhook. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and side_effects is None: # noqa: E501 + raise ValueError("Invalid value for `side_effects`, must not be `None`") # noqa: E501 + + self._side_effects = side_effects + + @property + def timeout_seconds(self): + """Gets the timeout_seconds of this V1MutatingWebhook. # noqa: E501 + + TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. # noqa: E501 + + :return: The timeout_seconds of this V1MutatingWebhook. # noqa: E501 + :rtype: int + """ + return self._timeout_seconds + + @timeout_seconds.setter + def timeout_seconds(self, timeout_seconds): + """Sets the timeout_seconds of this V1MutatingWebhook. + + TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. # noqa: E501 + + :param timeout_seconds: The timeout_seconds of this V1MutatingWebhook. # noqa: E501 + :type: int + """ + + self._timeout_seconds = timeout_seconds + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1MutatingWebhook): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1MutatingWebhook): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook_configuration.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook_configuration.py new file mode 100644 index 0000000000000000000000000000000000000000..7c8ff2aadde18494f294571fabafec1cdaa775f5 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook_configuration.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1MutatingWebhookConfiguration(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'webhooks': 'list[V1MutatingWebhook]' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'webhooks': 'webhooks' + } + + def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None, local_vars_configuration=None): # noqa: E501 + """V1MutatingWebhookConfiguration - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._webhooks = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if webhooks is not None: + self.webhooks = webhooks + + @property + def api_version(self): + """Gets the api_version of this V1MutatingWebhookConfiguration. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1MutatingWebhookConfiguration. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1MutatingWebhookConfiguration. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1MutatingWebhookConfiguration. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1MutatingWebhookConfiguration. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1MutatingWebhookConfiguration. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1MutatingWebhookConfiguration. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1MutatingWebhookConfiguration. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1MutatingWebhookConfiguration. # noqa: E501 + + + :return: The metadata of this V1MutatingWebhookConfiguration. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1MutatingWebhookConfiguration. + + + :param metadata: The metadata of this V1MutatingWebhookConfiguration. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def webhooks(self): + """Gets the webhooks of this V1MutatingWebhookConfiguration. # noqa: E501 + + Webhooks is a list of webhooks and the affected resources and operations. # noqa: E501 + + :return: The webhooks of this V1MutatingWebhookConfiguration. # noqa: E501 + :rtype: list[V1MutatingWebhook] + """ + return self._webhooks + + @webhooks.setter + def webhooks(self, webhooks): + """Sets the webhooks of this V1MutatingWebhookConfiguration. + + Webhooks is a list of webhooks and the affected resources and operations. # noqa: E501 + + :param webhooks: The webhooks of this V1MutatingWebhookConfiguration. # noqa: E501 + :type: list[V1MutatingWebhook] + """ + + self._webhooks = webhooks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1MutatingWebhookConfiguration): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1MutatingWebhookConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook_configuration_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook_configuration_list.py new file mode 100644 index 0000000000000000000000000000000000000000..a28a1f9724176b8e8749bfab1a47d235acff7fcd --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook_configuration_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1MutatingWebhookConfigurationList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1MutatingWebhookConfiguration]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1MutatingWebhookConfigurationList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1MutatingWebhookConfigurationList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1MutatingWebhookConfigurationList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1MutatingWebhookConfigurationList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1MutatingWebhookConfigurationList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1MutatingWebhookConfigurationList. # noqa: E501 + + List of MutatingWebhookConfiguration. # noqa: E501 + + :return: The items of this V1MutatingWebhookConfigurationList. # noqa: E501 + :rtype: list[V1MutatingWebhookConfiguration] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1MutatingWebhookConfigurationList. + + List of MutatingWebhookConfiguration. # noqa: E501 + + :param items: The items of this V1MutatingWebhookConfigurationList. # noqa: E501 + :type: list[V1MutatingWebhookConfiguration] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1MutatingWebhookConfigurationList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1MutatingWebhookConfigurationList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1MutatingWebhookConfigurationList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1MutatingWebhookConfigurationList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1MutatingWebhookConfigurationList. # noqa: E501 + + + :return: The metadata of this V1MutatingWebhookConfigurationList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1MutatingWebhookConfigurationList. + + + :param metadata: The metadata of this V1MutatingWebhookConfigurationList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1MutatingWebhookConfigurationList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1MutatingWebhookConfigurationList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_named_rule_with_operations.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_named_rule_with_operations.py new file mode 100644 index 0000000000000000000000000000000000000000..8f80d24486194876b71ef4007ef679d8f7afa2e0 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_named_rule_with_operations.py @@ -0,0 +1,262 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NamedRuleWithOperations(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_groups': 'list[str]', + 'api_versions': 'list[str]', + 'operations': 'list[str]', + 'resource_names': 'list[str]', + 'resources': 'list[str]', + 'scope': 'str' + } + + attribute_map = { + 'api_groups': 'apiGroups', + 'api_versions': 'apiVersions', + 'operations': 'operations', + 'resource_names': 'resourceNames', + 'resources': 'resources', + 'scope': 'scope' + } + + def __init__(self, api_groups=None, api_versions=None, operations=None, resource_names=None, resources=None, scope=None, local_vars_configuration=None): # noqa: E501 + """V1NamedRuleWithOperations - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_groups = None + self._api_versions = None + self._operations = None + self._resource_names = None + self._resources = None + self._scope = None + self.discriminator = None + + if api_groups is not None: + self.api_groups = api_groups + if api_versions is not None: + self.api_versions = api_versions + if operations is not None: + self.operations = operations + if resource_names is not None: + self.resource_names = resource_names + if resources is not None: + self.resources = resources + if scope is not None: + self.scope = scope + + @property + def api_groups(self): + """Gets the api_groups of this V1NamedRuleWithOperations. # noqa: E501 + + APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :return: The api_groups of this V1NamedRuleWithOperations. # noqa: E501 + :rtype: list[str] + """ + return self._api_groups + + @api_groups.setter + def api_groups(self, api_groups): + """Sets the api_groups of this V1NamedRuleWithOperations. + + APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :param api_groups: The api_groups of this V1NamedRuleWithOperations. # noqa: E501 + :type: list[str] + """ + + self._api_groups = api_groups + + @property + def api_versions(self): + """Gets the api_versions of this V1NamedRuleWithOperations. # noqa: E501 + + APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :return: The api_versions of this V1NamedRuleWithOperations. # noqa: E501 + :rtype: list[str] + """ + return self._api_versions + + @api_versions.setter + def api_versions(self, api_versions): + """Sets the api_versions of this V1NamedRuleWithOperations. + + APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :param api_versions: The api_versions of this V1NamedRuleWithOperations. # noqa: E501 + :type: list[str] + """ + + self._api_versions = api_versions + + @property + def operations(self): + """Gets the operations of this V1NamedRuleWithOperations. # noqa: E501 + + Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :return: The operations of this V1NamedRuleWithOperations. # noqa: E501 + :rtype: list[str] + """ + return self._operations + + @operations.setter + def operations(self, operations): + """Sets the operations of this V1NamedRuleWithOperations. + + Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :param operations: The operations of this V1NamedRuleWithOperations. # noqa: E501 + :type: list[str] + """ + + self._operations = operations + + @property + def resource_names(self): + """Gets the resource_names of this V1NamedRuleWithOperations. # noqa: E501 + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501 + + :return: The resource_names of this V1NamedRuleWithOperations. # noqa: E501 + :rtype: list[str] + """ + return self._resource_names + + @resource_names.setter + def resource_names(self, resource_names): + """Sets the resource_names of this V1NamedRuleWithOperations. + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501 + + :param resource_names: The resource_names of this V1NamedRuleWithOperations. # noqa: E501 + :type: list[str] + """ + + self._resource_names = resource_names + + @property + def resources(self): + """Gets the resources of this V1NamedRuleWithOperations. # noqa: E501 + + Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. # noqa: E501 + + :return: The resources of this V1NamedRuleWithOperations. # noqa: E501 + :rtype: list[str] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1NamedRuleWithOperations. + + Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. # noqa: E501 + + :param resources: The resources of this V1NamedRuleWithOperations. # noqa: E501 + :type: list[str] + """ + + self._resources = resources + + @property + def scope(self): + """Gets the scope of this V1NamedRuleWithOperations. # noqa: E501 + + scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". # noqa: E501 + + :return: The scope of this V1NamedRuleWithOperations. # noqa: E501 + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """Sets the scope of this V1NamedRuleWithOperations. + + scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". # noqa: E501 + + :param scope: The scope of this V1NamedRuleWithOperations. # noqa: E501 + :type: str + """ + + self._scope = scope + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NamedRuleWithOperations): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NamedRuleWithOperations): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace.py new file mode 100644 index 0000000000000000000000000000000000000000..84d7f50459ab7ac34dafdd7f67d3924446227aaf --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Namespace(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1NamespaceSpec', + 'status': 'V1NamespaceStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1Namespace - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1Namespace. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Namespace. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1Namespace. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Namespace. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1Namespace. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1Namespace. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1Namespace. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1Namespace. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1Namespace. # noqa: E501 + + + :return: The metadata of this V1Namespace. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1Namespace. + + + :param metadata: The metadata of this V1Namespace. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1Namespace. # noqa: E501 + + + :return: The spec of this V1Namespace. # noqa: E501 + :rtype: V1NamespaceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1Namespace. + + + :param spec: The spec of this V1Namespace. # noqa: E501 + :type: V1NamespaceSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1Namespace. # noqa: E501 + + + :return: The status of this V1Namespace. # noqa: E501 + :rtype: V1NamespaceStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1Namespace. + + + :param status: The status of this V1Namespace. # noqa: E501 + :type: V1NamespaceStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Namespace): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Namespace): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_condition.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_condition.py new file mode 100644 index 0000000000000000000000000000000000000000..1f428b21d41beb69ee2307459154ad14fe9be62c --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_condition.py @@ -0,0 +1,236 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NamespaceCondition(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1NamespaceCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._last_transition_time = None + self._message = None + self._reason = None + self._status = None + self._type = None + self.discriminator = None + + if last_transition_time is not None: + self.last_transition_time = last_transition_time + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def last_transition_time(self): + """Gets the last_transition_time of this V1NamespaceCondition. # noqa: E501 + + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1NamespaceCondition. # noqa: E501 + :rtype: datetime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """Sets the last_transition_time of this V1NamespaceCondition. + + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1NamespaceCondition. # noqa: E501 + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """Gets the message of this V1NamespaceCondition. # noqa: E501 + + Human-readable message indicating details about last transition. # noqa: E501 + + :return: The message of this V1NamespaceCondition. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1NamespaceCondition. + + Human-readable message indicating details about last transition. # noqa: E501 + + :param message: The message of this V1NamespaceCondition. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def reason(self): + """Gets the reason of this V1NamespaceCondition. # noqa: E501 + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 + + :return: The reason of this V1NamespaceCondition. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1NamespaceCondition. + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 + + :param reason: The reason of this V1NamespaceCondition. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def status(self): + """Gets the status of this V1NamespaceCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :return: The status of this V1NamespaceCondition. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1NamespaceCondition. + + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1NamespaceCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def type(self): + """Gets the type of this V1NamespaceCondition. # noqa: E501 + + Type of namespace controller condition. # noqa: E501 + + :return: The type of this V1NamespaceCondition. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1NamespaceCondition. + + Type of namespace controller condition. # noqa: E501 + + :param type: The type of this V1NamespaceCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NamespaceCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NamespaceCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_list.py new file mode 100644 index 0000000000000000000000000000000000000000..ac58724ed930a071ba7245ea0e2beb73ff549250 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NamespaceList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1Namespace]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1NamespaceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1NamespaceList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1NamespaceList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1NamespaceList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1NamespaceList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1NamespaceList. # noqa: E501 + + Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ # noqa: E501 + + :return: The items of this V1NamespaceList. # noqa: E501 + :rtype: list[V1Namespace] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1NamespaceList. + + Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ # noqa: E501 + + :param items: The items of this V1NamespaceList. # noqa: E501 + :type: list[V1Namespace] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1NamespaceList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1NamespaceList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1NamespaceList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1NamespaceList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1NamespaceList. # noqa: E501 + + + :return: The metadata of this V1NamespaceList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1NamespaceList. + + + :param metadata: The metadata of this V1NamespaceList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NamespaceList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NamespaceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..b3549bad126dabbd37f60f02de01d851c131bc10 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_spec.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NamespaceSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'finalizers': 'list[str]' + } + + attribute_map = { + 'finalizers': 'finalizers' + } + + def __init__(self, finalizers=None, local_vars_configuration=None): # noqa: E501 + """V1NamespaceSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._finalizers = None + self.discriminator = None + + if finalizers is not None: + self.finalizers = finalizers + + @property + def finalizers(self): + """Gets the finalizers of this V1NamespaceSpec. # noqa: E501 + + Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501 + + :return: The finalizers of this V1NamespaceSpec. # noqa: E501 + :rtype: list[str] + """ + return self._finalizers + + @finalizers.setter + def finalizers(self, finalizers): + """Sets the finalizers of this V1NamespaceSpec. + + Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501 + + :param finalizers: The finalizers of this V1NamespaceSpec. # noqa: E501 + :type: list[str] + """ + + self._finalizers = finalizers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NamespaceSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NamespaceSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_status.py new file mode 100644 index 0000000000000000000000000000000000000000..7db0778afc651c6074d0d71c901d4021d37df0cc --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_status.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NamespaceStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'conditions': 'list[V1NamespaceCondition]', + 'phase': 'str' + } + + attribute_map = { + 'conditions': 'conditions', + 'phase': 'phase' + } + + def __init__(self, conditions=None, phase=None, local_vars_configuration=None): # noqa: E501 + """V1NamespaceStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._conditions = None + self._phase = None + self.discriminator = None + + if conditions is not None: + self.conditions = conditions + if phase is not None: + self.phase = phase + + @property + def conditions(self): + """Gets the conditions of this V1NamespaceStatus. # noqa: E501 + + Represents the latest available observations of a namespace's current state. # noqa: E501 + + :return: The conditions of this V1NamespaceStatus. # noqa: E501 + :rtype: list[V1NamespaceCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this V1NamespaceStatus. + + Represents the latest available observations of a namespace's current state. # noqa: E501 + + :param conditions: The conditions of this V1NamespaceStatus. # noqa: E501 + :type: list[V1NamespaceCondition] + """ + + self._conditions = conditions + + @property + def phase(self): + """Gets the phase of this V1NamespaceStatus. # noqa: E501 + + Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501 + + :return: The phase of this V1NamespaceStatus. # noqa: E501 + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this V1NamespaceStatus. + + Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501 + + :param phase: The phase of this V1NamespaceStatus. # noqa: E501 + :type: str + """ + + self._phase = phase + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NamespaceStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NamespaceStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_device_data.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_device_data.py new file mode 100644 index 0000000000000000000000000000000000000000..f9f2d1f2328f23f0304d4e245ee2ea7897bae750 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_device_data.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NetworkDeviceData(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'hardware_address': 'str', + 'interface_name': 'str', + 'ips': 'list[str]' + } + + attribute_map = { + 'hardware_address': 'hardwareAddress', + 'interface_name': 'interfaceName', + 'ips': 'ips' + } + + def __init__(self, hardware_address=None, interface_name=None, ips=None, local_vars_configuration=None): # noqa: E501 + """V1NetworkDeviceData - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._hardware_address = None + self._interface_name = None + self._ips = None + self.discriminator = None + + if hardware_address is not None: + self.hardware_address = hardware_address + if interface_name is not None: + self.interface_name = interface_name + if ips is not None: + self.ips = ips + + @property + def hardware_address(self): + """Gets the hardware_address of this V1NetworkDeviceData. # noqa: E501 + + HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. # noqa: E501 + + :return: The hardware_address of this V1NetworkDeviceData. # noqa: E501 + :rtype: str + """ + return self._hardware_address + + @hardware_address.setter + def hardware_address(self, hardware_address): + """Sets the hardware_address of this V1NetworkDeviceData. + + HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. # noqa: E501 + + :param hardware_address: The hardware_address of this V1NetworkDeviceData. # noqa: E501 + :type: str + """ + + self._hardware_address = hardware_address + + @property + def interface_name(self): + """Gets the interface_name of this V1NetworkDeviceData. # noqa: E501 + + InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. # noqa: E501 + + :return: The interface_name of this V1NetworkDeviceData. # noqa: E501 + :rtype: str + """ + return self._interface_name + + @interface_name.setter + def interface_name(self, interface_name): + """Sets the interface_name of this V1NetworkDeviceData. + + InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. # noqa: E501 + + :param interface_name: The interface_name of this V1NetworkDeviceData. # noqa: E501 + :type: str + """ + + self._interface_name = interface_name + + @property + def ips(self): + """Gets the ips of this V1NetworkDeviceData. # noqa: E501 + + IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. # noqa: E501 + + :return: The ips of this V1NetworkDeviceData. # noqa: E501 + :rtype: list[str] + """ + return self._ips + + @ips.setter + def ips(self, ips): + """Sets the ips of this V1NetworkDeviceData. + + IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. # noqa: E501 + + :param ips: The ips of this V1NetworkDeviceData. # noqa: E501 + :type: list[str] + """ + + self._ips = ips + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NetworkDeviceData): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NetworkDeviceData): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy.py new file mode 100644 index 0000000000000000000000000000000000000000..6db969c3884db05089fb83da7e683fcb8d4f97c6 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NetworkPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1NetworkPolicySpec' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 + """V1NetworkPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + + @property + def api_version(self): + """Gets the api_version of this V1NetworkPolicy. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1NetworkPolicy. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1NetworkPolicy. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1NetworkPolicy. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1NetworkPolicy. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1NetworkPolicy. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1NetworkPolicy. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1NetworkPolicy. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1NetworkPolicy. # noqa: E501 + + + :return: The metadata of this V1NetworkPolicy. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1NetworkPolicy. + + + :param metadata: The metadata of this V1NetworkPolicy. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1NetworkPolicy. # noqa: E501 + + + :return: The spec of this V1NetworkPolicy. # noqa: E501 + :rtype: V1NetworkPolicySpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1NetworkPolicy. + + + :param spec: The spec of this V1NetworkPolicy. # noqa: E501 + :type: V1NetworkPolicySpec + """ + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NetworkPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NetworkPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_egress_rule.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_egress_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..c87278fb6a97dc1d895ece6fad675605a11acc35 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_egress_rule.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NetworkPolicyEgressRule(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'ports': 'list[V1NetworkPolicyPort]', + 'to': 'list[V1NetworkPolicyPeer]' + } + + attribute_map = { + 'ports': 'ports', + 'to': 'to' + } + + def __init__(self, ports=None, to=None, local_vars_configuration=None): # noqa: E501 + """V1NetworkPolicyEgressRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._ports = None + self._to = None + self.discriminator = None + + if ports is not None: + self.ports = ports + if to is not None: + self.to = to + + @property + def ports(self): + """Gets the ports of this V1NetworkPolicyEgressRule. # noqa: E501 + + ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 + + :return: The ports of this V1NetworkPolicyEgressRule. # noqa: E501 + :rtype: list[V1NetworkPolicyPort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """Sets the ports of this V1NetworkPolicyEgressRule. + + ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 + + :param ports: The ports of this V1NetworkPolicyEgressRule. # noqa: E501 + :type: list[V1NetworkPolicyPort] + """ + + self._ports = ports + + @property + def to(self): + """Gets the to of this V1NetworkPolicyEgressRule. # noqa: E501 + + to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. # noqa: E501 + + :return: The to of this V1NetworkPolicyEgressRule. # noqa: E501 + :rtype: list[V1NetworkPolicyPeer] + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this V1NetworkPolicyEgressRule. + + to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. # noqa: E501 + + :param to: The to of this V1NetworkPolicyEgressRule. # noqa: E501 + :type: list[V1NetworkPolicyPeer] + """ + + self._to = to + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NetworkPolicyEgressRule): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NetworkPolicyEgressRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_ingress_rule.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_ingress_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..f7936d94440c313060b9366d472cd4f0f1c5ccb4 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_ingress_rule.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NetworkPolicyIngressRule(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + '_from': 'list[V1NetworkPolicyPeer]', + 'ports': 'list[V1NetworkPolicyPort]' + } + + attribute_map = { + '_from': 'from', + 'ports': 'ports' + } + + def __init__(self, _from=None, ports=None, local_vars_configuration=None): # noqa: E501 + """V1NetworkPolicyIngressRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self.__from = None + self._ports = None + self.discriminator = None + + if _from is not None: + self._from = _from + if ports is not None: + self.ports = ports + + @property + def _from(self): + """Gets the _from of this V1NetworkPolicyIngressRule. # noqa: E501 + + from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. # noqa: E501 + + :return: The _from of this V1NetworkPolicyIngressRule. # noqa: E501 + :rtype: list[V1NetworkPolicyPeer] + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this V1NetworkPolicyIngressRule. + + from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. # noqa: E501 + + :param _from: The _from of this V1NetworkPolicyIngressRule. # noqa: E501 + :type: list[V1NetworkPolicyPeer] + """ + + self.__from = _from + + @property + def ports(self): + """Gets the ports of this V1NetworkPolicyIngressRule. # noqa: E501 + + ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 + + :return: The ports of this V1NetworkPolicyIngressRule. # noqa: E501 + :rtype: list[V1NetworkPolicyPort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """Sets the ports of this V1NetworkPolicyIngressRule. + + ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 + + :param ports: The ports of this V1NetworkPolicyIngressRule. # noqa: E501 + :type: list[V1NetworkPolicyPort] + """ + + self._ports = ports + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NetworkPolicyIngressRule): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NetworkPolicyIngressRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_list.py new file mode 100644 index 0000000000000000000000000000000000000000..cd91076d9b5412946acf108eecaaf48a8608dd2d --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NetworkPolicyList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1NetworkPolicy]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1NetworkPolicyList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1NetworkPolicyList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1NetworkPolicyList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1NetworkPolicyList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1NetworkPolicyList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1NetworkPolicyList. # noqa: E501 + + items is a list of schema objects. # noqa: E501 + + :return: The items of this V1NetworkPolicyList. # noqa: E501 + :rtype: list[V1NetworkPolicy] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1NetworkPolicyList. + + items is a list of schema objects. # noqa: E501 + + :param items: The items of this V1NetworkPolicyList. # noqa: E501 + :type: list[V1NetworkPolicy] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1NetworkPolicyList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1NetworkPolicyList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1NetworkPolicyList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1NetworkPolicyList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1NetworkPolicyList. # noqa: E501 + + + :return: The metadata of this V1NetworkPolicyList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1NetworkPolicyList. + + + :param metadata: The metadata of this V1NetworkPolicyList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NetworkPolicyList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NetworkPolicyList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_peer.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_peer.py new file mode 100644 index 0000000000000000000000000000000000000000..3eee3353aec6c573164ce6b3ec98dab69a34f9e2 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_peer.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NetworkPolicyPeer(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'ip_block': 'V1IPBlock', + 'namespace_selector': 'V1LabelSelector', + 'pod_selector': 'V1LabelSelector' + } + + attribute_map = { + 'ip_block': 'ipBlock', + 'namespace_selector': 'namespaceSelector', + 'pod_selector': 'podSelector' + } + + def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None, local_vars_configuration=None): # noqa: E501 + """V1NetworkPolicyPeer - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._ip_block = None + self._namespace_selector = None + self._pod_selector = None + self.discriminator = None + + if ip_block is not None: + self.ip_block = ip_block + if namespace_selector is not None: + self.namespace_selector = namespace_selector + if pod_selector is not None: + self.pod_selector = pod_selector + + @property + def ip_block(self): + """Gets the ip_block of this V1NetworkPolicyPeer. # noqa: E501 + + + :return: The ip_block of this V1NetworkPolicyPeer. # noqa: E501 + :rtype: V1IPBlock + """ + return self._ip_block + + @ip_block.setter + def ip_block(self, ip_block): + """Sets the ip_block of this V1NetworkPolicyPeer. + + + :param ip_block: The ip_block of this V1NetworkPolicyPeer. # noqa: E501 + :type: V1IPBlock + """ + + self._ip_block = ip_block + + @property + def namespace_selector(self): + """Gets the namespace_selector of this V1NetworkPolicyPeer. # noqa: E501 + + + :return: The namespace_selector of this V1NetworkPolicyPeer. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._namespace_selector + + @namespace_selector.setter + def namespace_selector(self, namespace_selector): + """Sets the namespace_selector of this V1NetworkPolicyPeer. + + + :param namespace_selector: The namespace_selector of this V1NetworkPolicyPeer. # noqa: E501 + :type: V1LabelSelector + """ + + self._namespace_selector = namespace_selector + + @property + def pod_selector(self): + """Gets the pod_selector of this V1NetworkPolicyPeer. # noqa: E501 + + + :return: The pod_selector of this V1NetworkPolicyPeer. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._pod_selector + + @pod_selector.setter + def pod_selector(self, pod_selector): + """Sets the pod_selector of this V1NetworkPolicyPeer. + + + :param pod_selector: The pod_selector of this V1NetworkPolicyPeer. # noqa: E501 + :type: V1LabelSelector + """ + + self._pod_selector = pod_selector + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NetworkPolicyPeer): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NetworkPolicyPeer): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_port.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_port.py new file mode 100644 index 0000000000000000000000000000000000000000..10b43472827fa8149409c0b1b21b9744c9a18437 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_port.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NetworkPolicyPort(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'end_port': 'int', + 'port': 'object', + 'protocol': 'str' + } + + attribute_map = { + 'end_port': 'endPort', + 'port': 'port', + 'protocol': 'protocol' + } + + def __init__(self, end_port=None, port=None, protocol=None, local_vars_configuration=None): # noqa: E501 + """V1NetworkPolicyPort - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._end_port = None + self._port = None + self._protocol = None + self.discriminator = None + + if end_port is not None: + self.end_port = end_port + if port is not None: + self.port = port + if protocol is not None: + self.protocol = protocol + + @property + def end_port(self): + """Gets the end_port of this V1NetworkPolicyPort. # noqa: E501 + + endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. # noqa: E501 + + :return: The end_port of this V1NetworkPolicyPort. # noqa: E501 + :rtype: int + """ + return self._end_port + + @end_port.setter + def end_port(self, end_port): + """Sets the end_port of this V1NetworkPolicyPort. + + endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. # noqa: E501 + + :param end_port: The end_port of this V1NetworkPolicyPort. # noqa: E501 + :type: int + """ + + self._end_port = end_port + + @property + def port(self): + """Gets the port of this V1NetworkPolicyPort. # noqa: E501 + + port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. # noqa: E501 + + :return: The port of this V1NetworkPolicyPort. # noqa: E501 + :rtype: object + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this V1NetworkPolicyPort. + + port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. # noqa: E501 + + :param port: The port of this V1NetworkPolicyPort. # noqa: E501 + :type: object + """ + + self._port = port + + @property + def protocol(self): + """Gets the protocol of this V1NetworkPolicyPort. # noqa: E501 + + protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. # noqa: E501 + + :return: The protocol of this V1NetworkPolicyPort. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this V1NetworkPolicyPort. + + protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. # noqa: E501 + + :param protocol: The protocol of this V1NetworkPolicyPort. # noqa: E501 + :type: str + """ + + self._protocol = protocol + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NetworkPolicyPort): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NetworkPolicyPort): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..129ff33ed83f366ea2ebc34b85482600b5c20efc --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_spec.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NetworkPolicySpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'egress': 'list[V1NetworkPolicyEgressRule]', + 'ingress': 'list[V1NetworkPolicyIngressRule]', + 'pod_selector': 'V1LabelSelector', + 'policy_types': 'list[str]' + } + + attribute_map = { + 'egress': 'egress', + 'ingress': 'ingress', + 'pod_selector': 'podSelector', + 'policy_types': 'policyTypes' + } + + def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=None, local_vars_configuration=None): # noqa: E501 + """V1NetworkPolicySpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._egress = None + self._ingress = None + self._pod_selector = None + self._policy_types = None + self.discriminator = None + + if egress is not None: + self.egress = egress + if ingress is not None: + self.ingress = ingress + if pod_selector is not None: + self.pod_selector = pod_selector + if policy_types is not None: + self.policy_types = policy_types + + @property + def egress(self): + """Gets the egress of this V1NetworkPolicySpec. # noqa: E501 + + egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 # noqa: E501 + + :return: The egress of this V1NetworkPolicySpec. # noqa: E501 + :rtype: list[V1NetworkPolicyEgressRule] + """ + return self._egress + + @egress.setter + def egress(self, egress): + """Sets the egress of this V1NetworkPolicySpec. + + egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 # noqa: E501 + + :param egress: The egress of this V1NetworkPolicySpec. # noqa: E501 + :type: list[V1NetworkPolicyEgressRule] + """ + + self._egress = egress + + @property + def ingress(self): + """Gets the ingress of this V1NetworkPolicySpec. # noqa: E501 + + ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) # noqa: E501 + + :return: The ingress of this V1NetworkPolicySpec. # noqa: E501 + :rtype: list[V1NetworkPolicyIngressRule] + """ + return self._ingress + + @ingress.setter + def ingress(self, ingress): + """Sets the ingress of this V1NetworkPolicySpec. + + ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) # noqa: E501 + + :param ingress: The ingress of this V1NetworkPolicySpec. # noqa: E501 + :type: list[V1NetworkPolicyIngressRule] + """ + + self._ingress = ingress + + @property + def pod_selector(self): + """Gets the pod_selector of this V1NetworkPolicySpec. # noqa: E501 + + + :return: The pod_selector of this V1NetworkPolicySpec. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._pod_selector + + @pod_selector.setter + def pod_selector(self, pod_selector): + """Sets the pod_selector of this V1NetworkPolicySpec. + + + :param pod_selector: The pod_selector of this V1NetworkPolicySpec. # noqa: E501 + :type: V1LabelSelector + """ + + self._pod_selector = pod_selector + + @property + def policy_types(self): + """Gets the policy_types of this V1NetworkPolicySpec. # noqa: E501 + + policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 # noqa: E501 + + :return: The policy_types of this V1NetworkPolicySpec. # noqa: E501 + :rtype: list[str] + """ + return self._policy_types + + @policy_types.setter + def policy_types(self, policy_types): + """Sets the policy_types of this V1NetworkPolicySpec. + + policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 # noqa: E501 + + :param policy_types: The policy_types of this V1NetworkPolicySpec. # noqa: E501 + :type: list[str] + """ + + self._policy_types = policy_types + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NetworkPolicySpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NetworkPolicySpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_nfs_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_nfs_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..f9e2d6e3ea5e30ae26f083d5a579980329b0d643 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_nfs_volume_source.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NFSVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'path': 'str', + 'read_only': 'bool', + 'server': 'str' + } + + attribute_map = { + 'path': 'path', + 'read_only': 'readOnly', + 'server': 'server' + } + + def __init__(self, path=None, read_only=None, server=None, local_vars_configuration=None): # noqa: E501 + """V1NFSVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._path = None + self._read_only = None + self._server = None + self.discriminator = None + + self.path = path + if read_only is not None: + self.read_only = read_only + self.server = server + + @property + def path(self): + """Gets the path of this V1NFSVolumeSource. # noqa: E501 + + path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + + :return: The path of this V1NFSVolumeSource. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this V1NFSVolumeSource. + + path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + + :param path: The path of this V1NFSVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + @property + def read_only(self): + """Gets the read_only of this V1NFSVolumeSource. # noqa: E501 + + readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + + :return: The read_only of this V1NFSVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """Sets the read_only of this V1NFSVolumeSource. + + readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + + :param read_only: The read_only of this V1NFSVolumeSource. # noqa: E501 + :type: bool + """ + + self._read_only = read_only + + @property + def server(self): + """Gets the server of this V1NFSVolumeSource. # noqa: E501 + + server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + + :return: The server of this V1NFSVolumeSource. # noqa: E501 + :rtype: str + """ + return self._server + + @server.setter + def server(self, server): + """Sets the server of this V1NFSVolumeSource. + + server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + + :param server: The server of this V1NFSVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and server is None: # noqa: E501 + raise ValueError("Invalid value for `server`, must not be `None`") # noqa: E501 + + self._server = server + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NFSVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NFSVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node.py new file mode 100644 index 0000000000000000000000000000000000000000..ee0c5e73cce0057701e60aac41879377fa9fbe44 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Node(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1NodeSpec', + 'status': 'V1NodeStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1Node - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1Node. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Node. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1Node. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Node. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1Node. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1Node. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1Node. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1Node. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1Node. # noqa: E501 + + + :return: The metadata of this V1Node. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1Node. + + + :param metadata: The metadata of this V1Node. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1Node. # noqa: E501 + + + :return: The spec of this V1Node. # noqa: E501 + :rtype: V1NodeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1Node. + + + :param spec: The spec of this V1Node. # noqa: E501 + :type: V1NodeSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1Node. # noqa: E501 + + + :return: The status of this V1Node. # noqa: E501 + :rtype: V1NodeStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1Node. + + + :param status: The status of this V1Node. # noqa: E501 + :type: V1NodeStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Node): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Node): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_address.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_address.py new file mode 100644 index 0000000000000000000000000000000000000000..394517eb25cc4de360e23067d87f5a7a32448e38 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_address.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeAddress(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'address': 'str', + 'type': 'str' + } + + attribute_map = { + 'address': 'address', + 'type': 'type' + } + + def __init__(self, address=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1NodeAddress - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._address = None + self._type = None + self.discriminator = None + + self.address = address + self.type = type + + @property + def address(self): + """Gets the address of this V1NodeAddress. # noqa: E501 + + The node address. # noqa: E501 + + :return: The address of this V1NodeAddress. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this V1NodeAddress. + + The node address. # noqa: E501 + + :param address: The address of this V1NodeAddress. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and address is None: # noqa: E501 + raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501 + + self._address = address + + @property + def type(self): + """Gets the type of this V1NodeAddress. # noqa: E501 + + Node address type, one of Hostname, ExternalIP or InternalIP. # noqa: E501 + + :return: The type of this V1NodeAddress. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1NodeAddress. + + Node address type, one of Hostname, ExternalIP or InternalIP. # noqa: E501 + + :param type: The type of this V1NodeAddress. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeAddress): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeAddress): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_affinity.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_affinity.py new file mode 100644 index 0000000000000000000000000000000000000000..2dac4c47c752c61a0fb6636900e061e2df842a99 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_affinity.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeAffinity(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'preferred_during_scheduling_ignored_during_execution': 'list[V1PreferredSchedulingTerm]', + 'required_during_scheduling_ignored_during_execution': 'V1NodeSelector' + } + + attribute_map = { + 'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', + 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' + } + + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None, local_vars_configuration=None): # noqa: E501 + """V1NodeAffinity - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._preferred_during_scheduling_ignored_during_execution = None + self._required_during_scheduling_ignored_during_execution = None + self.discriminator = None + + if preferred_during_scheduling_ignored_during_execution is not None: + self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + if required_during_scheduling_ignored_during_execution is not None: + self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + @property + def preferred_during_scheduling_ignored_during_execution(self): + """Gets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 + + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. # noqa: E501 + + :return: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 + :rtype: list[V1PreferredSchedulingTerm] + """ + return self._preferred_during_scheduling_ignored_during_execution + + @preferred_during_scheduling_ignored_during_execution.setter + def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): + """Sets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. + + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. # noqa: E501 + + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 + :type: list[V1PreferredSchedulingTerm] + """ + + self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + + @property + def required_during_scheduling_ignored_during_execution(self): + """Gets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 + + + :return: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 + :rtype: V1NodeSelector + """ + return self._required_during_scheduling_ignored_during_execution + + @required_during_scheduling_ignored_during_execution.setter + def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): + """Sets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. + + + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 + :type: V1NodeSelector + """ + + self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeAffinity): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeAffinity): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_condition.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_condition.py new file mode 100644 index 0000000000000000000000000000000000000000..d4d30428588f231e87f2d41643808f39b0b16f29 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_condition.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeCondition(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'last_heartbeat_time': 'datetime', + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'last_heartbeat_time': 'lastHeartbeatTime', + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, last_heartbeat_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1NodeCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._last_heartbeat_time = None + self._last_transition_time = None + self._message = None + self._reason = None + self._status = None + self._type = None + self.discriminator = None + + if last_heartbeat_time is not None: + self.last_heartbeat_time = last_heartbeat_time + if last_transition_time is not None: + self.last_transition_time = last_transition_time + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def last_heartbeat_time(self): + """Gets the last_heartbeat_time of this V1NodeCondition. # noqa: E501 + + Last time we got an update on a given condition. # noqa: E501 + + :return: The last_heartbeat_time of this V1NodeCondition. # noqa: E501 + :rtype: datetime + """ + return self._last_heartbeat_time + + @last_heartbeat_time.setter + def last_heartbeat_time(self, last_heartbeat_time): + """Sets the last_heartbeat_time of this V1NodeCondition. + + Last time we got an update on a given condition. # noqa: E501 + + :param last_heartbeat_time: The last_heartbeat_time of this V1NodeCondition. # noqa: E501 + :type: datetime + """ + + self._last_heartbeat_time = last_heartbeat_time + + @property + def last_transition_time(self): + """Gets the last_transition_time of this V1NodeCondition. # noqa: E501 + + Last time the condition transit from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1NodeCondition. # noqa: E501 + :rtype: datetime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """Sets the last_transition_time of this V1NodeCondition. + + Last time the condition transit from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1NodeCondition. # noqa: E501 + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """Gets the message of this V1NodeCondition. # noqa: E501 + + Human readable message indicating details about last transition. # noqa: E501 + + :return: The message of this V1NodeCondition. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1NodeCondition. + + Human readable message indicating details about last transition. # noqa: E501 + + :param message: The message of this V1NodeCondition. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def reason(self): + """Gets the reason of this V1NodeCondition. # noqa: E501 + + (brief) reason for the condition's last transition. # noqa: E501 + + :return: The reason of this V1NodeCondition. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1NodeCondition. + + (brief) reason for the condition's last transition. # noqa: E501 + + :param reason: The reason of this V1NodeCondition. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def status(self): + """Gets the status of this V1NodeCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :return: The status of this V1NodeCondition. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1NodeCondition. + + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1NodeCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def type(self): + """Gets the type of this V1NodeCondition. # noqa: E501 + + Type of node condition. # noqa: E501 + + :return: The type of this V1NodeCondition. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1NodeCondition. + + Type of node condition. # noqa: E501 + + :param type: The type of this V1NodeCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_config_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_config_source.py new file mode 100644 index 0000000000000000000000000000000000000000..cd37f60f998ed312ec6acb0432e31e5815bcca29 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_config_source.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeConfigSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'config_map': 'V1ConfigMapNodeConfigSource' + } + + attribute_map = { + 'config_map': 'configMap' + } + + def __init__(self, config_map=None, local_vars_configuration=None): # noqa: E501 + """V1NodeConfigSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._config_map = None + self.discriminator = None + + if config_map is not None: + self.config_map = config_map + + @property + def config_map(self): + """Gets the config_map of this V1NodeConfigSource. # noqa: E501 + + + :return: The config_map of this V1NodeConfigSource. # noqa: E501 + :rtype: V1ConfigMapNodeConfigSource + """ + return self._config_map + + @config_map.setter + def config_map(self, config_map): + """Sets the config_map of this V1NodeConfigSource. + + + :param config_map: The config_map of this V1NodeConfigSource. # noqa: E501 + :type: V1ConfigMapNodeConfigSource + """ + + self._config_map = config_map + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeConfigSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeConfigSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_config_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_config_status.py new file mode 100644 index 0000000000000000000000000000000000000000..923bd30d6ad304c02f17332b59591a7b47eeb133 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_config_status.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeConfigStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'active': 'V1NodeConfigSource', + 'assigned': 'V1NodeConfigSource', + 'error': 'str', + 'last_known_good': 'V1NodeConfigSource' + } + + attribute_map = { + 'active': 'active', + 'assigned': 'assigned', + 'error': 'error', + 'last_known_good': 'lastKnownGood' + } + + def __init__(self, active=None, assigned=None, error=None, last_known_good=None, local_vars_configuration=None): # noqa: E501 + """V1NodeConfigStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._active = None + self._assigned = None + self._error = None + self._last_known_good = None + self.discriminator = None + + if active is not None: + self.active = active + if assigned is not None: + self.assigned = assigned + if error is not None: + self.error = error + if last_known_good is not None: + self.last_known_good = last_known_good + + @property + def active(self): + """Gets the active of this V1NodeConfigStatus. # noqa: E501 + + + :return: The active of this V1NodeConfigStatus. # noqa: E501 + :rtype: V1NodeConfigSource + """ + return self._active + + @active.setter + def active(self, active): + """Sets the active of this V1NodeConfigStatus. + + + :param active: The active of this V1NodeConfigStatus. # noqa: E501 + :type: V1NodeConfigSource + """ + + self._active = active + + @property + def assigned(self): + """Gets the assigned of this V1NodeConfigStatus. # noqa: E501 + + + :return: The assigned of this V1NodeConfigStatus. # noqa: E501 + :rtype: V1NodeConfigSource + """ + return self._assigned + + @assigned.setter + def assigned(self, assigned): + """Sets the assigned of this V1NodeConfigStatus. + + + :param assigned: The assigned of this V1NodeConfigStatus. # noqa: E501 + :type: V1NodeConfigSource + """ + + self._assigned = assigned + + @property + def error(self): + """Gets the error of this V1NodeConfigStatus. # noqa: E501 + + Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. # noqa: E501 + + :return: The error of this V1NodeConfigStatus. # noqa: E501 + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this V1NodeConfigStatus. + + Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. # noqa: E501 + + :param error: The error of this V1NodeConfigStatus. # noqa: E501 + :type: str + """ + + self._error = error + + @property + def last_known_good(self): + """Gets the last_known_good of this V1NodeConfigStatus. # noqa: E501 + + + :return: The last_known_good of this V1NodeConfigStatus. # noqa: E501 + :rtype: V1NodeConfigSource + """ + return self._last_known_good + + @last_known_good.setter + def last_known_good(self, last_known_good): + """Sets the last_known_good of this V1NodeConfigStatus. + + + :param last_known_good: The last_known_good of this V1NodeConfigStatus. # noqa: E501 + :type: V1NodeConfigSource + """ + + self._last_known_good = last_known_good + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeConfigStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeConfigStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_daemon_endpoints.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_daemon_endpoints.py new file mode 100644 index 0000000000000000000000000000000000000000..9d3d0a70fbdc0813b51bba92f14d2611167eb44d --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_daemon_endpoints.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeDaemonEndpoints(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'kubelet_endpoint': 'V1DaemonEndpoint' + } + + attribute_map = { + 'kubelet_endpoint': 'kubeletEndpoint' + } + + def __init__(self, kubelet_endpoint=None, local_vars_configuration=None): # noqa: E501 + """V1NodeDaemonEndpoints - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._kubelet_endpoint = None + self.discriminator = None + + if kubelet_endpoint is not None: + self.kubelet_endpoint = kubelet_endpoint + + @property + def kubelet_endpoint(self): + """Gets the kubelet_endpoint of this V1NodeDaemonEndpoints. # noqa: E501 + + + :return: The kubelet_endpoint of this V1NodeDaemonEndpoints. # noqa: E501 + :rtype: V1DaemonEndpoint + """ + return self._kubelet_endpoint + + @kubelet_endpoint.setter + def kubelet_endpoint(self, kubelet_endpoint): + """Sets the kubelet_endpoint of this V1NodeDaemonEndpoints. + + + :param kubelet_endpoint: The kubelet_endpoint of this V1NodeDaemonEndpoints. # noqa: E501 + :type: V1DaemonEndpoint + """ + + self._kubelet_endpoint = kubelet_endpoint + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeDaemonEndpoints): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeDaemonEndpoints): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_features.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_features.py new file mode 100644 index 0000000000000000000000000000000000000000..f396eab04b18e1fca43c938164eea6a330f8c089 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_features.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeFeatures(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'supplemental_groups_policy': 'bool' + } + + attribute_map = { + 'supplemental_groups_policy': 'supplementalGroupsPolicy' + } + + def __init__(self, supplemental_groups_policy=None, local_vars_configuration=None): # noqa: E501 + """V1NodeFeatures - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._supplemental_groups_policy = None + self.discriminator = None + + if supplemental_groups_policy is not None: + self.supplemental_groups_policy = supplemental_groups_policy + + @property + def supplemental_groups_policy(self): + """Gets the supplemental_groups_policy of this V1NodeFeatures. # noqa: E501 + + SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser. # noqa: E501 + + :return: The supplemental_groups_policy of this V1NodeFeatures. # noqa: E501 + :rtype: bool + """ + return self._supplemental_groups_policy + + @supplemental_groups_policy.setter + def supplemental_groups_policy(self, supplemental_groups_policy): + """Sets the supplemental_groups_policy of this V1NodeFeatures. + + SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser. # noqa: E501 + + :param supplemental_groups_policy: The supplemental_groups_policy of this V1NodeFeatures. # noqa: E501 + :type: bool + """ + + self._supplemental_groups_policy = supplemental_groups_policy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeFeatures): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeFeatures): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_list.py new file mode 100644 index 0000000000000000000000000000000000000000..615026dee3d257fa7666c3f679d286f02f99c70e --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1Node]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1NodeList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1NodeList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1NodeList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1NodeList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1NodeList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1NodeList. # noqa: E501 + + List of nodes # noqa: E501 + + :return: The items of this V1NodeList. # noqa: E501 + :rtype: list[V1Node] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1NodeList. + + List of nodes # noqa: E501 + + :param items: The items of this V1NodeList. # noqa: E501 + :type: list[V1Node] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1NodeList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1NodeList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1NodeList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1NodeList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1NodeList. # noqa: E501 + + + :return: The metadata of this V1NodeList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1NodeList. + + + :param metadata: The metadata of this V1NodeList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_runtime_handler.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_runtime_handler.py new file mode 100644 index 0000000000000000000000000000000000000000..8a605ea407a3bda6316e8d9647981a58bd70a994 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_runtime_handler.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeRuntimeHandler(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'features': 'V1NodeRuntimeHandlerFeatures', + 'name': 'str' + } + + attribute_map = { + 'features': 'features', + 'name': 'name' + } + + def __init__(self, features=None, name=None, local_vars_configuration=None): # noqa: E501 + """V1NodeRuntimeHandler - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._features = None + self._name = None + self.discriminator = None + + if features is not None: + self.features = features + if name is not None: + self.name = name + + @property + def features(self): + """Gets the features of this V1NodeRuntimeHandler. # noqa: E501 + + + :return: The features of this V1NodeRuntimeHandler. # noqa: E501 + :rtype: V1NodeRuntimeHandlerFeatures + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this V1NodeRuntimeHandler. + + + :param features: The features of this V1NodeRuntimeHandler. # noqa: E501 + :type: V1NodeRuntimeHandlerFeatures + """ + + self._features = features + + @property + def name(self): + """Gets the name of this V1NodeRuntimeHandler. # noqa: E501 + + Runtime handler name. Empty for the default runtime handler. # noqa: E501 + + :return: The name of this V1NodeRuntimeHandler. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1NodeRuntimeHandler. + + Runtime handler name. Empty for the default runtime handler. # noqa: E501 + + :param name: The name of this V1NodeRuntimeHandler. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeRuntimeHandler): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeRuntimeHandler): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_runtime_handler_features.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_runtime_handler_features.py new file mode 100644 index 0000000000000000000000000000000000000000..c9bf1c9583539574501f83f67bc3f5043d13ddfa --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_runtime_handler_features.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeRuntimeHandlerFeatures(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'recursive_read_only_mounts': 'bool', + 'user_namespaces': 'bool' + } + + attribute_map = { + 'recursive_read_only_mounts': 'recursiveReadOnlyMounts', + 'user_namespaces': 'userNamespaces' + } + + def __init__(self, recursive_read_only_mounts=None, user_namespaces=None, local_vars_configuration=None): # noqa: E501 + """V1NodeRuntimeHandlerFeatures - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._recursive_read_only_mounts = None + self._user_namespaces = None + self.discriminator = None + + if recursive_read_only_mounts is not None: + self.recursive_read_only_mounts = recursive_read_only_mounts + if user_namespaces is not None: + self.user_namespaces = user_namespaces + + @property + def recursive_read_only_mounts(self): + """Gets the recursive_read_only_mounts of this V1NodeRuntimeHandlerFeatures. # noqa: E501 + + RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts. # noqa: E501 + + :return: The recursive_read_only_mounts of this V1NodeRuntimeHandlerFeatures. # noqa: E501 + :rtype: bool + """ + return self._recursive_read_only_mounts + + @recursive_read_only_mounts.setter + def recursive_read_only_mounts(self, recursive_read_only_mounts): + """Sets the recursive_read_only_mounts of this V1NodeRuntimeHandlerFeatures. + + RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts. # noqa: E501 + + :param recursive_read_only_mounts: The recursive_read_only_mounts of this V1NodeRuntimeHandlerFeatures. # noqa: E501 + :type: bool + """ + + self._recursive_read_only_mounts = recursive_read_only_mounts + + @property + def user_namespaces(self): + """Gets the user_namespaces of this V1NodeRuntimeHandlerFeatures. # noqa: E501 + + UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes. # noqa: E501 + + :return: The user_namespaces of this V1NodeRuntimeHandlerFeatures. # noqa: E501 + :rtype: bool + """ + return self._user_namespaces + + @user_namespaces.setter + def user_namespaces(self, user_namespaces): + """Sets the user_namespaces of this V1NodeRuntimeHandlerFeatures. + + UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes. # noqa: E501 + + :param user_namespaces: The user_namespaces of this V1NodeRuntimeHandlerFeatures. # noqa: E501 + :type: bool + """ + + self._user_namespaces = user_namespaces + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeRuntimeHandlerFeatures): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeRuntimeHandlerFeatures): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector.py new file mode 100644 index 0000000000000000000000000000000000000000..d79a2968ee99df204ce7123299c04ab1043c1294 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeSelector(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'node_selector_terms': 'list[V1NodeSelectorTerm]' + } + + attribute_map = { + 'node_selector_terms': 'nodeSelectorTerms' + } + + def __init__(self, node_selector_terms=None, local_vars_configuration=None): # noqa: E501 + """V1NodeSelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._node_selector_terms = None + self.discriminator = None + + self.node_selector_terms = node_selector_terms + + @property + def node_selector_terms(self): + """Gets the node_selector_terms of this V1NodeSelector. # noqa: E501 + + Required. A list of node selector terms. The terms are ORed. # noqa: E501 + + :return: The node_selector_terms of this V1NodeSelector. # noqa: E501 + :rtype: list[V1NodeSelectorTerm] + """ + return self._node_selector_terms + + @node_selector_terms.setter + def node_selector_terms(self, node_selector_terms): + """Sets the node_selector_terms of this V1NodeSelector. + + Required. A list of node selector terms. The terms are ORed. # noqa: E501 + + :param node_selector_terms: The node_selector_terms of this V1NodeSelector. # noqa: E501 + :type: list[V1NodeSelectorTerm] + """ + if self.local_vars_configuration.client_side_validation and node_selector_terms is None: # noqa: E501 + raise ValueError("Invalid value for `node_selector_terms`, must not be `None`") # noqa: E501 + + self._node_selector_terms = node_selector_terms + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeSelector): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeSelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector_requirement.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector_requirement.py new file mode 100644 index 0000000000000000000000000000000000000000..0016dae47f05b0837b6b6aa16976a7b78ff9f8fe --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector_requirement.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeSelectorRequirement(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'key': 'str', + 'operator': 'str', + 'values': 'list[str]' + } + + attribute_map = { + 'key': 'key', + 'operator': 'operator', + 'values': 'values' + } + + def __init__(self, key=None, operator=None, values=None, local_vars_configuration=None): # noqa: E501 + """V1NodeSelectorRequirement - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._key = None + self._operator = None + self._values = None + self.discriminator = None + + self.key = key + self.operator = operator + if values is not None: + self.values = values + + @property + def key(self): + """Gets the key of this V1NodeSelectorRequirement. # noqa: E501 + + The label key that the selector applies to. # noqa: E501 + + :return: The key of this V1NodeSelectorRequirement. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this V1NodeSelectorRequirement. + + The label key that the selector applies to. # noqa: E501 + + :param key: The key of this V1NodeSelectorRequirement. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 + + self._key = key + + @property + def operator(self): + """Gets the operator of this V1NodeSelectorRequirement. # noqa: E501 + + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. # noqa: E501 + + :return: The operator of this V1NodeSelectorRequirement. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this V1NodeSelectorRequirement. + + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. # noqa: E501 + + :param operator: The operator of this V1NodeSelectorRequirement. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + + @property + def values(self): + """Gets the values of this V1NodeSelectorRequirement. # noqa: E501 + + An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. # noqa: E501 + + :return: The values of this V1NodeSelectorRequirement. # noqa: E501 + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this V1NodeSelectorRequirement. + + An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. # noqa: E501 + + :param values: The values of this V1NodeSelectorRequirement. # noqa: E501 + :type: list[str] + """ + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeSelectorRequirement): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeSelectorRequirement): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector_term.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector_term.py new file mode 100644 index 0000000000000000000000000000000000000000..a827d8f81a0557ddd9ceecaa99ac5c8bb9fcb148 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector_term.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeSelectorTerm(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'match_expressions': 'list[V1NodeSelectorRequirement]', + 'match_fields': 'list[V1NodeSelectorRequirement]' + } + + attribute_map = { + 'match_expressions': 'matchExpressions', + 'match_fields': 'matchFields' + } + + def __init__(self, match_expressions=None, match_fields=None, local_vars_configuration=None): # noqa: E501 + """V1NodeSelectorTerm - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._match_expressions = None + self._match_fields = None + self.discriminator = None + + if match_expressions is not None: + self.match_expressions = match_expressions + if match_fields is not None: + self.match_fields = match_fields + + @property + def match_expressions(self): + """Gets the match_expressions of this V1NodeSelectorTerm. # noqa: E501 + + A list of node selector requirements by node's labels. # noqa: E501 + + :return: The match_expressions of this V1NodeSelectorTerm. # noqa: E501 + :rtype: list[V1NodeSelectorRequirement] + """ + return self._match_expressions + + @match_expressions.setter + def match_expressions(self, match_expressions): + """Sets the match_expressions of this V1NodeSelectorTerm. + + A list of node selector requirements by node's labels. # noqa: E501 + + :param match_expressions: The match_expressions of this V1NodeSelectorTerm. # noqa: E501 + :type: list[V1NodeSelectorRequirement] + """ + + self._match_expressions = match_expressions + + @property + def match_fields(self): + """Gets the match_fields of this V1NodeSelectorTerm. # noqa: E501 + + A list of node selector requirements by node's fields. # noqa: E501 + + :return: The match_fields of this V1NodeSelectorTerm. # noqa: E501 + :rtype: list[V1NodeSelectorRequirement] + """ + return self._match_fields + + @match_fields.setter + def match_fields(self, match_fields): + """Sets the match_fields of this V1NodeSelectorTerm. + + A list of node selector requirements by node's fields. # noqa: E501 + + :param match_fields: The match_fields of this V1NodeSelectorTerm. # noqa: E501 + :type: list[V1NodeSelectorRequirement] + """ + + self._match_fields = match_fields + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeSelectorTerm): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeSelectorTerm): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..5323f6478cb06c1128fb8b6549c20656137ae255 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_spec.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'config_source': 'V1NodeConfigSource', + 'external_id': 'str', + 'pod_cidr': 'str', + 'pod_cid_rs': 'list[str]', + 'provider_id': 'str', + 'taints': 'list[V1Taint]', + 'unschedulable': 'bool' + } + + attribute_map = { + 'config_source': 'configSource', + 'external_id': 'externalID', + 'pod_cidr': 'podCIDR', + 'pod_cid_rs': 'podCIDRs', + 'provider_id': 'providerID', + 'taints': 'taints', + 'unschedulable': 'unschedulable' + } + + def __init__(self, config_source=None, external_id=None, pod_cidr=None, pod_cid_rs=None, provider_id=None, taints=None, unschedulable=None, local_vars_configuration=None): # noqa: E501 + """V1NodeSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._config_source = None + self._external_id = None + self._pod_cidr = None + self._pod_cid_rs = None + self._provider_id = None + self._taints = None + self._unschedulable = None + self.discriminator = None + + if config_source is not None: + self.config_source = config_source + if external_id is not None: + self.external_id = external_id + if pod_cidr is not None: + self.pod_cidr = pod_cidr + if pod_cid_rs is not None: + self.pod_cid_rs = pod_cid_rs + if provider_id is not None: + self.provider_id = provider_id + if taints is not None: + self.taints = taints + if unschedulable is not None: + self.unschedulable = unschedulable + + @property + def config_source(self): + """Gets the config_source of this V1NodeSpec. # noqa: E501 + + + :return: The config_source of this V1NodeSpec. # noqa: E501 + :rtype: V1NodeConfigSource + """ + return self._config_source + + @config_source.setter + def config_source(self, config_source): + """Sets the config_source of this V1NodeSpec. + + + :param config_source: The config_source of this V1NodeSpec. # noqa: E501 + :type: V1NodeConfigSource + """ + + self._config_source = config_source + + @property + def external_id(self): + """Gets the external_id of this V1NodeSpec. # noqa: E501 + + Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 # noqa: E501 + + :return: The external_id of this V1NodeSpec. # noqa: E501 + :rtype: str + """ + return self._external_id + + @external_id.setter + def external_id(self, external_id): + """Sets the external_id of this V1NodeSpec. + + Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 # noqa: E501 + + :param external_id: The external_id of this V1NodeSpec. # noqa: E501 + :type: str + """ + + self._external_id = external_id + + @property + def pod_cidr(self): + """Gets the pod_cidr of this V1NodeSpec. # noqa: E501 + + PodCIDR represents the pod IP range assigned to the node. # noqa: E501 + + :return: The pod_cidr of this V1NodeSpec. # noqa: E501 + :rtype: str + """ + return self._pod_cidr + + @pod_cidr.setter + def pod_cidr(self, pod_cidr): + """Sets the pod_cidr of this V1NodeSpec. + + PodCIDR represents the pod IP range assigned to the node. # noqa: E501 + + :param pod_cidr: The pod_cidr of this V1NodeSpec. # noqa: E501 + :type: str + """ + + self._pod_cidr = pod_cidr + + @property + def pod_cid_rs(self): + """Gets the pod_cid_rs of this V1NodeSpec. # noqa: E501 + + podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. # noqa: E501 + + :return: The pod_cid_rs of this V1NodeSpec. # noqa: E501 + :rtype: list[str] + """ + return self._pod_cid_rs + + @pod_cid_rs.setter + def pod_cid_rs(self, pod_cid_rs): + """Sets the pod_cid_rs of this V1NodeSpec. + + podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. # noqa: E501 + + :param pod_cid_rs: The pod_cid_rs of this V1NodeSpec. # noqa: E501 + :type: list[str] + """ + + self._pod_cid_rs = pod_cid_rs + + @property + def provider_id(self): + """Gets the provider_id of this V1NodeSpec. # noqa: E501 + + ID of the node assigned by the cloud provider in the format: :// # noqa: E501 + + :return: The provider_id of this V1NodeSpec. # noqa: E501 + :rtype: str + """ + return self._provider_id + + @provider_id.setter + def provider_id(self, provider_id): + """Sets the provider_id of this V1NodeSpec. + + ID of the node assigned by the cloud provider in the format: :// # noqa: E501 + + :param provider_id: The provider_id of this V1NodeSpec. # noqa: E501 + :type: str + """ + + self._provider_id = provider_id + + @property + def taints(self): + """Gets the taints of this V1NodeSpec. # noqa: E501 + + If specified, the node's taints. # noqa: E501 + + :return: The taints of this V1NodeSpec. # noqa: E501 + :rtype: list[V1Taint] + """ + return self._taints + + @taints.setter + def taints(self, taints): + """Sets the taints of this V1NodeSpec. + + If specified, the node's taints. # noqa: E501 + + :param taints: The taints of this V1NodeSpec. # noqa: E501 + :type: list[V1Taint] + """ + + self._taints = taints + + @property + def unschedulable(self): + """Gets the unschedulable of this V1NodeSpec. # noqa: E501 + + Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration # noqa: E501 + + :return: The unschedulable of this V1NodeSpec. # noqa: E501 + :rtype: bool + """ + return self._unschedulable + + @unschedulable.setter + def unschedulable(self, unschedulable): + """Sets the unschedulable of this V1NodeSpec. + + Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration # noqa: E501 + + :param unschedulable: The unschedulable of this V1NodeSpec. # noqa: E501 + :type: bool + """ + + self._unschedulable = unschedulable + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_status.py new file mode 100644 index 0000000000000000000000000000000000000000..3d9a9a23cd722db95af7b95b7fcc464484190eca --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_status.py @@ -0,0 +1,478 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'addresses': 'list[V1NodeAddress]', + 'allocatable': 'dict(str, str)', + 'capacity': 'dict(str, str)', + 'conditions': 'list[V1NodeCondition]', + 'config': 'V1NodeConfigStatus', + 'daemon_endpoints': 'V1NodeDaemonEndpoints', + 'declared_features': 'list[str]', + 'features': 'V1NodeFeatures', + 'images': 'list[V1ContainerImage]', + 'node_info': 'V1NodeSystemInfo', + 'phase': 'str', + 'runtime_handlers': 'list[V1NodeRuntimeHandler]', + 'volumes_attached': 'list[V1AttachedVolume]', + 'volumes_in_use': 'list[str]' + } + + attribute_map = { + 'addresses': 'addresses', + 'allocatable': 'allocatable', + 'capacity': 'capacity', + 'conditions': 'conditions', + 'config': 'config', + 'daemon_endpoints': 'daemonEndpoints', + 'declared_features': 'declaredFeatures', + 'features': 'features', + 'images': 'images', + 'node_info': 'nodeInfo', + 'phase': 'phase', + 'runtime_handlers': 'runtimeHandlers', + 'volumes_attached': 'volumesAttached', + 'volumes_in_use': 'volumesInUse' + } + + def __init__(self, addresses=None, allocatable=None, capacity=None, conditions=None, config=None, daemon_endpoints=None, declared_features=None, features=None, images=None, node_info=None, phase=None, runtime_handlers=None, volumes_attached=None, volumes_in_use=None, local_vars_configuration=None): # noqa: E501 + """V1NodeStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._addresses = None + self._allocatable = None + self._capacity = None + self._conditions = None + self._config = None + self._daemon_endpoints = None + self._declared_features = None + self._features = None + self._images = None + self._node_info = None + self._phase = None + self._runtime_handlers = None + self._volumes_attached = None + self._volumes_in_use = None + self.discriminator = None + + if addresses is not None: + self.addresses = addresses + if allocatable is not None: + self.allocatable = allocatable + if capacity is not None: + self.capacity = capacity + if conditions is not None: + self.conditions = conditions + if config is not None: + self.config = config + if daemon_endpoints is not None: + self.daemon_endpoints = daemon_endpoints + if declared_features is not None: + self.declared_features = declared_features + if features is not None: + self.features = features + if images is not None: + self.images = images + if node_info is not None: + self.node_info = node_info + if phase is not None: + self.phase = phase + if runtime_handlers is not None: + self.runtime_handlers = runtime_handlers + if volumes_attached is not None: + self.volumes_attached = volumes_attached + if volumes_in_use is not None: + self.volumes_in_use = volumes_in_use + + @property + def addresses(self): + """Gets the addresses of this V1NodeStatus. # noqa: E501 + + List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP). # noqa: E501 + + :return: The addresses of this V1NodeStatus. # noqa: E501 + :rtype: list[V1NodeAddress] + """ + return self._addresses + + @addresses.setter + def addresses(self, addresses): + """Sets the addresses of this V1NodeStatus. + + List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP). # noqa: E501 + + :param addresses: The addresses of this V1NodeStatus. # noqa: E501 + :type: list[V1NodeAddress] + """ + + self._addresses = addresses + + @property + def allocatable(self): + """Gets the allocatable of this V1NodeStatus. # noqa: E501 + + Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. # noqa: E501 + + :return: The allocatable of this V1NodeStatus. # noqa: E501 + :rtype: dict(str, str) + """ + return self._allocatable + + @allocatable.setter + def allocatable(self, allocatable): + """Sets the allocatable of this V1NodeStatus. + + Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. # noqa: E501 + + :param allocatable: The allocatable of this V1NodeStatus. # noqa: E501 + :type: dict(str, str) + """ + + self._allocatable = allocatable + + @property + def capacity(self): + """Gets the capacity of this V1NodeStatus. # noqa: E501 + + Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity # noqa: E501 + + :return: The capacity of this V1NodeStatus. # noqa: E501 + :rtype: dict(str, str) + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """Sets the capacity of this V1NodeStatus. + + Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity # noqa: E501 + + :param capacity: The capacity of this V1NodeStatus. # noqa: E501 + :type: dict(str, str) + """ + + self._capacity = capacity + + @property + def conditions(self): + """Gets the conditions of this V1NodeStatus. # noqa: E501 + + Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition # noqa: E501 + + :return: The conditions of this V1NodeStatus. # noqa: E501 + :rtype: list[V1NodeCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this V1NodeStatus. + + Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition # noqa: E501 + + :param conditions: The conditions of this V1NodeStatus. # noqa: E501 + :type: list[V1NodeCondition] + """ + + self._conditions = conditions + + @property + def config(self): + """Gets the config of this V1NodeStatus. # noqa: E501 + + + :return: The config of this V1NodeStatus. # noqa: E501 + :rtype: V1NodeConfigStatus + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this V1NodeStatus. + + + :param config: The config of this V1NodeStatus. # noqa: E501 + :type: V1NodeConfigStatus + """ + + self._config = config + + @property + def daemon_endpoints(self): + """Gets the daemon_endpoints of this V1NodeStatus. # noqa: E501 + + + :return: The daemon_endpoints of this V1NodeStatus. # noqa: E501 + :rtype: V1NodeDaemonEndpoints + """ + return self._daemon_endpoints + + @daemon_endpoints.setter + def daemon_endpoints(self, daemon_endpoints): + """Sets the daemon_endpoints of this V1NodeStatus. + + + :param daemon_endpoints: The daemon_endpoints of this V1NodeStatus. # noqa: E501 + :type: V1NodeDaemonEndpoints + """ + + self._daemon_endpoints = daemon_endpoints + + @property + def declared_features(self): + """Gets the declared_features of this V1NodeStatus. # noqa: E501 + + DeclaredFeatures represents the features related to feature gates that are declared by the node. # noqa: E501 + + :return: The declared_features of this V1NodeStatus. # noqa: E501 + :rtype: list[str] + """ + return self._declared_features + + @declared_features.setter + def declared_features(self, declared_features): + """Sets the declared_features of this V1NodeStatus. + + DeclaredFeatures represents the features related to feature gates that are declared by the node. # noqa: E501 + + :param declared_features: The declared_features of this V1NodeStatus. # noqa: E501 + :type: list[str] + """ + + self._declared_features = declared_features + + @property + def features(self): + """Gets the features of this V1NodeStatus. # noqa: E501 + + + :return: The features of this V1NodeStatus. # noqa: E501 + :rtype: V1NodeFeatures + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this V1NodeStatus. + + + :param features: The features of this V1NodeStatus. # noqa: E501 + :type: V1NodeFeatures + """ + + self._features = features + + @property + def images(self): + """Gets the images of this V1NodeStatus. # noqa: E501 + + List of container images on this node # noqa: E501 + + :return: The images of this V1NodeStatus. # noqa: E501 + :rtype: list[V1ContainerImage] + """ + return self._images + + @images.setter + def images(self, images): + """Sets the images of this V1NodeStatus. + + List of container images on this node # noqa: E501 + + :param images: The images of this V1NodeStatus. # noqa: E501 + :type: list[V1ContainerImage] + """ + + self._images = images + + @property + def node_info(self): + """Gets the node_info of this V1NodeStatus. # noqa: E501 + + + :return: The node_info of this V1NodeStatus. # noqa: E501 + :rtype: V1NodeSystemInfo + """ + return self._node_info + + @node_info.setter + def node_info(self, node_info): + """Sets the node_info of this V1NodeStatus. + + + :param node_info: The node_info of this V1NodeStatus. # noqa: E501 + :type: V1NodeSystemInfo + """ + + self._node_info = node_info + + @property + def phase(self): + """Gets the phase of this V1NodeStatus. # noqa: E501 + + NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. # noqa: E501 + + :return: The phase of this V1NodeStatus. # noqa: E501 + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this V1NodeStatus. + + NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. # noqa: E501 + + :param phase: The phase of this V1NodeStatus. # noqa: E501 + :type: str + """ + + self._phase = phase + + @property + def runtime_handlers(self): + """Gets the runtime_handlers of this V1NodeStatus. # noqa: E501 + + The available runtime handlers. # noqa: E501 + + :return: The runtime_handlers of this V1NodeStatus. # noqa: E501 + :rtype: list[V1NodeRuntimeHandler] + """ + return self._runtime_handlers + + @runtime_handlers.setter + def runtime_handlers(self, runtime_handlers): + """Sets the runtime_handlers of this V1NodeStatus. + + The available runtime handlers. # noqa: E501 + + :param runtime_handlers: The runtime_handlers of this V1NodeStatus. # noqa: E501 + :type: list[V1NodeRuntimeHandler] + """ + + self._runtime_handlers = runtime_handlers + + @property + def volumes_attached(self): + """Gets the volumes_attached of this V1NodeStatus. # noqa: E501 + + List of volumes that are attached to the node. # noqa: E501 + + :return: The volumes_attached of this V1NodeStatus. # noqa: E501 + :rtype: list[V1AttachedVolume] + """ + return self._volumes_attached + + @volumes_attached.setter + def volumes_attached(self, volumes_attached): + """Sets the volumes_attached of this V1NodeStatus. + + List of volumes that are attached to the node. # noqa: E501 + + :param volumes_attached: The volumes_attached of this V1NodeStatus. # noqa: E501 + :type: list[V1AttachedVolume] + """ + + self._volumes_attached = volumes_attached + + @property + def volumes_in_use(self): + """Gets the volumes_in_use of this V1NodeStatus. # noqa: E501 + + List of attachable volumes in use (mounted) by the node. # noqa: E501 + + :return: The volumes_in_use of this V1NodeStatus. # noqa: E501 + :rtype: list[str] + """ + return self._volumes_in_use + + @volumes_in_use.setter + def volumes_in_use(self, volumes_in_use): + """Sets the volumes_in_use of this V1NodeStatus. + + List of attachable volumes in use (mounted) by the node. # noqa: E501 + + :param volumes_in_use: The volumes_in_use of this V1NodeStatus. # noqa: E501 + :type: list[str] + """ + + self._volumes_in_use = volumes_in_use + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_swap_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_swap_status.py new file mode 100644 index 0000000000000000000000000000000000000000..e0654a1dcd6a335fcc44fa219fdebc35daa6d460 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_swap_status.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeSwapStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'capacity': 'int' + } + + attribute_map = { + 'capacity': 'capacity' + } + + def __init__(self, capacity=None, local_vars_configuration=None): # noqa: E501 + """V1NodeSwapStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._capacity = None + self.discriminator = None + + if capacity is not None: + self.capacity = capacity + + @property + def capacity(self): + """Gets the capacity of this V1NodeSwapStatus. # noqa: E501 + + Total amount of swap memory in bytes. # noqa: E501 + + :return: The capacity of this V1NodeSwapStatus. # noqa: E501 + :rtype: int + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """Sets the capacity of this V1NodeSwapStatus. + + Total amount of swap memory in bytes. # noqa: E501 + + :param capacity: The capacity of this V1NodeSwapStatus. # noqa: E501 + :type: int + """ + + self._capacity = capacity + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeSwapStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeSwapStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_system_info.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_system_info.py new file mode 100644 index 0000000000000000000000000000000000000000..d097f03d2c71a4f4e1fd44cbf19c4aaba5d618a9 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_system_info.py @@ -0,0 +1,410 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NodeSystemInfo(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'architecture': 'str', + 'boot_id': 'str', + 'container_runtime_version': 'str', + 'kernel_version': 'str', + 'kube_proxy_version': 'str', + 'kubelet_version': 'str', + 'machine_id': 'str', + 'operating_system': 'str', + 'os_image': 'str', + 'swap': 'V1NodeSwapStatus', + 'system_uuid': 'str' + } + + attribute_map = { + 'architecture': 'architecture', + 'boot_id': 'bootID', + 'container_runtime_version': 'containerRuntimeVersion', + 'kernel_version': 'kernelVersion', + 'kube_proxy_version': 'kubeProxyVersion', + 'kubelet_version': 'kubeletVersion', + 'machine_id': 'machineID', + 'operating_system': 'operatingSystem', + 'os_image': 'osImage', + 'swap': 'swap', + 'system_uuid': 'systemUUID' + } + + def __init__(self, architecture=None, boot_id=None, container_runtime_version=None, kernel_version=None, kube_proxy_version=None, kubelet_version=None, machine_id=None, operating_system=None, os_image=None, swap=None, system_uuid=None, local_vars_configuration=None): # noqa: E501 + """V1NodeSystemInfo - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._architecture = None + self._boot_id = None + self._container_runtime_version = None + self._kernel_version = None + self._kube_proxy_version = None + self._kubelet_version = None + self._machine_id = None + self._operating_system = None + self._os_image = None + self._swap = None + self._system_uuid = None + self.discriminator = None + + self.architecture = architecture + self.boot_id = boot_id + self.container_runtime_version = container_runtime_version + self.kernel_version = kernel_version + self.kube_proxy_version = kube_proxy_version + self.kubelet_version = kubelet_version + self.machine_id = machine_id + self.operating_system = operating_system + self.os_image = os_image + if swap is not None: + self.swap = swap + self.system_uuid = system_uuid + + @property + def architecture(self): + """Gets the architecture of this V1NodeSystemInfo. # noqa: E501 + + The Architecture reported by the node # noqa: E501 + + :return: The architecture of this V1NodeSystemInfo. # noqa: E501 + :rtype: str + """ + return self._architecture + + @architecture.setter + def architecture(self, architecture): + """Sets the architecture of this V1NodeSystemInfo. + + The Architecture reported by the node # noqa: E501 + + :param architecture: The architecture of this V1NodeSystemInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and architecture is None: # noqa: E501 + raise ValueError("Invalid value for `architecture`, must not be `None`") # noqa: E501 + + self._architecture = architecture + + @property + def boot_id(self): + """Gets the boot_id of this V1NodeSystemInfo. # noqa: E501 + + Boot ID reported by the node. # noqa: E501 + + :return: The boot_id of this V1NodeSystemInfo. # noqa: E501 + :rtype: str + """ + return self._boot_id + + @boot_id.setter + def boot_id(self, boot_id): + """Sets the boot_id of this V1NodeSystemInfo. + + Boot ID reported by the node. # noqa: E501 + + :param boot_id: The boot_id of this V1NodeSystemInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and boot_id is None: # noqa: E501 + raise ValueError("Invalid value for `boot_id`, must not be `None`") # noqa: E501 + + self._boot_id = boot_id + + @property + def container_runtime_version(self): + """Gets the container_runtime_version of this V1NodeSystemInfo. # noqa: E501 + + ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). # noqa: E501 + + :return: The container_runtime_version of this V1NodeSystemInfo. # noqa: E501 + :rtype: str + """ + return self._container_runtime_version + + @container_runtime_version.setter + def container_runtime_version(self, container_runtime_version): + """Sets the container_runtime_version of this V1NodeSystemInfo. + + ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). # noqa: E501 + + :param container_runtime_version: The container_runtime_version of this V1NodeSystemInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and container_runtime_version is None: # noqa: E501 + raise ValueError("Invalid value for `container_runtime_version`, must not be `None`") # noqa: E501 + + self._container_runtime_version = container_runtime_version + + @property + def kernel_version(self): + """Gets the kernel_version of this V1NodeSystemInfo. # noqa: E501 + + Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). # noqa: E501 + + :return: The kernel_version of this V1NodeSystemInfo. # noqa: E501 + :rtype: str + """ + return self._kernel_version + + @kernel_version.setter + def kernel_version(self, kernel_version): + """Sets the kernel_version of this V1NodeSystemInfo. + + Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). # noqa: E501 + + :param kernel_version: The kernel_version of this V1NodeSystemInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and kernel_version is None: # noqa: E501 + raise ValueError("Invalid value for `kernel_version`, must not be `None`") # noqa: E501 + + self._kernel_version = kernel_version + + @property + def kube_proxy_version(self): + """Gets the kube_proxy_version of this V1NodeSystemInfo. # noqa: E501 + + Deprecated: KubeProxy Version reported by the node. # noqa: E501 + + :return: The kube_proxy_version of this V1NodeSystemInfo. # noqa: E501 + :rtype: str + """ + return self._kube_proxy_version + + @kube_proxy_version.setter + def kube_proxy_version(self, kube_proxy_version): + """Sets the kube_proxy_version of this V1NodeSystemInfo. + + Deprecated: KubeProxy Version reported by the node. # noqa: E501 + + :param kube_proxy_version: The kube_proxy_version of this V1NodeSystemInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and kube_proxy_version is None: # noqa: E501 + raise ValueError("Invalid value for `kube_proxy_version`, must not be `None`") # noqa: E501 + + self._kube_proxy_version = kube_proxy_version + + @property + def kubelet_version(self): + """Gets the kubelet_version of this V1NodeSystemInfo. # noqa: E501 + + Kubelet Version reported by the node. # noqa: E501 + + :return: The kubelet_version of this V1NodeSystemInfo. # noqa: E501 + :rtype: str + """ + return self._kubelet_version + + @kubelet_version.setter + def kubelet_version(self, kubelet_version): + """Sets the kubelet_version of this V1NodeSystemInfo. + + Kubelet Version reported by the node. # noqa: E501 + + :param kubelet_version: The kubelet_version of this V1NodeSystemInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and kubelet_version is None: # noqa: E501 + raise ValueError("Invalid value for `kubelet_version`, must not be `None`") # noqa: E501 + + self._kubelet_version = kubelet_version + + @property + def machine_id(self): + """Gets the machine_id of this V1NodeSystemInfo. # noqa: E501 + + MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html # noqa: E501 + + :return: The machine_id of this V1NodeSystemInfo. # noqa: E501 + :rtype: str + """ + return self._machine_id + + @machine_id.setter + def machine_id(self, machine_id): + """Sets the machine_id of this V1NodeSystemInfo. + + MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html # noqa: E501 + + :param machine_id: The machine_id of this V1NodeSystemInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and machine_id is None: # noqa: E501 + raise ValueError("Invalid value for `machine_id`, must not be `None`") # noqa: E501 + + self._machine_id = machine_id + + @property + def operating_system(self): + """Gets the operating_system of this V1NodeSystemInfo. # noqa: E501 + + The Operating System reported by the node # noqa: E501 + + :return: The operating_system of this V1NodeSystemInfo. # noqa: E501 + :rtype: str + """ + return self._operating_system + + @operating_system.setter + def operating_system(self, operating_system): + """Sets the operating_system of this V1NodeSystemInfo. + + The Operating System reported by the node # noqa: E501 + + :param operating_system: The operating_system of this V1NodeSystemInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and operating_system is None: # noqa: E501 + raise ValueError("Invalid value for `operating_system`, must not be `None`") # noqa: E501 + + self._operating_system = operating_system + + @property + def os_image(self): + """Gets the os_image of this V1NodeSystemInfo. # noqa: E501 + + OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). # noqa: E501 + + :return: The os_image of this V1NodeSystemInfo. # noqa: E501 + :rtype: str + """ + return self._os_image + + @os_image.setter + def os_image(self, os_image): + """Sets the os_image of this V1NodeSystemInfo. + + OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). # noqa: E501 + + :param os_image: The os_image of this V1NodeSystemInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and os_image is None: # noqa: E501 + raise ValueError("Invalid value for `os_image`, must not be `None`") # noqa: E501 + + self._os_image = os_image + + @property + def swap(self): + """Gets the swap of this V1NodeSystemInfo. # noqa: E501 + + + :return: The swap of this V1NodeSystemInfo. # noqa: E501 + :rtype: V1NodeSwapStatus + """ + return self._swap + + @swap.setter + def swap(self, swap): + """Sets the swap of this V1NodeSystemInfo. + + + :param swap: The swap of this V1NodeSystemInfo. # noqa: E501 + :type: V1NodeSwapStatus + """ + + self._swap = swap + + @property + def system_uuid(self): + """Gets the system_uuid of this V1NodeSystemInfo. # noqa: E501 + + SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid # noqa: E501 + + :return: The system_uuid of this V1NodeSystemInfo. # noqa: E501 + :rtype: str + """ + return self._system_uuid + + @system_uuid.setter + def system_uuid(self, system_uuid): + """Sets the system_uuid of this V1NodeSystemInfo. + + SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid # noqa: E501 + + :param system_uuid: The system_uuid of this V1NodeSystemInfo. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and system_uuid is None: # noqa: E501 + raise ValueError("Invalid value for `system_uuid`, must not be `None`") # noqa: E501 + + self._system_uuid = system_uuid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeSystemInfo): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NodeSystemInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_attributes.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_attributes.py new file mode 100644 index 0000000000000000000000000000000000000000..c95403644ba209fca07e7c275dfa7e85e1e52e97 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_attributes.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NonResourceAttributes(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'path': 'str', + 'verb': 'str' + } + + attribute_map = { + 'path': 'path', + 'verb': 'verb' + } + + def __init__(self, path=None, verb=None, local_vars_configuration=None): # noqa: E501 + """V1NonResourceAttributes - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._path = None + self._verb = None + self.discriminator = None + + if path is not None: + self.path = path + if verb is not None: + self.verb = verb + + @property + def path(self): + """Gets the path of this V1NonResourceAttributes. # noqa: E501 + + Path is the URL path of the request # noqa: E501 + + :return: The path of this V1NonResourceAttributes. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this V1NonResourceAttributes. + + Path is the URL path of the request # noqa: E501 + + :param path: The path of this V1NonResourceAttributes. # noqa: E501 + :type: str + """ + + self._path = path + + @property + def verb(self): + """Gets the verb of this V1NonResourceAttributes. # noqa: E501 + + Verb is the standard HTTP verb # noqa: E501 + + :return: The verb of this V1NonResourceAttributes. # noqa: E501 + :rtype: str + """ + return self._verb + + @verb.setter + def verb(self, verb): + """Sets the verb of this V1NonResourceAttributes. + + Verb is the standard HTTP verb # noqa: E501 + + :param verb: The verb of this V1NonResourceAttributes. # noqa: E501 + :type: str + """ + + self._verb = verb + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NonResourceAttributes): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NonResourceAttributes): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_policy_rule.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_policy_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..6e47a942b090cfad279452111bcc3e21eda35444 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_policy_rule.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NonResourcePolicyRule(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'non_resource_ur_ls': 'list[str]', + 'verbs': 'list[str]' + } + + attribute_map = { + 'non_resource_ur_ls': 'nonResourceURLs', + 'verbs': 'verbs' + } + + def __init__(self, non_resource_ur_ls=None, verbs=None, local_vars_configuration=None): # noqa: E501 + """V1NonResourcePolicyRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._non_resource_ur_ls = None + self._verbs = None + self.discriminator = None + + self.non_resource_ur_ls = non_resource_ur_ls + self.verbs = verbs + + @property + def non_resource_ur_ls(self): + """Gets the non_resource_ur_ls of this V1NonResourcePolicyRule. # noqa: E501 + + `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - \"/healthz\" is legal - \"/hea*\" is illegal - \"/hea\" is legal but matches nothing - \"/hea/*\" also matches nothing - \"/healthz/*\" matches all per-component health checks. \"*\" matches all non-resource urls. if it is present, it must be the only entry. Required. # noqa: E501 + + :return: The non_resource_ur_ls of this V1NonResourcePolicyRule. # noqa: E501 + :rtype: list[str] + """ + return self._non_resource_ur_ls + + @non_resource_ur_ls.setter + def non_resource_ur_ls(self, non_resource_ur_ls): + """Sets the non_resource_ur_ls of this V1NonResourcePolicyRule. + + `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - \"/healthz\" is legal - \"/hea*\" is illegal - \"/hea\" is legal but matches nothing - \"/hea/*\" also matches nothing - \"/healthz/*\" matches all per-component health checks. \"*\" matches all non-resource urls. if it is present, it must be the only entry. Required. # noqa: E501 + + :param non_resource_ur_ls: The non_resource_ur_ls of this V1NonResourcePolicyRule. # noqa: E501 + :type: list[str] + """ + if self.local_vars_configuration.client_side_validation and non_resource_ur_ls is None: # noqa: E501 + raise ValueError("Invalid value for `non_resource_ur_ls`, must not be `None`") # noqa: E501 + + self._non_resource_ur_ls = non_resource_ur_ls + + @property + def verbs(self): + """Gets the verbs of this V1NonResourcePolicyRule. # noqa: E501 + + `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required. # noqa: E501 + + :return: The verbs of this V1NonResourcePolicyRule. # noqa: E501 + :rtype: list[str] + """ + return self._verbs + + @verbs.setter + def verbs(self, verbs): + """Sets the verbs of this V1NonResourcePolicyRule. + + `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required. # noqa: E501 + + :param verbs: The verbs of this V1NonResourcePolicyRule. # noqa: E501 + :type: list[str] + """ + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 + + self._verbs = verbs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NonResourcePolicyRule): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NonResourcePolicyRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_rule.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..fd884a1912b72cd38c07f63287408f2ada2e90a3 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_rule.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1NonResourceRule(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'non_resource_ur_ls': 'list[str]', + 'verbs': 'list[str]' + } + + attribute_map = { + 'non_resource_ur_ls': 'nonResourceURLs', + 'verbs': 'verbs' + } + + def __init__(self, non_resource_ur_ls=None, verbs=None, local_vars_configuration=None): # noqa: E501 + """V1NonResourceRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._non_resource_ur_ls = None + self._verbs = None + self.discriminator = None + + if non_resource_ur_ls is not None: + self.non_resource_ur_ls = non_resource_ur_ls + self.verbs = verbs + + @property + def non_resource_ur_ls(self): + """Gets the non_resource_ur_ls of this V1NonResourceRule. # noqa: E501 + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. # noqa: E501 + + :return: The non_resource_ur_ls of this V1NonResourceRule. # noqa: E501 + :rtype: list[str] + """ + return self._non_resource_ur_ls + + @non_resource_ur_ls.setter + def non_resource_ur_ls(self, non_resource_ur_ls): + """Sets the non_resource_ur_ls of this V1NonResourceRule. + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. # noqa: E501 + + :param non_resource_ur_ls: The non_resource_ur_ls of this V1NonResourceRule. # noqa: E501 + :type: list[str] + """ + + self._non_resource_ur_ls = non_resource_ur_ls + + @property + def verbs(self): + """Gets the verbs of this V1NonResourceRule. # noqa: E501 + + Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. # noqa: E501 + + :return: The verbs of this V1NonResourceRule. # noqa: E501 + :rtype: list[str] + """ + return self._verbs + + @verbs.setter + def verbs(self, verbs): + """Sets the verbs of this V1NonResourceRule. + + Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. # noqa: E501 + + :param verbs: The verbs of this V1NonResourceRule. # noqa: E501 + :type: list[str] + """ + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 + + self._verbs = verbs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NonResourceRule): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1NonResourceRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_object_field_selector.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_object_field_selector.py new file mode 100644 index 0000000000000000000000000000000000000000..18f4e1a39c132b0f021d887bfb7d89423e8e075d --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_object_field_selector.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ObjectFieldSelector(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'field_path': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'field_path': 'fieldPath' + } + + def __init__(self, api_version=None, field_path=None, local_vars_configuration=None): # noqa: E501 + """V1ObjectFieldSelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._field_path = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.field_path = field_path + + @property + def api_version(self): + """Gets the api_version of this V1ObjectFieldSelector. # noqa: E501 + + Version of the schema the FieldPath is written in terms of, defaults to \"v1\". # noqa: E501 + + :return: The api_version of this V1ObjectFieldSelector. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ObjectFieldSelector. + + Version of the schema the FieldPath is written in terms of, defaults to \"v1\". # noqa: E501 + + :param api_version: The api_version of this V1ObjectFieldSelector. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def field_path(self): + """Gets the field_path of this V1ObjectFieldSelector. # noqa: E501 + + Path of the field to select in the specified API version. # noqa: E501 + + :return: The field_path of this V1ObjectFieldSelector. # noqa: E501 + :rtype: str + """ + return self._field_path + + @field_path.setter + def field_path(self, field_path): + """Sets the field_path of this V1ObjectFieldSelector. + + Path of the field to select in the specified API version. # noqa: E501 + + :param field_path: The field_path of this V1ObjectFieldSelector. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and field_path is None: # noqa: E501 + raise ValueError("Invalid value for `field_path`, must not be `None`") # noqa: E501 + + self._field_path = field_path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ObjectFieldSelector): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ObjectFieldSelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_object_meta.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_object_meta.py new file mode 100644 index 0000000000000000000000000000000000000000..256cb6744f5619db5934f9bf3158acfdb515704f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_object_meta.py @@ -0,0 +1,514 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ObjectMeta(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'annotations': 'dict(str, str)', + 'creation_timestamp': 'datetime', + 'deletion_grace_period_seconds': 'int', + 'deletion_timestamp': 'datetime', + 'finalizers': 'list[str]', + 'generate_name': 'str', + 'generation': 'int', + 'labels': 'dict(str, str)', + 'managed_fields': 'list[V1ManagedFieldsEntry]', + 'name': 'str', + 'namespace': 'str', + 'owner_references': 'list[V1OwnerReference]', + 'resource_version': 'str', + 'self_link': 'str', + 'uid': 'str' + } + + attribute_map = { + 'annotations': 'annotations', + 'creation_timestamp': 'creationTimestamp', + 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', + 'deletion_timestamp': 'deletionTimestamp', + 'finalizers': 'finalizers', + 'generate_name': 'generateName', + 'generation': 'generation', + 'labels': 'labels', + 'managed_fields': 'managedFields', + 'name': 'name', + 'namespace': 'namespace', + 'owner_references': 'ownerReferences', + 'resource_version': 'resourceVersion', + 'self_link': 'selfLink', + 'uid': 'uid' + } + + def __init__(self, annotations=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None, local_vars_configuration=None): # noqa: E501 + """V1ObjectMeta - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._annotations = None + self._creation_timestamp = None + self._deletion_grace_period_seconds = None + self._deletion_timestamp = None + self._finalizers = None + self._generate_name = None + self._generation = None + self._labels = None + self._managed_fields = None + self._name = None + self._namespace = None + self._owner_references = None + self._resource_version = None + self._self_link = None + self._uid = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + if creation_timestamp is not None: + self.creation_timestamp = creation_timestamp + if deletion_grace_period_seconds is not None: + self.deletion_grace_period_seconds = deletion_grace_period_seconds + if deletion_timestamp is not None: + self.deletion_timestamp = deletion_timestamp + if finalizers is not None: + self.finalizers = finalizers + if generate_name is not None: + self.generate_name = generate_name + if generation is not None: + self.generation = generation + if labels is not None: + self.labels = labels + if managed_fields is not None: + self.managed_fields = managed_fields + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + if owner_references is not None: + self.owner_references = owner_references + if resource_version is not None: + self.resource_version = resource_version + if self_link is not None: + self.self_link = self_link + if uid is not None: + self.uid = uid + + @property + def annotations(self): + """Gets the annotations of this V1ObjectMeta. # noqa: E501 + + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations # noqa: E501 + + :return: The annotations of this V1ObjectMeta. # noqa: E501 + :rtype: dict(str, str) + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this V1ObjectMeta. + + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations # noqa: E501 + + :param annotations: The annotations of this V1ObjectMeta. # noqa: E501 + :type: dict(str, str) + """ + + self._annotations = annotations + + @property + def creation_timestamp(self): + """Gets the creation_timestamp of this V1ObjectMeta. # noqa: E501 + + CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata # noqa: E501 + + :return: The creation_timestamp of this V1ObjectMeta. # noqa: E501 + :rtype: datetime + """ + return self._creation_timestamp + + @creation_timestamp.setter + def creation_timestamp(self, creation_timestamp): + """Sets the creation_timestamp of this V1ObjectMeta. + + CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata # noqa: E501 + + :param creation_timestamp: The creation_timestamp of this V1ObjectMeta. # noqa: E501 + :type: datetime + """ + + self._creation_timestamp = creation_timestamp + + @property + def deletion_grace_period_seconds(self): + """Gets the deletion_grace_period_seconds of this V1ObjectMeta. # noqa: E501 + + 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. # noqa: E501 + + :return: The deletion_grace_period_seconds of this V1ObjectMeta. # noqa: E501 + :rtype: int + """ + return self._deletion_grace_period_seconds + + @deletion_grace_period_seconds.setter + def deletion_grace_period_seconds(self, deletion_grace_period_seconds): + """Sets the deletion_grace_period_seconds of this V1ObjectMeta. + + 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. # noqa: E501 + + :param deletion_grace_period_seconds: The deletion_grace_period_seconds of this V1ObjectMeta. # noqa: E501 + :type: int + """ + + self._deletion_grace_period_seconds = deletion_grace_period_seconds + + @property + def deletion_timestamp(self): + """Gets the deletion_timestamp of this V1ObjectMeta. # noqa: E501 + + DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata # noqa: E501 + + :return: The deletion_timestamp of this V1ObjectMeta. # noqa: E501 + :rtype: datetime + """ + return self._deletion_timestamp + + @deletion_timestamp.setter + def deletion_timestamp(self, deletion_timestamp): + """Sets the deletion_timestamp of this V1ObjectMeta. + + DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata # noqa: E501 + + :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. # noqa: E501 + :type: datetime + """ + + self._deletion_timestamp = deletion_timestamp + + @property + def finalizers(self): + """Gets the finalizers of this V1ObjectMeta. # noqa: E501 + + 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. # noqa: E501 + + :return: The finalizers of this V1ObjectMeta. # noqa: E501 + :rtype: list[str] + """ + return self._finalizers + + @finalizers.setter + def finalizers(self, finalizers): + """Sets the finalizers of this V1ObjectMeta. + + 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. # noqa: E501 + + :param finalizers: The finalizers of this V1ObjectMeta. # noqa: E501 + :type: list[str] + """ + + self._finalizers = finalizers + + @property + def generate_name(self): + """Gets the generate_name of this V1ObjectMeta. # noqa: E501 + + 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. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency # noqa: E501 + + :return: The generate_name of this V1ObjectMeta. # noqa: E501 + :rtype: str + """ + return self._generate_name + + @generate_name.setter + def generate_name(self, generate_name): + """Sets the generate_name of this V1ObjectMeta. + + 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. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency # noqa: E501 + + :param generate_name: The generate_name of this V1ObjectMeta. # noqa: E501 + :type: str + """ + + self._generate_name = generate_name + + @property + def generation(self): + """Gets the generation of this V1ObjectMeta. # noqa: E501 + + A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. # noqa: E501 + + :return: The generation of this V1ObjectMeta. # noqa: E501 + :rtype: int + """ + return self._generation + + @generation.setter + def generation(self, generation): + """Sets the generation of this V1ObjectMeta. + + A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. # noqa: E501 + + :param generation: The generation of this V1ObjectMeta. # noqa: E501 + :type: int + """ + + self._generation = generation + + @property + def labels(self): + """Gets the labels of this V1ObjectMeta. # noqa: E501 + + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels # noqa: E501 + + :return: The labels of this V1ObjectMeta. # noqa: E501 + :rtype: dict(str, str) + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this V1ObjectMeta. + + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels # noqa: E501 + + :param labels: The labels of this V1ObjectMeta. # noqa: E501 + :type: dict(str, str) + """ + + self._labels = labels + + @property + def managed_fields(self): + """Gets the managed_fields of this V1ObjectMeta. # noqa: E501 + + ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. # noqa: E501 + + :return: The managed_fields of this V1ObjectMeta. # noqa: E501 + :rtype: list[V1ManagedFieldsEntry] + """ + return self._managed_fields + + @managed_fields.setter + def managed_fields(self, managed_fields): + """Sets the managed_fields of this V1ObjectMeta. + + ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. # noqa: E501 + + :param managed_fields: The managed_fields of this V1ObjectMeta. # noqa: E501 + :type: list[V1ManagedFieldsEntry] + """ + + self._managed_fields = managed_fields + + @property + def name(self): + """Gets the name of this V1ObjectMeta. # noqa: E501 + + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names # noqa: E501 + + :return: The name of this V1ObjectMeta. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1ObjectMeta. + + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names # noqa: E501 + + :param name: The name of this V1ObjectMeta. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this V1ObjectMeta. # noqa: E501 + + 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. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces # noqa: E501 + + :return: The namespace of this V1ObjectMeta. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this V1ObjectMeta. + + 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. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces # noqa: E501 + + :param namespace: The namespace of this V1ObjectMeta. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + @property + def owner_references(self): + """Gets the owner_references of this V1ObjectMeta. # noqa: E501 + + 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. # noqa: E501 + + :return: The owner_references of this V1ObjectMeta. # noqa: E501 + :rtype: list[V1OwnerReference] + """ + return self._owner_references + + @owner_references.setter + def owner_references(self, owner_references): + """Sets the owner_references of this V1ObjectMeta. + + 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. # noqa: E501 + + :param owner_references: The owner_references of this V1ObjectMeta. # noqa: E501 + :type: list[V1OwnerReference] + """ + + self._owner_references = owner_references + + @property + def resource_version(self): + """Gets the resource_version of this V1ObjectMeta. # noqa: E501 + + 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. Populated 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 # noqa: E501 + + :return: The resource_version of this V1ObjectMeta. # noqa: E501 + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """Sets the resource_version of this V1ObjectMeta. + + 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. Populated 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 # noqa: E501 + + :param resource_version: The resource_version of this V1ObjectMeta. # noqa: E501 + :type: str + """ + + self._resource_version = resource_version + + @property + def self_link(self): + """Gets the self_link of this V1ObjectMeta. # noqa: E501 + + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. # noqa: E501 + + :return: The self_link of this V1ObjectMeta. # noqa: E501 + :rtype: str + """ + return self._self_link + + @self_link.setter + def self_link(self, self_link): + """Sets the self_link of this V1ObjectMeta. + + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. # noqa: E501 + + :param self_link: The self_link of this V1ObjectMeta. # noqa: E501 + :type: str + """ + + self._self_link = self_link + + @property + def uid(self): + """Gets the uid of this V1ObjectMeta. # noqa: E501 + + 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. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids # noqa: E501 + + :return: The uid of this V1ObjectMeta. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this V1ObjectMeta. + + 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. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids # noqa: E501 + + :param uid: The uid of this V1ObjectMeta. # noqa: E501 + :type: str + """ + + self._uid = uid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ObjectMeta): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ObjectMeta): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_object_reference.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_object_reference.py new file mode 100644 index 0000000000000000000000000000000000000000..378ee144c8ab2028f03fab03bde3510411120ec9 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_object_reference.py @@ -0,0 +1,290 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ObjectReference(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'field_path': 'str', + 'kind': 'str', + 'name': 'str', + 'namespace': 'str', + 'resource_version': 'str', + 'uid': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'field_path': 'fieldPath', + 'kind': 'kind', + 'name': 'name', + 'namespace': 'namespace', + 'resource_version': 'resourceVersion', + 'uid': 'uid' + } + + def __init__(self, api_version=None, field_path=None, kind=None, name=None, namespace=None, resource_version=None, uid=None, local_vars_configuration=None): # noqa: E501 + """V1ObjectReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._field_path = None + self._kind = None + self._name = None + self._namespace = None + self._resource_version = None + self._uid = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if field_path is not None: + self.field_path = field_path + if kind is not None: + self.kind = kind + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + if resource_version is not None: + self.resource_version = resource_version + if uid is not None: + self.uid = uid + + @property + def api_version(self): + """Gets the api_version of this V1ObjectReference. # noqa: E501 + + API version of the referent. # noqa: E501 + + :return: The api_version of this V1ObjectReference. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ObjectReference. + + API version of the referent. # noqa: E501 + + :param api_version: The api_version of this V1ObjectReference. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def field_path(self): + """Gets the field_path of this V1ObjectReference. # noqa: E501 + + If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. # noqa: E501 + + :return: The field_path of this V1ObjectReference. # noqa: E501 + :rtype: str + """ + return self._field_path + + @field_path.setter + def field_path(self, field_path): + """Sets the field_path of this V1ObjectReference. + + If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. # noqa: E501 + + :param field_path: The field_path of this V1ObjectReference. # noqa: E501 + :type: str + """ + + self._field_path = field_path + + @property + def kind(self): + """Gets the kind of this V1ObjectReference. # noqa: E501 + + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ObjectReference. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ObjectReference. + + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ObjectReference. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def name(self): + """Gets the name of this V1ObjectReference. # noqa: E501 + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :return: The name of this V1ObjectReference. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1ObjectReference. + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :param name: The name of this V1ObjectReference. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this V1ObjectReference. # noqa: E501 + + Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ # noqa: E501 + + :return: The namespace of this V1ObjectReference. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this V1ObjectReference. + + Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ # noqa: E501 + + :param namespace: The namespace of this V1ObjectReference. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + @property + def resource_version(self): + """Gets the resource_version of this V1ObjectReference. # noqa: E501 + + Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency # noqa: E501 + + :return: The resource_version of this V1ObjectReference. # noqa: E501 + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """Sets the resource_version of this V1ObjectReference. + + Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency # noqa: E501 + + :param resource_version: The resource_version of this V1ObjectReference. # noqa: E501 + :type: str + """ + + self._resource_version = resource_version + + @property + def uid(self): + """Gets the uid of this V1ObjectReference. # noqa: E501 + + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids # noqa: E501 + + :return: The uid of this V1ObjectReference. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this V1ObjectReference. + + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids # noqa: E501 + + :param uid: The uid of this V1ObjectReference. # noqa: E501 + :type: str + """ + + self._uid = uid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ObjectReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ObjectReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_opaque_device_configuration.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_opaque_device_configuration.py new file mode 100644 index 0000000000000000000000000000000000000000..7312bf7bc4012722e7c2e244187a2801291c70ae --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_opaque_device_configuration.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1OpaqueDeviceConfiguration(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'driver': 'str', + 'parameters': 'object' + } + + attribute_map = { + 'driver': 'driver', + 'parameters': 'parameters' + } + + def __init__(self, driver=None, parameters=None, local_vars_configuration=None): # noqa: E501 + """V1OpaqueDeviceConfiguration - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._driver = None + self._parameters = None + self.discriminator = None + + self.driver = driver + self.parameters = parameters + + @property + def driver(self): + """Gets the driver of this V1OpaqueDeviceConfiguration. # noqa: E501 + + Driver is used to determine which kubelet plugin needs to be passed these configuration parameters. An admission policy provided by the driver developer could use this to decide whether it needs to validate them. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. # noqa: E501 + + :return: The driver of this V1OpaqueDeviceConfiguration. # noqa: E501 + :rtype: str + """ + return self._driver + + @driver.setter + def driver(self, driver): + """Sets the driver of this V1OpaqueDeviceConfiguration. + + Driver is used to determine which kubelet plugin needs to be passed these configuration parameters. An admission policy provided by the driver developer could use this to decide whether it needs to validate them. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. # noqa: E501 + + :param driver: The driver of this V1OpaqueDeviceConfiguration. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501 + raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 + + self._driver = driver + + @property + def parameters(self): + """Gets the parameters of this V1OpaqueDeviceConfiguration. # noqa: E501 + + Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version (\"kind\" + \"apiVersion\" for Kubernetes types), with conversion between different versions. The length of the raw data must be smaller or equal to 10 Ki. # noqa: E501 + + :return: The parameters of this V1OpaqueDeviceConfiguration. # noqa: E501 + :rtype: object + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this V1OpaqueDeviceConfiguration. + + Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version (\"kind\" + \"apiVersion\" for Kubernetes types), with conversion between different versions. The length of the raw data must be smaller or equal to 10 Ki. # noqa: E501 + + :param parameters: The parameters of this V1OpaqueDeviceConfiguration. # noqa: E501 + :type: object + """ + if self.local_vars_configuration.client_side_validation and parameters is None: # noqa: E501 + raise ValueError("Invalid value for `parameters`, must not be `None`") # noqa: E501 + + self._parameters = parameters + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1OpaqueDeviceConfiguration): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1OpaqueDeviceConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_overhead.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_overhead.py new file mode 100644 index 0000000000000000000000000000000000000000..d0aa388a5a8f0cde215cc1dd12e24ae80d1f2d4b --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_overhead.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Overhead(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'pod_fixed': 'dict(str, str)' + } + + attribute_map = { + 'pod_fixed': 'podFixed' + } + + def __init__(self, pod_fixed=None, local_vars_configuration=None): # noqa: E501 + """V1Overhead - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._pod_fixed = None + self.discriminator = None + + if pod_fixed is not None: + self.pod_fixed = pod_fixed + + @property + def pod_fixed(self): + """Gets the pod_fixed of this V1Overhead. # noqa: E501 + + podFixed represents the fixed resource overhead associated with running a pod. # noqa: E501 + + :return: The pod_fixed of this V1Overhead. # noqa: E501 + :rtype: dict(str, str) + """ + return self._pod_fixed + + @pod_fixed.setter + def pod_fixed(self, pod_fixed): + """Sets the pod_fixed of this V1Overhead. + + podFixed represents the fixed resource overhead associated with running a pod. # noqa: E501 + + :param pod_fixed: The pod_fixed of this V1Overhead. # noqa: E501 + :type: dict(str, str) + """ + + self._pod_fixed = pod_fixed + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Overhead): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Overhead): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_owner_reference.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_owner_reference.py new file mode 100644 index 0000000000000000000000000000000000000000..b20b7b45b77907dd1deebbe725d91fcbadb62e02 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_owner_reference.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1OwnerReference(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'block_owner_deletion': 'bool', + 'controller': 'bool', + 'kind': 'str', + 'name': 'str', + 'uid': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'block_owner_deletion': 'blockOwnerDeletion', + 'controller': 'controller', + 'kind': 'kind', + 'name': 'name', + 'uid': 'uid' + } + + def __init__(self, api_version=None, block_owner_deletion=None, controller=None, kind=None, name=None, uid=None, local_vars_configuration=None): # noqa: E501 + """V1OwnerReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._block_owner_deletion = None + self._controller = None + self._kind = None + self._name = None + self._uid = None + self.discriminator = None + + self.api_version = api_version + if block_owner_deletion is not None: + self.block_owner_deletion = block_owner_deletion + if controller is not None: + self.controller = controller + self.kind = kind + self.name = name + self.uid = uid + + @property + def api_version(self): + """Gets the api_version of this V1OwnerReference. # noqa: E501 + + API version of the referent. # noqa: E501 + + :return: The api_version of this V1OwnerReference. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1OwnerReference. + + API version of the referent. # noqa: E501 + + :param api_version: The api_version of this V1OwnerReference. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and api_version is None: # noqa: E501 + raise ValueError("Invalid value for `api_version`, must not be `None`") # noqa: E501 + + self._api_version = api_version + + @property + def block_owner_deletion(self): + """Gets the block_owner_deletion of this V1OwnerReference. # noqa: E501 + + If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. # noqa: E501 + + :return: The block_owner_deletion of this V1OwnerReference. # noqa: E501 + :rtype: bool + """ + return self._block_owner_deletion + + @block_owner_deletion.setter + def block_owner_deletion(self, block_owner_deletion): + """Sets the block_owner_deletion of this V1OwnerReference. + + If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. # noqa: E501 + + :param block_owner_deletion: The block_owner_deletion of this V1OwnerReference. # noqa: E501 + :type: bool + """ + + self._block_owner_deletion = block_owner_deletion + + @property + def controller(self): + """Gets the controller of this V1OwnerReference. # noqa: E501 + + If true, this reference points to the managing controller. # noqa: E501 + + :return: The controller of this V1OwnerReference. # noqa: E501 + :rtype: bool + """ + return self._controller + + @controller.setter + def controller(self, controller): + """Sets the controller of this V1OwnerReference. + + If true, this reference points to the managing controller. # noqa: E501 + + :param controller: The controller of this V1OwnerReference. # noqa: E501 + :type: bool + """ + + self._controller = controller + + @property + def kind(self): + """Gets the kind of this V1OwnerReference. # noqa: E501 + + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1OwnerReference. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1OwnerReference. + + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1OwnerReference. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 + + self._kind = kind + + @property + def name(self): + """Gets the name of this V1OwnerReference. # noqa: E501 + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names # noqa: E501 + + :return: The name of this V1OwnerReference. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1OwnerReference. + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names # noqa: E501 + + :param name: The name of this V1OwnerReference. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def uid(self): + """Gets the uid of this V1OwnerReference. # noqa: E501 + + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids # noqa: E501 + + :return: The uid of this V1OwnerReference. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this V1OwnerReference. + + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids # noqa: E501 + + :param uid: The uid of this V1OwnerReference. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and uid is None: # noqa: E501 + raise ValueError("Invalid value for `uid`, must not be `None`") # noqa: E501 + + self._uid = uid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1OwnerReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1OwnerReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_param_kind.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_param_kind.py new file mode 100644 index 0000000000000000000000000000000000000000..352bda6fc532a09955b0d747a38adfd3108ceb5c --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_param_kind.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ParamKind(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind' + } + + def __init__(self, api_version=None, kind=None, local_vars_configuration=None): # noqa: E501 + """V1ParamKind - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + + @property + def api_version(self): + """Gets the api_version of this V1ParamKind. # noqa: E501 + + APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. # noqa: E501 + + :return: The api_version of this V1ParamKind. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ParamKind. + + APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. # noqa: E501 + + :param api_version: The api_version of this V1ParamKind. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1ParamKind. # noqa: E501 + + Kind is the API kind the resources belong to. Required. # noqa: E501 + + :return: The kind of this V1ParamKind. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ParamKind. + + Kind is the API kind the resources belong to. Required. # noqa: E501 + + :param kind: The kind of this V1ParamKind. # noqa: E501 + :type: str + """ + + self._kind = kind + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ParamKind): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ParamKind): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_param_ref.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_param_ref.py new file mode 100644 index 0000000000000000000000000000000000000000..13849b8a6b258694ee5ad74629d266fa67c22f28 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_param_ref.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ParamRef(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str', + 'namespace': 'str', + 'parameter_not_found_action': 'str', + 'selector': 'V1LabelSelector' + } + + attribute_map = { + 'name': 'name', + 'namespace': 'namespace', + 'parameter_not_found_action': 'parameterNotFoundAction', + 'selector': 'selector' + } + + def __init__(self, name=None, namespace=None, parameter_not_found_action=None, selector=None, local_vars_configuration=None): # noqa: E501 + """V1ParamRef - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self._namespace = None + self._parameter_not_found_action = None + self._selector = None + self.discriminator = None + + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + if parameter_not_found_action is not None: + self.parameter_not_found_action = parameter_not_found_action + if selector is not None: + self.selector = selector + + @property + def name(self): + """Gets the name of this V1ParamRef. # noqa: E501 + + name is the name of the resource being referenced. One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. # noqa: E501 + + :return: The name of this V1ParamRef. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1ParamRef. + + name is the name of the resource being referenced. One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. # noqa: E501 + + :param name: The name of this V1ParamRef. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this V1ParamRef. # noqa: E501 + + namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. # noqa: E501 + + :return: The namespace of this V1ParamRef. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this V1ParamRef. + + namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. # noqa: E501 + + :param namespace: The namespace of this V1ParamRef. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + @property + def parameter_not_found_action(self): + """Gets the parameter_not_found_action of this V1ParamRef. # noqa: E501 + + `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required # noqa: E501 + + :return: The parameter_not_found_action of this V1ParamRef. # noqa: E501 + :rtype: str + """ + return self._parameter_not_found_action + + @parameter_not_found_action.setter + def parameter_not_found_action(self, parameter_not_found_action): + """Sets the parameter_not_found_action of this V1ParamRef. + + `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required # noqa: E501 + + :param parameter_not_found_action: The parameter_not_found_action of this V1ParamRef. # noqa: E501 + :type: str + """ + + self._parameter_not_found_action = parameter_not_found_action + + @property + def selector(self): + """Gets the selector of this V1ParamRef. # noqa: E501 + + + :return: The selector of this V1ParamRef. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """Sets the selector of this V1ParamRef. + + + :param selector: The selector of this V1ParamRef. # noqa: E501 + :type: V1LabelSelector + """ + + self._selector = selector + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ParamRef): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ParamRef): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_parent_reference.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_parent_reference.py new file mode 100644 index 0000000000000000000000000000000000000000..3c5912e359967c645b8a6ea962810041d9ca81f2 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_parent_reference.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ParentReference(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'group': 'str', + 'name': 'str', + 'namespace': 'str', + 'resource': 'str' + } + + attribute_map = { + 'group': 'group', + 'name': 'name', + 'namespace': 'namespace', + 'resource': 'resource' + } + + def __init__(self, group=None, name=None, namespace=None, resource=None, local_vars_configuration=None): # noqa: E501 + """V1ParentReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._group = None + self._name = None + self._namespace = None + self._resource = None + self.discriminator = None + + if group is not None: + self.group = group + self.name = name + if namespace is not None: + self.namespace = namespace + self.resource = resource + + @property + def group(self): + """Gets the group of this V1ParentReference. # noqa: E501 + + Group is the group of the object being referenced. # noqa: E501 + + :return: The group of this V1ParentReference. # noqa: E501 + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this V1ParentReference. + + Group is the group of the object being referenced. # noqa: E501 + + :param group: The group of this V1ParentReference. # noqa: E501 + :type: str + """ + + self._group = group + + @property + def name(self): + """Gets the name of this V1ParentReference. # noqa: E501 + + Name is the name of the object being referenced. # noqa: E501 + + :return: The name of this V1ParentReference. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1ParentReference. + + Name is the name of the object being referenced. # noqa: E501 + + :param name: The name of this V1ParentReference. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this V1ParentReference. # noqa: E501 + + Namespace is the namespace of the object being referenced. # noqa: E501 + + :return: The namespace of this V1ParentReference. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this V1ParentReference. + + Namespace is the namespace of the object being referenced. # noqa: E501 + + :param namespace: The namespace of this V1ParentReference. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + @property + def resource(self): + """Gets the resource of this V1ParentReference. # noqa: E501 + + Resource is the resource of the object being referenced. # noqa: E501 + + :return: The resource of this V1ParentReference. # noqa: E501 + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """Sets the resource of this V1ParentReference. + + Resource is the resource of the object being referenced. # noqa: E501 + + :param resource: The resource of this V1ParentReference. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and resource is None: # noqa: E501 + raise ValueError("Invalid value for `resource`, must not be `None`") # noqa: E501 + + self._resource = resource + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ParentReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ParentReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume.py new file mode 100644 index 0000000000000000000000000000000000000000..0f90bdebfed961cbf281a589f09074203f98430b --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PersistentVolume(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PersistentVolumeSpec', + 'status': 'V1PersistentVolumeStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1PersistentVolume - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1PersistentVolume. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PersistentVolume. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PersistentVolume. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PersistentVolume. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1PersistentVolume. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PersistentVolume. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PersistentVolume. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PersistentVolume. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PersistentVolume. # noqa: E501 + + + :return: The metadata of this V1PersistentVolume. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PersistentVolume. + + + :param metadata: The metadata of this V1PersistentVolume. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1PersistentVolume. # noqa: E501 + + + :return: The spec of this V1PersistentVolume. # noqa: E501 + :rtype: V1PersistentVolumeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1PersistentVolume. + + + :param spec: The spec of this V1PersistentVolume. # noqa: E501 + :type: V1PersistentVolumeSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1PersistentVolume. # noqa: E501 + + + :return: The status of this V1PersistentVolume. # noqa: E501 + :rtype: V1PersistentVolumeStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1PersistentVolume. + + + :param status: The status of this V1PersistentVolume. # noqa: E501 + :type: V1PersistentVolumeStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PersistentVolume): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PersistentVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim.py new file mode 100644 index 0000000000000000000000000000000000000000..8d27e679d6f3314ce5b0cafc3a1a62b82cfd879d --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PersistentVolumeClaim(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PersistentVolumeClaimSpec', + 'status': 'V1PersistentVolumeClaimStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1PersistentVolumeClaim - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1PersistentVolumeClaim. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PersistentVolumeClaim. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PersistentVolumeClaim. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PersistentVolumeClaim. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1PersistentVolumeClaim. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PersistentVolumeClaim. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PersistentVolumeClaim. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PersistentVolumeClaim. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PersistentVolumeClaim. # noqa: E501 + + + :return: The metadata of this V1PersistentVolumeClaim. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PersistentVolumeClaim. + + + :param metadata: The metadata of this V1PersistentVolumeClaim. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1PersistentVolumeClaim. # noqa: E501 + + + :return: The spec of this V1PersistentVolumeClaim. # noqa: E501 + :rtype: V1PersistentVolumeClaimSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1PersistentVolumeClaim. + + + :param spec: The spec of this V1PersistentVolumeClaim. # noqa: E501 + :type: V1PersistentVolumeClaimSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1PersistentVolumeClaim. # noqa: E501 + + + :return: The status of this V1PersistentVolumeClaim. # noqa: E501 + :rtype: V1PersistentVolumeClaimStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1PersistentVolumeClaim. + + + :param status: The status of this V1PersistentVolumeClaim. # noqa: E501 + :type: V1PersistentVolumeClaimStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PersistentVolumeClaim): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PersistentVolumeClaim): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_condition.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_condition.py new file mode 100644 index 0000000000000000000000000000000000000000..6b85017390f7b17a9065d1ee78b101a4d3cb99d1 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_condition.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PersistentVolumeClaimCondition(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'last_probe_time': 'datetime', + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'last_probe_time': 'lastProbeTime', + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1PersistentVolumeClaimCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._last_probe_time = None + self._last_transition_time = None + self._message = None + self._reason = None + self._status = None + self._type = None + self.discriminator = None + + if last_probe_time is not None: + self.last_probe_time = last_probe_time + if last_transition_time is not None: + self.last_transition_time = last_transition_time + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def last_probe_time(self): + """Gets the last_probe_time of this V1PersistentVolumeClaimCondition. # noqa: E501 + + lastProbeTime is the time we probed the condition. # noqa: E501 + + :return: The last_probe_time of this V1PersistentVolumeClaimCondition. # noqa: E501 + :rtype: datetime + """ + return self._last_probe_time + + @last_probe_time.setter + def last_probe_time(self, last_probe_time): + """Sets the last_probe_time of this V1PersistentVolumeClaimCondition. + + lastProbeTime is the time we probed the condition. # noqa: E501 + + :param last_probe_time: The last_probe_time of this V1PersistentVolumeClaimCondition. # noqa: E501 + :type: datetime + """ + + self._last_probe_time = last_probe_time + + @property + def last_transition_time(self): + """Gets the last_transition_time of this V1PersistentVolumeClaimCondition. # noqa: E501 + + lastTransitionTime is the time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1PersistentVolumeClaimCondition. # noqa: E501 + :rtype: datetime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """Sets the last_transition_time of this V1PersistentVolumeClaimCondition. + + lastTransitionTime is the time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1PersistentVolumeClaimCondition. # noqa: E501 + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """Gets the message of this V1PersistentVolumeClaimCondition. # noqa: E501 + + message is the human-readable message indicating details about last transition. # noqa: E501 + + :return: The message of this V1PersistentVolumeClaimCondition. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1PersistentVolumeClaimCondition. + + message is the human-readable message indicating details about last transition. # noqa: E501 + + :param message: The message of this V1PersistentVolumeClaimCondition. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def reason(self): + """Gets the reason of this V1PersistentVolumeClaimCondition. # noqa: E501 + + reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized. # noqa: E501 + + :return: The reason of this V1PersistentVolumeClaimCondition. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1PersistentVolumeClaimCondition. + + reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized. # noqa: E501 + + :param reason: The reason of this V1PersistentVolumeClaimCondition. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def status(self): + """Gets the status of this V1PersistentVolumeClaimCondition. # noqa: E501 + + Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required # noqa: E501 + + :return: The status of this V1PersistentVolumeClaimCondition. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1PersistentVolumeClaimCondition. + + Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required # noqa: E501 + + :param status: The status of this V1PersistentVolumeClaimCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def type(self): + """Gets the type of this V1PersistentVolumeClaimCondition. # noqa: E501 + + Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about # noqa: E501 + + :return: The type of this V1PersistentVolumeClaimCondition. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1PersistentVolumeClaimCondition. + + Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about # noqa: E501 + + :param type: The type of this V1PersistentVolumeClaimCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PersistentVolumeClaimCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PersistentVolumeClaimCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_list.py new file mode 100644 index 0000000000000000000000000000000000000000..dd87a3bc1e0789bbe1e55f3badfead679bc8df18 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PersistentVolumeClaimList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1PersistentVolumeClaim]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1PersistentVolumeClaimList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1PersistentVolumeClaimList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PersistentVolumeClaimList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PersistentVolumeClaimList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PersistentVolumeClaimList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1PersistentVolumeClaimList. # noqa: E501 + + items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 + + :return: The items of this V1PersistentVolumeClaimList. # noqa: E501 + :rtype: list[V1PersistentVolumeClaim] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1PersistentVolumeClaimList. + + items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 + + :param items: The items of this V1PersistentVolumeClaimList. # noqa: E501 + :type: list[V1PersistentVolumeClaim] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1PersistentVolumeClaimList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PersistentVolumeClaimList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PersistentVolumeClaimList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PersistentVolumeClaimList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PersistentVolumeClaimList. # noqa: E501 + + + :return: The metadata of this V1PersistentVolumeClaimList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PersistentVolumeClaimList. + + + :param metadata: The metadata of this V1PersistentVolumeClaimList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PersistentVolumeClaimList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PersistentVolumeClaimList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..0dd2f39e86d8a8b0ddd39d354d8f0c24ed2e37b8 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_spec.py @@ -0,0 +1,338 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PersistentVolumeClaimSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'access_modes': 'list[str]', + 'data_source': 'V1TypedLocalObjectReference', + 'data_source_ref': 'V1TypedObjectReference', + 'resources': 'V1VolumeResourceRequirements', + 'selector': 'V1LabelSelector', + 'storage_class_name': 'str', + 'volume_attributes_class_name': 'str', + 'volume_mode': 'str', + 'volume_name': 'str' + } + + attribute_map = { + 'access_modes': 'accessModes', + 'data_source': 'dataSource', + 'data_source_ref': 'dataSourceRef', + 'resources': 'resources', + 'selector': 'selector', + 'storage_class_name': 'storageClassName', + 'volume_attributes_class_name': 'volumeAttributesClassName', + 'volume_mode': 'volumeMode', + 'volume_name': 'volumeName' + } + + def __init__(self, access_modes=None, data_source=None, data_source_ref=None, resources=None, selector=None, storage_class_name=None, volume_attributes_class_name=None, volume_mode=None, volume_name=None, local_vars_configuration=None): # noqa: E501 + """V1PersistentVolumeClaimSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._access_modes = None + self._data_source = None + self._data_source_ref = None + self._resources = None + self._selector = None + self._storage_class_name = None + self._volume_attributes_class_name = None + self._volume_mode = None + self._volume_name = None + self.discriminator = None + + if access_modes is not None: + self.access_modes = access_modes + if data_source is not None: + self.data_source = data_source + if data_source_ref is not None: + self.data_source_ref = data_source_ref + if resources is not None: + self.resources = resources + if selector is not None: + self.selector = selector + if storage_class_name is not None: + self.storage_class_name = storage_class_name + if volume_attributes_class_name is not None: + self.volume_attributes_class_name = volume_attributes_class_name + if volume_mode is not None: + self.volume_mode = volume_mode + if volume_name is not None: + self.volume_name = volume_name + + @property + def access_modes(self): + """Gets the access_modes of this V1PersistentVolumeClaimSpec. # noqa: E501 + + accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 # noqa: E501 + + :return: The access_modes of this V1PersistentVolumeClaimSpec. # noqa: E501 + :rtype: list[str] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """Sets the access_modes of this V1PersistentVolumeClaimSpec. + + accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 # noqa: E501 + + :param access_modes: The access_modes of this V1PersistentVolumeClaimSpec. # noqa: E501 + :type: list[str] + """ + + self._access_modes = access_modes + + @property + def data_source(self): + """Gets the data_source of this V1PersistentVolumeClaimSpec. # noqa: E501 + + + :return: The data_source of this V1PersistentVolumeClaimSpec. # noqa: E501 + :rtype: V1TypedLocalObjectReference + """ + return self._data_source + + @data_source.setter + def data_source(self, data_source): + """Sets the data_source of this V1PersistentVolumeClaimSpec. + + + :param data_source: The data_source of this V1PersistentVolumeClaimSpec. # noqa: E501 + :type: V1TypedLocalObjectReference + """ + + self._data_source = data_source + + @property + def data_source_ref(self): + """Gets the data_source_ref of this V1PersistentVolumeClaimSpec. # noqa: E501 + + + :return: The data_source_ref of this V1PersistentVolumeClaimSpec. # noqa: E501 + :rtype: V1TypedObjectReference + """ + return self._data_source_ref + + @data_source_ref.setter + def data_source_ref(self, data_source_ref): + """Sets the data_source_ref of this V1PersistentVolumeClaimSpec. + + + :param data_source_ref: The data_source_ref of this V1PersistentVolumeClaimSpec. # noqa: E501 + :type: V1TypedObjectReference + """ + + self._data_source_ref = data_source_ref + + @property + def resources(self): + """Gets the resources of this V1PersistentVolumeClaimSpec. # noqa: E501 + + + :return: The resources of this V1PersistentVolumeClaimSpec. # noqa: E501 + :rtype: V1VolumeResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1PersistentVolumeClaimSpec. + + + :param resources: The resources of this V1PersistentVolumeClaimSpec. # noqa: E501 + :type: V1VolumeResourceRequirements + """ + + self._resources = resources + + @property + def selector(self): + """Gets the selector of this V1PersistentVolumeClaimSpec. # noqa: E501 + + + :return: The selector of this V1PersistentVolumeClaimSpec. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """Sets the selector of this V1PersistentVolumeClaimSpec. + + + :param selector: The selector of this V1PersistentVolumeClaimSpec. # noqa: E501 + :type: V1LabelSelector + """ + + self._selector = selector + + @property + def storage_class_name(self): + """Gets the storage_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501 + + storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 # noqa: E501 + + :return: The storage_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501 + :rtype: str + """ + return self._storage_class_name + + @storage_class_name.setter + def storage_class_name(self, storage_class_name): + """Sets the storage_class_name of this V1PersistentVolumeClaimSpec. + + storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 # noqa: E501 + + :param storage_class_name: The storage_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501 + :type: str + """ + + self._storage_class_name = storage_class_name + + @property + def volume_attributes_class_name(self): + """Gets the volume_attributes_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501 + + volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ # noqa: E501 + + :return: The volume_attributes_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501 + :rtype: str + """ + return self._volume_attributes_class_name + + @volume_attributes_class_name.setter + def volume_attributes_class_name(self, volume_attributes_class_name): + """Sets the volume_attributes_class_name of this V1PersistentVolumeClaimSpec. + + volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ # noqa: E501 + + :param volume_attributes_class_name: The volume_attributes_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501 + :type: str + """ + + self._volume_attributes_class_name = volume_attributes_class_name + + @property + def volume_mode(self): + """Gets the volume_mode of this V1PersistentVolumeClaimSpec. # noqa: E501 + + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. # noqa: E501 + + :return: The volume_mode of this V1PersistentVolumeClaimSpec. # noqa: E501 + :rtype: str + """ + return self._volume_mode + + @volume_mode.setter + def volume_mode(self, volume_mode): + """Sets the volume_mode of this V1PersistentVolumeClaimSpec. + + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. # noqa: E501 + + :param volume_mode: The volume_mode of this V1PersistentVolumeClaimSpec. # noqa: E501 + :type: str + """ + + self._volume_mode = volume_mode + + @property + def volume_name(self): + """Gets the volume_name of this V1PersistentVolumeClaimSpec. # noqa: E501 + + volumeName is the binding reference to the PersistentVolume backing this claim. # noqa: E501 + + :return: The volume_name of this V1PersistentVolumeClaimSpec. # noqa: E501 + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """Sets the volume_name of this V1PersistentVolumeClaimSpec. + + volumeName is the binding reference to the PersistentVolume backing this claim. # noqa: E501 + + :param volume_name: The volume_name of this V1PersistentVolumeClaimSpec. # noqa: E501 + :type: str + """ + + self._volume_name = volume_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PersistentVolumeClaimSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PersistentVolumeClaimSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_status.py new file mode 100644 index 0000000000000000000000000000000000000000..c254f3aa44bb04086bf27cb3d983358ed704ed7c --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_status.py @@ -0,0 +1,316 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PersistentVolumeClaimStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'access_modes': 'list[str]', + 'allocated_resource_statuses': 'dict(str, str)', + 'allocated_resources': 'dict(str, str)', + 'capacity': 'dict(str, str)', + 'conditions': 'list[V1PersistentVolumeClaimCondition]', + 'current_volume_attributes_class_name': 'str', + 'modify_volume_status': 'V1ModifyVolumeStatus', + 'phase': 'str' + } + + attribute_map = { + 'access_modes': 'accessModes', + 'allocated_resource_statuses': 'allocatedResourceStatuses', + 'allocated_resources': 'allocatedResources', + 'capacity': 'capacity', + 'conditions': 'conditions', + 'current_volume_attributes_class_name': 'currentVolumeAttributesClassName', + 'modify_volume_status': 'modifyVolumeStatus', + 'phase': 'phase' + } + + def __init__(self, access_modes=None, allocated_resource_statuses=None, allocated_resources=None, capacity=None, conditions=None, current_volume_attributes_class_name=None, modify_volume_status=None, phase=None, local_vars_configuration=None): # noqa: E501 + """V1PersistentVolumeClaimStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._access_modes = None + self._allocated_resource_statuses = None + self._allocated_resources = None + self._capacity = None + self._conditions = None + self._current_volume_attributes_class_name = None + self._modify_volume_status = None + self._phase = None + self.discriminator = None + + if access_modes is not None: + self.access_modes = access_modes + if allocated_resource_statuses is not None: + self.allocated_resource_statuses = allocated_resource_statuses + if allocated_resources is not None: + self.allocated_resources = allocated_resources + if capacity is not None: + self.capacity = capacity + if conditions is not None: + self.conditions = conditions + if current_volume_attributes_class_name is not None: + self.current_volume_attributes_class_name = current_volume_attributes_class_name + if modify_volume_status is not None: + self.modify_volume_status = modify_volume_status + if phase is not None: + self.phase = phase + + @property + def access_modes(self): + """Gets the access_modes of this V1PersistentVolumeClaimStatus. # noqa: E501 + + accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 # noqa: E501 + + :return: The access_modes of this V1PersistentVolumeClaimStatus. # noqa: E501 + :rtype: list[str] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """Sets the access_modes of this V1PersistentVolumeClaimStatus. + + accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 # noqa: E501 + + :param access_modes: The access_modes of this V1PersistentVolumeClaimStatus. # noqa: E501 + :type: list[str] + """ + + self._access_modes = access_modes + + @property + def allocated_resource_statuses(self): + """Gets the allocated_resource_statuses of this V1PersistentVolumeClaimStatus. # noqa: E501 + + allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. # noqa: E501 + + :return: The allocated_resource_statuses of this V1PersistentVolumeClaimStatus. # noqa: E501 + :rtype: dict(str, str) + """ + return self._allocated_resource_statuses + + @allocated_resource_statuses.setter + def allocated_resource_statuses(self, allocated_resource_statuses): + """Sets the allocated_resource_statuses of this V1PersistentVolumeClaimStatus. + + allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. ClaimResourceStatus can be in any of following states: - ControllerResizeInProgress: State set when resize controller starts resizing the volume in control-plane. - ControllerResizeFailed: State set when resize has failed in resize controller with a terminal error. - NodeResizePending: State set when resize controller has finished resizing the volume but further resizing of volume is needed on the node. - NodeResizeInProgress: State set when kubelet starts resizing the volume. - NodeResizeFailed: State set when resizing has failed in kubelet with a terminal error. Transient errors don't set NodeResizeFailed. For example: if expanding a PVC for more capacity - this field can be one of the following states: - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\" - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\" When this field is not set, it means that no resize operation is in progress for the given PVC. A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. # noqa: E501 + + :param allocated_resource_statuses: The allocated_resource_statuses of this V1PersistentVolumeClaimStatus. # noqa: E501 + :type: dict(str, str) + """ + + self._allocated_resource_statuses = allocated_resource_statuses + + @property + def allocated_resources(self): + """Gets the allocated_resources of this V1PersistentVolumeClaimStatus. # noqa: E501 + + allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. # noqa: E501 + + :return: The allocated_resources of this V1PersistentVolumeClaimStatus. # noqa: E501 + :rtype: dict(str, str) + """ + return self._allocated_resources + + @allocated_resources.setter + def allocated_resources(self, allocated_resources): + """Sets the allocated_resources of this V1PersistentVolumeClaimStatus. + + allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either: * Un-prefixed keys: - storage - the capacity of the volume. * Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\" Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used. Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC. # noqa: E501 + + :param allocated_resources: The allocated_resources of this V1PersistentVolumeClaimStatus. # noqa: E501 + :type: dict(str, str) + """ + + self._allocated_resources = allocated_resources + + @property + def capacity(self): + """Gets the capacity of this V1PersistentVolumeClaimStatus. # noqa: E501 + + capacity represents the actual resources of the underlying volume. # noqa: E501 + + :return: The capacity of this V1PersistentVolumeClaimStatus. # noqa: E501 + :rtype: dict(str, str) + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """Sets the capacity of this V1PersistentVolumeClaimStatus. + + capacity represents the actual resources of the underlying volume. # noqa: E501 + + :param capacity: The capacity of this V1PersistentVolumeClaimStatus. # noqa: E501 + :type: dict(str, str) + """ + + self._capacity = capacity + + @property + def conditions(self): + """Gets the conditions of this V1PersistentVolumeClaimStatus. # noqa: E501 + + conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. # noqa: E501 + + :return: The conditions of this V1PersistentVolumeClaimStatus. # noqa: E501 + :rtype: list[V1PersistentVolumeClaimCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this V1PersistentVolumeClaimStatus. + + conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. # noqa: E501 + + :param conditions: The conditions of this V1PersistentVolumeClaimStatus. # noqa: E501 + :type: list[V1PersistentVolumeClaimCondition] + """ + + self._conditions = conditions + + @property + def current_volume_attributes_class_name(self): + """Gets the current_volume_attributes_class_name of this V1PersistentVolumeClaimStatus. # noqa: E501 + + currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim # noqa: E501 + + :return: The current_volume_attributes_class_name of this V1PersistentVolumeClaimStatus. # noqa: E501 + :rtype: str + """ + return self._current_volume_attributes_class_name + + @current_volume_attributes_class_name.setter + def current_volume_attributes_class_name(self, current_volume_attributes_class_name): + """Sets the current_volume_attributes_class_name of this V1PersistentVolumeClaimStatus. + + currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim # noqa: E501 + + :param current_volume_attributes_class_name: The current_volume_attributes_class_name of this V1PersistentVolumeClaimStatus. # noqa: E501 + :type: str + """ + + self._current_volume_attributes_class_name = current_volume_attributes_class_name + + @property + def modify_volume_status(self): + """Gets the modify_volume_status of this V1PersistentVolumeClaimStatus. # noqa: E501 + + + :return: The modify_volume_status of this V1PersistentVolumeClaimStatus. # noqa: E501 + :rtype: V1ModifyVolumeStatus + """ + return self._modify_volume_status + + @modify_volume_status.setter + def modify_volume_status(self, modify_volume_status): + """Sets the modify_volume_status of this V1PersistentVolumeClaimStatus. + + + :param modify_volume_status: The modify_volume_status of this V1PersistentVolumeClaimStatus. # noqa: E501 + :type: V1ModifyVolumeStatus + """ + + self._modify_volume_status = modify_volume_status + + @property + def phase(self): + """Gets the phase of this V1PersistentVolumeClaimStatus. # noqa: E501 + + phase represents the current phase of PersistentVolumeClaim. # noqa: E501 + + :return: The phase of this V1PersistentVolumeClaimStatus. # noqa: E501 + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this V1PersistentVolumeClaimStatus. + + phase represents the current phase of PersistentVolumeClaim. # noqa: E501 + + :param phase: The phase of this V1PersistentVolumeClaimStatus. # noqa: E501 + :type: str + """ + + self._phase = phase + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PersistentVolumeClaimStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PersistentVolumeClaimStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_template.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_template.py new file mode 100644 index 0000000000000000000000000000000000000000..ae9f54f744d32bb996dddfe003d44fd908ca05ad --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_template.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PersistentVolumeClaimTemplate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PersistentVolumeClaimSpec' + } + + attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 + """V1PersistentVolumeClaimTemplate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._metadata = None + self._spec = None + self.discriminator = None + + if metadata is not None: + self.metadata = metadata + self.spec = spec + + @property + def metadata(self): + """Gets the metadata of this V1PersistentVolumeClaimTemplate. # noqa: E501 + + + :return: The metadata of this V1PersistentVolumeClaimTemplate. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PersistentVolumeClaimTemplate. + + + :param metadata: The metadata of this V1PersistentVolumeClaimTemplate. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1PersistentVolumeClaimTemplate. # noqa: E501 + + + :return: The spec of this V1PersistentVolumeClaimTemplate. # noqa: E501 + :rtype: V1PersistentVolumeClaimSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1PersistentVolumeClaimTemplate. + + + :param spec: The spec of this V1PersistentVolumeClaimTemplate. # noqa: E501 + :type: V1PersistentVolumeClaimSpec + """ + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PersistentVolumeClaimTemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PersistentVolumeClaimTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..5f90c05df713377514194a6f188da39b20c6210c --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PersistentVolumeClaimVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'claim_name': 'str', + 'read_only': 'bool' + } + + attribute_map = { + 'claim_name': 'claimName', + 'read_only': 'readOnly' + } + + def __init__(self, claim_name=None, read_only=None, local_vars_configuration=None): # noqa: E501 + """V1PersistentVolumeClaimVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._claim_name = None + self._read_only = None + self.discriminator = None + + self.claim_name = claim_name + if read_only is not None: + self.read_only = read_only + + @property + def claim_name(self): + """Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 + + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 + + :return: The claim_name of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 + :rtype: str + """ + return self._claim_name + + @claim_name.setter + def claim_name(self, claim_name): + """Sets the claim_name of this V1PersistentVolumeClaimVolumeSource. + + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 + + :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and claim_name is None: # noqa: E501 + raise ValueError("Invalid value for `claim_name`, must not be `None`") # noqa: E501 + + self._claim_name = claim_name + + @property + def read_only(self): + """Gets the read_only of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 + + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. # noqa: E501 + + :return: The read_only of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """Sets the read_only of this V1PersistentVolumeClaimVolumeSource. + + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. # noqa: E501 + + :param read_only: The read_only of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 + :type: bool + """ + + self._read_only = read_only + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PersistentVolumeClaimVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PersistentVolumeClaimVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_list.py new file mode 100644 index 0000000000000000000000000000000000000000..9d6da1a40766ed6a56eb66eb34e8a70703bc906b --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PersistentVolumeList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1PersistentVolume]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1PersistentVolumeList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1PersistentVolumeList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PersistentVolumeList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PersistentVolumeList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PersistentVolumeList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1PersistentVolumeList. # noqa: E501 + + items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes # noqa: E501 + + :return: The items of this V1PersistentVolumeList. # noqa: E501 + :rtype: list[V1PersistentVolume] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1PersistentVolumeList. + + items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes # noqa: E501 + + :param items: The items of this V1PersistentVolumeList. # noqa: E501 + :type: list[V1PersistentVolume] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1PersistentVolumeList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PersistentVolumeList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PersistentVolumeList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PersistentVolumeList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PersistentVolumeList. # noqa: E501 + + + :return: The metadata of this V1PersistentVolumeList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PersistentVolumeList. + + + :param metadata: The metadata of this V1PersistentVolumeList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PersistentVolumeList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PersistentVolumeList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..7d98d83bcd45108c7ee536e069f38aef832c0e8e --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_spec.py @@ -0,0 +1,914 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PersistentVolumeSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'access_modes': 'list[str]', + 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', + 'azure_disk': 'V1AzureDiskVolumeSource', + 'azure_file': 'V1AzureFilePersistentVolumeSource', + 'capacity': 'dict(str, str)', + 'cephfs': 'V1CephFSPersistentVolumeSource', + 'cinder': 'V1CinderPersistentVolumeSource', + 'claim_ref': 'V1ObjectReference', + 'csi': 'V1CSIPersistentVolumeSource', + 'fc': 'V1FCVolumeSource', + 'flex_volume': 'V1FlexPersistentVolumeSource', + 'flocker': 'V1FlockerVolumeSource', + 'gce_persistent_disk': 'V1GCEPersistentDiskVolumeSource', + 'glusterfs': 'V1GlusterfsPersistentVolumeSource', + 'host_path': 'V1HostPathVolumeSource', + 'iscsi': 'V1ISCSIPersistentVolumeSource', + 'local': 'V1LocalVolumeSource', + 'mount_options': 'list[str]', + 'nfs': 'V1NFSVolumeSource', + 'node_affinity': 'V1VolumeNodeAffinity', + 'persistent_volume_reclaim_policy': 'str', + 'photon_persistent_disk': 'V1PhotonPersistentDiskVolumeSource', + 'portworx_volume': 'V1PortworxVolumeSource', + 'quobyte': 'V1QuobyteVolumeSource', + 'rbd': 'V1RBDPersistentVolumeSource', + 'scale_io': 'V1ScaleIOPersistentVolumeSource', + 'storage_class_name': 'str', + 'storageos': 'V1StorageOSPersistentVolumeSource', + 'volume_attributes_class_name': 'str', + 'volume_mode': 'str', + 'vsphere_volume': 'V1VsphereVirtualDiskVolumeSource' + } + + attribute_map = { + 'access_modes': 'accessModes', + 'aws_elastic_block_store': 'awsElasticBlockStore', + 'azure_disk': 'azureDisk', + 'azure_file': 'azureFile', + 'capacity': 'capacity', + 'cephfs': 'cephfs', + 'cinder': 'cinder', + 'claim_ref': 'claimRef', + 'csi': 'csi', + 'fc': 'fc', + 'flex_volume': 'flexVolume', + 'flocker': 'flocker', + 'gce_persistent_disk': 'gcePersistentDisk', + 'glusterfs': 'glusterfs', + 'host_path': 'hostPath', + 'iscsi': 'iscsi', + 'local': 'local', + 'mount_options': 'mountOptions', + 'nfs': 'nfs', + 'node_affinity': 'nodeAffinity', + 'persistent_volume_reclaim_policy': 'persistentVolumeReclaimPolicy', + 'photon_persistent_disk': 'photonPersistentDisk', + 'portworx_volume': 'portworxVolume', + 'quobyte': 'quobyte', + 'rbd': 'rbd', + 'scale_io': 'scaleIO', + 'storage_class_name': 'storageClassName', + 'storageos': 'storageos', + 'volume_attributes_class_name': 'volumeAttributesClassName', + 'volume_mode': 'volumeMode', + 'vsphere_volume': 'vsphereVolume' + } + + def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=None, azure_file=None, capacity=None, cephfs=None, cinder=None, claim_ref=None, csi=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, glusterfs=None, host_path=None, iscsi=None, local=None, mount_options=None, nfs=None, node_affinity=None, persistent_volume_reclaim_policy=None, photon_persistent_disk=None, portworx_volume=None, quobyte=None, rbd=None, scale_io=None, storage_class_name=None, storageos=None, volume_attributes_class_name=None, volume_mode=None, vsphere_volume=None, local_vars_configuration=None): # noqa: E501 + """V1PersistentVolumeSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._access_modes = None + self._aws_elastic_block_store = None + self._azure_disk = None + self._azure_file = None + self._capacity = None + self._cephfs = None + self._cinder = None + self._claim_ref = None + self._csi = None + self._fc = None + self._flex_volume = None + self._flocker = None + self._gce_persistent_disk = None + self._glusterfs = None + self._host_path = None + self._iscsi = None + self._local = None + self._mount_options = None + self._nfs = None + self._node_affinity = None + self._persistent_volume_reclaim_policy = None + self._photon_persistent_disk = None + self._portworx_volume = None + self._quobyte = None + self._rbd = None + self._scale_io = None + self._storage_class_name = None + self._storageos = None + self._volume_attributes_class_name = None + self._volume_mode = None + self._vsphere_volume = None + self.discriminator = None + + if access_modes is not None: + self.access_modes = access_modes + if aws_elastic_block_store is not None: + self.aws_elastic_block_store = aws_elastic_block_store + if azure_disk is not None: + self.azure_disk = azure_disk + if azure_file is not None: + self.azure_file = azure_file + if capacity is not None: + self.capacity = capacity + if cephfs is not None: + self.cephfs = cephfs + if cinder is not None: + self.cinder = cinder + if claim_ref is not None: + self.claim_ref = claim_ref + if csi is not None: + self.csi = csi + if fc is not None: + self.fc = fc + if flex_volume is not None: + self.flex_volume = flex_volume + if flocker is not None: + self.flocker = flocker + if gce_persistent_disk is not None: + self.gce_persistent_disk = gce_persistent_disk + if glusterfs is not None: + self.glusterfs = glusterfs + if host_path is not None: + self.host_path = host_path + if iscsi is not None: + self.iscsi = iscsi + if local is not None: + self.local = local + if mount_options is not None: + self.mount_options = mount_options + if nfs is not None: + self.nfs = nfs + if node_affinity is not None: + self.node_affinity = node_affinity + if persistent_volume_reclaim_policy is not None: + self.persistent_volume_reclaim_policy = persistent_volume_reclaim_policy + if photon_persistent_disk is not None: + self.photon_persistent_disk = photon_persistent_disk + if portworx_volume is not None: + self.portworx_volume = portworx_volume + if quobyte is not None: + self.quobyte = quobyte + if rbd is not None: + self.rbd = rbd + if scale_io is not None: + self.scale_io = scale_io + if storage_class_name is not None: + self.storage_class_name = storage_class_name + if storageos is not None: + self.storageos = storageos + if volume_attributes_class_name is not None: + self.volume_attributes_class_name = volume_attributes_class_name + if volume_mode is not None: + self.volume_mode = volume_mode + if vsphere_volume is not None: + self.vsphere_volume = vsphere_volume + + @property + def access_modes(self): + """Gets the access_modes of this V1PersistentVolumeSpec. # noqa: E501 + + accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes # noqa: E501 + + :return: The access_modes of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: list[str] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """Sets the access_modes of this V1PersistentVolumeSpec. + + accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes # noqa: E501 + + :param access_modes: The access_modes of this V1PersistentVolumeSpec. # noqa: E501 + :type: list[str] + """ + + self._access_modes = access_modes + + @property + def aws_elastic_block_store(self): + """Gets the aws_elastic_block_store of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The aws_elastic_block_store of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1AWSElasticBlockStoreVolumeSource + """ + return self._aws_elastic_block_store + + @aws_elastic_block_store.setter + def aws_elastic_block_store(self, aws_elastic_block_store): + """Sets the aws_elastic_block_store of this V1PersistentVolumeSpec. + + + :param aws_elastic_block_store: The aws_elastic_block_store of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1AWSElasticBlockStoreVolumeSource + """ + + self._aws_elastic_block_store = aws_elastic_block_store + + @property + def azure_disk(self): + """Gets the azure_disk of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The azure_disk of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1AzureDiskVolumeSource + """ + return self._azure_disk + + @azure_disk.setter + def azure_disk(self, azure_disk): + """Sets the azure_disk of this V1PersistentVolumeSpec. + + + :param azure_disk: The azure_disk of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1AzureDiskVolumeSource + """ + + self._azure_disk = azure_disk + + @property + def azure_file(self): + """Gets the azure_file of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The azure_file of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1AzureFilePersistentVolumeSource + """ + return self._azure_file + + @azure_file.setter + def azure_file(self, azure_file): + """Sets the azure_file of this V1PersistentVolumeSpec. + + + :param azure_file: The azure_file of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1AzureFilePersistentVolumeSource + """ + + self._azure_file = azure_file + + @property + def capacity(self): + """Gets the capacity of this V1PersistentVolumeSpec. # noqa: E501 + + capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity # noqa: E501 + + :return: The capacity of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: dict(str, str) + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """Sets the capacity of this V1PersistentVolumeSpec. + + capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity # noqa: E501 + + :param capacity: The capacity of this V1PersistentVolumeSpec. # noqa: E501 + :type: dict(str, str) + """ + + self._capacity = capacity + + @property + def cephfs(self): + """Gets the cephfs of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The cephfs of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1CephFSPersistentVolumeSource + """ + return self._cephfs + + @cephfs.setter + def cephfs(self, cephfs): + """Sets the cephfs of this V1PersistentVolumeSpec. + + + :param cephfs: The cephfs of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1CephFSPersistentVolumeSource + """ + + self._cephfs = cephfs + + @property + def cinder(self): + """Gets the cinder of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The cinder of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1CinderPersistentVolumeSource + """ + return self._cinder + + @cinder.setter + def cinder(self, cinder): + """Sets the cinder of this V1PersistentVolumeSpec. + + + :param cinder: The cinder of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1CinderPersistentVolumeSource + """ + + self._cinder = cinder + + @property + def claim_ref(self): + """Gets the claim_ref of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The claim_ref of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1ObjectReference + """ + return self._claim_ref + + @claim_ref.setter + def claim_ref(self, claim_ref): + """Sets the claim_ref of this V1PersistentVolumeSpec. + + + :param claim_ref: The claim_ref of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1ObjectReference + """ + + self._claim_ref = claim_ref + + @property + def csi(self): + """Gets the csi of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The csi of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1CSIPersistentVolumeSource + """ + return self._csi + + @csi.setter + def csi(self, csi): + """Sets the csi of this V1PersistentVolumeSpec. + + + :param csi: The csi of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1CSIPersistentVolumeSource + """ + + self._csi = csi + + @property + def fc(self): + """Gets the fc of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The fc of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1FCVolumeSource + """ + return self._fc + + @fc.setter + def fc(self, fc): + """Sets the fc of this V1PersistentVolumeSpec. + + + :param fc: The fc of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1FCVolumeSource + """ + + self._fc = fc + + @property + def flex_volume(self): + """Gets the flex_volume of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The flex_volume of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1FlexPersistentVolumeSource + """ + return self._flex_volume + + @flex_volume.setter + def flex_volume(self, flex_volume): + """Sets the flex_volume of this V1PersistentVolumeSpec. + + + :param flex_volume: The flex_volume of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1FlexPersistentVolumeSource + """ + + self._flex_volume = flex_volume + + @property + def flocker(self): + """Gets the flocker of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The flocker of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1FlockerVolumeSource + """ + return self._flocker + + @flocker.setter + def flocker(self, flocker): + """Sets the flocker of this V1PersistentVolumeSpec. + + + :param flocker: The flocker of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1FlockerVolumeSource + """ + + self._flocker = flocker + + @property + def gce_persistent_disk(self): + """Gets the gce_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The gce_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1GCEPersistentDiskVolumeSource + """ + return self._gce_persistent_disk + + @gce_persistent_disk.setter + def gce_persistent_disk(self, gce_persistent_disk): + """Sets the gce_persistent_disk of this V1PersistentVolumeSpec. + + + :param gce_persistent_disk: The gce_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1GCEPersistentDiskVolumeSource + """ + + self._gce_persistent_disk = gce_persistent_disk + + @property + def glusterfs(self): + """Gets the glusterfs of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The glusterfs of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1GlusterfsPersistentVolumeSource + """ + return self._glusterfs + + @glusterfs.setter + def glusterfs(self, glusterfs): + """Sets the glusterfs of this V1PersistentVolumeSpec. + + + :param glusterfs: The glusterfs of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1GlusterfsPersistentVolumeSource + """ + + self._glusterfs = glusterfs + + @property + def host_path(self): + """Gets the host_path of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The host_path of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1HostPathVolumeSource + """ + return self._host_path + + @host_path.setter + def host_path(self, host_path): + """Sets the host_path of this V1PersistentVolumeSpec. + + + :param host_path: The host_path of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1HostPathVolumeSource + """ + + self._host_path = host_path + + @property + def iscsi(self): + """Gets the iscsi of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The iscsi of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1ISCSIPersistentVolumeSource + """ + return self._iscsi + + @iscsi.setter + def iscsi(self, iscsi): + """Sets the iscsi of this V1PersistentVolumeSpec. + + + :param iscsi: The iscsi of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1ISCSIPersistentVolumeSource + """ + + self._iscsi = iscsi + + @property + def local(self): + """Gets the local of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The local of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1LocalVolumeSource + """ + return self._local + + @local.setter + def local(self, local): + """Sets the local of this V1PersistentVolumeSpec. + + + :param local: The local of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1LocalVolumeSource + """ + + self._local = local + + @property + def mount_options(self): + """Gets the mount_options of this V1PersistentVolumeSpec. # noqa: E501 + + mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options # noqa: E501 + + :return: The mount_options of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: list[str] + """ + return self._mount_options + + @mount_options.setter + def mount_options(self, mount_options): + """Sets the mount_options of this V1PersistentVolumeSpec. + + mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options # noqa: E501 + + :param mount_options: The mount_options of this V1PersistentVolumeSpec. # noqa: E501 + :type: list[str] + """ + + self._mount_options = mount_options + + @property + def nfs(self): + """Gets the nfs of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The nfs of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1NFSVolumeSource + """ + return self._nfs + + @nfs.setter + def nfs(self, nfs): + """Sets the nfs of this V1PersistentVolumeSpec. + + + :param nfs: The nfs of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1NFSVolumeSource + """ + + self._nfs = nfs + + @property + def node_affinity(self): + """Gets the node_affinity of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The node_affinity of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1VolumeNodeAffinity + """ + return self._node_affinity + + @node_affinity.setter + def node_affinity(self, node_affinity): + """Sets the node_affinity of this V1PersistentVolumeSpec. + + + :param node_affinity: The node_affinity of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1VolumeNodeAffinity + """ + + self._node_affinity = node_affinity + + @property + def persistent_volume_reclaim_policy(self): + """Gets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. # noqa: E501 + + persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming # noqa: E501 + + :return: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: str + """ + return self._persistent_volume_reclaim_policy + + @persistent_volume_reclaim_policy.setter + def persistent_volume_reclaim_policy(self, persistent_volume_reclaim_policy): + """Sets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + + persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming # noqa: E501 + + :param persistent_volume_reclaim_policy: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. # noqa: E501 + :type: str + """ + + self._persistent_volume_reclaim_policy = persistent_volume_reclaim_policy + + @property + def photon_persistent_disk(self): + """Gets the photon_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The photon_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1PhotonPersistentDiskVolumeSource + """ + return self._photon_persistent_disk + + @photon_persistent_disk.setter + def photon_persistent_disk(self, photon_persistent_disk): + """Sets the photon_persistent_disk of this V1PersistentVolumeSpec. + + + :param photon_persistent_disk: The photon_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1PhotonPersistentDiskVolumeSource + """ + + self._photon_persistent_disk = photon_persistent_disk + + @property + def portworx_volume(self): + """Gets the portworx_volume of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The portworx_volume of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1PortworxVolumeSource + """ + return self._portworx_volume + + @portworx_volume.setter + def portworx_volume(self, portworx_volume): + """Sets the portworx_volume of this V1PersistentVolumeSpec. + + + :param portworx_volume: The portworx_volume of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1PortworxVolumeSource + """ + + self._portworx_volume = portworx_volume + + @property + def quobyte(self): + """Gets the quobyte of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The quobyte of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1QuobyteVolumeSource + """ + return self._quobyte + + @quobyte.setter + def quobyte(self, quobyte): + """Sets the quobyte of this V1PersistentVolumeSpec. + + + :param quobyte: The quobyte of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1QuobyteVolumeSource + """ + + self._quobyte = quobyte + + @property + def rbd(self): + """Gets the rbd of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The rbd of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1RBDPersistentVolumeSource + """ + return self._rbd + + @rbd.setter + def rbd(self, rbd): + """Sets the rbd of this V1PersistentVolumeSpec. + + + :param rbd: The rbd of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1RBDPersistentVolumeSource + """ + + self._rbd = rbd + + @property + def scale_io(self): + """Gets the scale_io of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The scale_io of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1ScaleIOPersistentVolumeSource + """ + return self._scale_io + + @scale_io.setter + def scale_io(self, scale_io): + """Sets the scale_io of this V1PersistentVolumeSpec. + + + :param scale_io: The scale_io of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1ScaleIOPersistentVolumeSource + """ + + self._scale_io = scale_io + + @property + def storage_class_name(self): + """Gets the storage_class_name of this V1PersistentVolumeSpec. # noqa: E501 + + storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. # noqa: E501 + + :return: The storage_class_name of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: str + """ + return self._storage_class_name + + @storage_class_name.setter + def storage_class_name(self, storage_class_name): + """Sets the storage_class_name of this V1PersistentVolumeSpec. + + storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. # noqa: E501 + + :param storage_class_name: The storage_class_name of this V1PersistentVolumeSpec. # noqa: E501 + :type: str + """ + + self._storage_class_name = storage_class_name + + @property + def storageos(self): + """Gets the storageos of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The storageos of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1StorageOSPersistentVolumeSource + """ + return self._storageos + + @storageos.setter + def storageos(self, storageos): + """Sets the storageos of this V1PersistentVolumeSpec. + + + :param storageos: The storageos of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1StorageOSPersistentVolumeSource + """ + + self._storageos = storageos + + @property + def volume_attributes_class_name(self): + """Gets the volume_attributes_class_name of this V1PersistentVolumeSpec. # noqa: E501 + + Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. # noqa: E501 + + :return: The volume_attributes_class_name of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: str + """ + return self._volume_attributes_class_name + + @volume_attributes_class_name.setter + def volume_attributes_class_name(self, volume_attributes_class_name): + """Sets the volume_attributes_class_name of this V1PersistentVolumeSpec. + + Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. # noqa: E501 + + :param volume_attributes_class_name: The volume_attributes_class_name of this V1PersistentVolumeSpec. # noqa: E501 + :type: str + """ + + self._volume_attributes_class_name = volume_attributes_class_name + + @property + def volume_mode(self): + """Gets the volume_mode of this V1PersistentVolumeSpec. # noqa: E501 + + volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. # noqa: E501 + + :return: The volume_mode of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: str + """ + return self._volume_mode + + @volume_mode.setter + def volume_mode(self, volume_mode): + """Sets the volume_mode of this V1PersistentVolumeSpec. + + volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. # noqa: E501 + + :param volume_mode: The volume_mode of this V1PersistentVolumeSpec. # noqa: E501 + :type: str + """ + + self._volume_mode = volume_mode + + @property + def vsphere_volume(self): + """Gets the vsphere_volume of this V1PersistentVolumeSpec. # noqa: E501 + + + :return: The vsphere_volume of this V1PersistentVolumeSpec. # noqa: E501 + :rtype: V1VsphereVirtualDiskVolumeSource + """ + return self._vsphere_volume + + @vsphere_volume.setter + def vsphere_volume(self, vsphere_volume): + """Sets the vsphere_volume of this V1PersistentVolumeSpec. + + + :param vsphere_volume: The vsphere_volume of this V1PersistentVolumeSpec. # noqa: E501 + :type: V1VsphereVirtualDiskVolumeSource + """ + + self._vsphere_volume = vsphere_volume + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PersistentVolumeSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PersistentVolumeSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_status.py new file mode 100644 index 0000000000000000000000000000000000000000..58336fa308dd6bde07bd89e43372a3bc7c38fab2 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_persistent_volume_status.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PersistentVolumeStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'last_phase_transition_time': 'datetime', + 'message': 'str', + 'phase': 'str', + 'reason': 'str' + } + + attribute_map = { + 'last_phase_transition_time': 'lastPhaseTransitionTime', + 'message': 'message', + 'phase': 'phase', + 'reason': 'reason' + } + + def __init__(self, last_phase_transition_time=None, message=None, phase=None, reason=None, local_vars_configuration=None): # noqa: E501 + """V1PersistentVolumeStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._last_phase_transition_time = None + self._message = None + self._phase = None + self._reason = None + self.discriminator = None + + if last_phase_transition_time is not None: + self.last_phase_transition_time = last_phase_transition_time + if message is not None: + self.message = message + if phase is not None: + self.phase = phase + if reason is not None: + self.reason = reason + + @property + def last_phase_transition_time(self): + """Gets the last_phase_transition_time of this V1PersistentVolumeStatus. # noqa: E501 + + lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. # noqa: E501 + + :return: The last_phase_transition_time of this V1PersistentVolumeStatus. # noqa: E501 + :rtype: datetime + """ + return self._last_phase_transition_time + + @last_phase_transition_time.setter + def last_phase_transition_time(self, last_phase_transition_time): + """Sets the last_phase_transition_time of this V1PersistentVolumeStatus. + + lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. # noqa: E501 + + :param last_phase_transition_time: The last_phase_transition_time of this V1PersistentVolumeStatus. # noqa: E501 + :type: datetime + """ + + self._last_phase_transition_time = last_phase_transition_time + + @property + def message(self): + """Gets the message of this V1PersistentVolumeStatus. # noqa: E501 + + message is a human-readable message indicating details about why the volume is in this state. # noqa: E501 + + :return: The message of this V1PersistentVolumeStatus. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1PersistentVolumeStatus. + + message is a human-readable message indicating details about why the volume is in this state. # noqa: E501 + + :param message: The message of this V1PersistentVolumeStatus. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def phase(self): + """Gets the phase of this V1PersistentVolumeStatus. # noqa: E501 + + phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase # noqa: E501 + + :return: The phase of this V1PersistentVolumeStatus. # noqa: E501 + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this V1PersistentVolumeStatus. + + phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase # noqa: E501 + + :param phase: The phase of this V1PersistentVolumeStatus. # noqa: E501 + :type: str + """ + + self._phase = phase + + @property + def reason(self): + """Gets the reason of this V1PersistentVolumeStatus. # noqa: E501 + + reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. # noqa: E501 + + :return: The reason of this V1PersistentVolumeStatus. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1PersistentVolumeStatus. + + reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. # noqa: E501 + + :param reason: The reason of this V1PersistentVolumeStatus. # noqa: E501 + :type: str + """ + + self._reason = reason + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PersistentVolumeStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PersistentVolumeStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..6c40e79c165a19a83791538c466dad0dba231b4c --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PhotonPersistentDiskVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'fs_type': 'str', + 'pd_id': 'str' + } + + attribute_map = { + 'fs_type': 'fsType', + 'pd_id': 'pdID' + } + + def __init__(self, fs_type=None, pd_id=None, local_vars_configuration=None): # noqa: E501 + """V1PhotonPersistentDiskVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._fs_type = None + self._pd_id = None + self.discriminator = None + + if fs_type is not None: + self.fs_type = fs_type + self.pd_id = pd_id + + @property + def fs_type(self): + """Gets the fs_type of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 + + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :return: The fs_type of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """Sets the fs_type of this V1PhotonPersistentDiskVolumeSource. + + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :param fs_type: The fs_type of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 + :type: str + """ + + self._fs_type = fs_type + + @property + def pd_id(self): + """Gets the pd_id of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 + + pdID is the ID that identifies Photon Controller persistent disk # noqa: E501 + + :return: The pd_id of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 + :rtype: str + """ + return self._pd_id + + @pd_id.setter + def pd_id(self, pd_id): + """Sets the pd_id of this V1PhotonPersistentDiskVolumeSource. + + pdID is the ID that identifies Photon Controller persistent disk # noqa: E501 + + :param pd_id: The pd_id of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and pd_id is None: # noqa: E501 + raise ValueError("Invalid value for `pd_id`, must not be `None`") # noqa: E501 + + self._pd_id = pd_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PhotonPersistentDiskVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PhotonPersistentDiskVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod.py new file mode 100644 index 0000000000000000000000000000000000000000..40ae585a098d680d616f81ced1fd3a9f4b65050f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Pod(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PodSpec', + 'status': 'V1PodStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1Pod - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1Pod. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Pod. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1Pod. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Pod. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1Pod. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1Pod. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1Pod. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1Pod. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1Pod. # noqa: E501 + + + :return: The metadata of this V1Pod. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1Pod. + + + :param metadata: The metadata of this V1Pod. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1Pod. # noqa: E501 + + + :return: The spec of this V1Pod. # noqa: E501 + :rtype: V1PodSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1Pod. + + + :param spec: The spec of this V1Pod. # noqa: E501 + :type: V1PodSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1Pod. # noqa: E501 + + + :return: The status of this V1Pod. # noqa: E501 + :rtype: V1PodStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1Pod. + + + :param status: The status of this V1Pod. # noqa: E501 + :type: V1PodStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Pod): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Pod): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_affinity.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_affinity.py new file mode 100644 index 0000000000000000000000000000000000000000..82b0307c56d2b3ae57b39f7df852e01b3db8d792 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_affinity.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodAffinity(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', + 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' + } + + attribute_map = { + 'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', + 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' + } + + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None, local_vars_configuration=None): # noqa: E501 + """V1PodAffinity - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._preferred_during_scheduling_ignored_during_execution = None + self._required_during_scheduling_ignored_during_execution = None + self.discriminator = None + + if preferred_during_scheduling_ignored_during_execution is not None: + self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + if required_during_scheduling_ignored_during_execution is not None: + self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + @property + def preferred_during_scheduling_ignored_during_execution(self): + """Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 + + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501 + + :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 + :rtype: list[V1WeightedPodAffinityTerm] + """ + return self._preferred_during_scheduling_ignored_during_execution + + @preferred_during_scheduling_ignored_during_execution.setter + def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): + """Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501 + + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 + :type: list[V1WeightedPodAffinityTerm] + """ + + self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + + @property + def required_during_scheduling_ignored_during_execution(self): + """Gets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 + + If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. # noqa: E501 + + :return: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 + :rtype: list[V1PodAffinityTerm] + """ + return self._required_during_scheduling_ignored_during_execution + + @required_during_scheduling_ignored_during_execution.setter + def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): + """Sets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. + + If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. # noqa: E501 + + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 + :type: list[V1PodAffinityTerm] + """ + + self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodAffinity): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodAffinity): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_affinity_term.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_affinity_term.py new file mode 100644 index 0000000000000000000000000000000000000000..a10da5ee13bcf1e371d94bdf150dd8b180cb5c7f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_affinity_term.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodAffinityTerm(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'label_selector': 'V1LabelSelector', + 'match_label_keys': 'list[str]', + 'mismatch_label_keys': 'list[str]', + 'namespace_selector': 'V1LabelSelector', + 'namespaces': 'list[str]', + 'topology_key': 'str' + } + + attribute_map = { + 'label_selector': 'labelSelector', + 'match_label_keys': 'matchLabelKeys', + 'mismatch_label_keys': 'mismatchLabelKeys', + 'namespace_selector': 'namespaceSelector', + 'namespaces': 'namespaces', + 'topology_key': 'topologyKey' + } + + def __init__(self, label_selector=None, match_label_keys=None, mismatch_label_keys=None, namespace_selector=None, namespaces=None, topology_key=None, local_vars_configuration=None): # noqa: E501 + """V1PodAffinityTerm - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._label_selector = None + self._match_label_keys = None + self._mismatch_label_keys = None + self._namespace_selector = None + self._namespaces = None + self._topology_key = None + self.discriminator = None + + if label_selector is not None: + self.label_selector = label_selector + if match_label_keys is not None: + self.match_label_keys = match_label_keys + if mismatch_label_keys is not None: + self.mismatch_label_keys = mismatch_label_keys + if namespace_selector is not None: + self.namespace_selector = namespace_selector + if namespaces is not None: + self.namespaces = namespaces + self.topology_key = topology_key + + @property + def label_selector(self): + """Gets the label_selector of this V1PodAffinityTerm. # noqa: E501 + + + :return: The label_selector of this V1PodAffinityTerm. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._label_selector + + @label_selector.setter + def label_selector(self, label_selector): + """Sets the label_selector of this V1PodAffinityTerm. + + + :param label_selector: The label_selector of this V1PodAffinityTerm. # noqa: E501 + :type: V1LabelSelector + """ + + self._label_selector = label_selector + + @property + def match_label_keys(self): + """Gets the match_label_keys of this V1PodAffinityTerm. # noqa: E501 + + MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. # noqa: E501 + + :return: The match_label_keys of this V1PodAffinityTerm. # noqa: E501 + :rtype: list[str] + """ + return self._match_label_keys + + @match_label_keys.setter + def match_label_keys(self, match_label_keys): + """Sets the match_label_keys of this V1PodAffinityTerm. + + MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. # noqa: E501 + + :param match_label_keys: The match_label_keys of this V1PodAffinityTerm. # noqa: E501 + :type: list[str] + """ + + self._match_label_keys = match_label_keys + + @property + def mismatch_label_keys(self): + """Gets the mismatch_label_keys of this V1PodAffinityTerm. # noqa: E501 + + MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. # noqa: E501 + + :return: The mismatch_label_keys of this V1PodAffinityTerm. # noqa: E501 + :rtype: list[str] + """ + return self._mismatch_label_keys + + @mismatch_label_keys.setter + def mismatch_label_keys(self, mismatch_label_keys): + """Sets the mismatch_label_keys of this V1PodAffinityTerm. + + MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. # noqa: E501 + + :param mismatch_label_keys: The mismatch_label_keys of this V1PodAffinityTerm. # noqa: E501 + :type: list[str] + """ + + self._mismatch_label_keys = mismatch_label_keys + + @property + def namespace_selector(self): + """Gets the namespace_selector of this V1PodAffinityTerm. # noqa: E501 + + + :return: The namespace_selector of this V1PodAffinityTerm. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._namespace_selector + + @namespace_selector.setter + def namespace_selector(self, namespace_selector): + """Sets the namespace_selector of this V1PodAffinityTerm. + + + :param namespace_selector: The namespace_selector of this V1PodAffinityTerm. # noqa: E501 + :type: V1LabelSelector + """ + + self._namespace_selector = namespace_selector + + @property + def namespaces(self): + """Gets the namespaces of this V1PodAffinityTerm. # noqa: E501 + + namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". # noqa: E501 + + :return: The namespaces of this V1PodAffinityTerm. # noqa: E501 + :rtype: list[str] + """ + return self._namespaces + + @namespaces.setter + def namespaces(self, namespaces): + """Sets the namespaces of this V1PodAffinityTerm. + + namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". # noqa: E501 + + :param namespaces: The namespaces of this V1PodAffinityTerm. # noqa: E501 + :type: list[str] + """ + + self._namespaces = namespaces + + @property + def topology_key(self): + """Gets the topology_key of this V1PodAffinityTerm. # noqa: E501 + + This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. # noqa: E501 + + :return: The topology_key of this V1PodAffinityTerm. # noqa: E501 + :rtype: str + """ + return self._topology_key + + @topology_key.setter + def topology_key(self, topology_key): + """Sets the topology_key of this V1PodAffinityTerm. + + This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. # noqa: E501 + + :param topology_key: The topology_key of this V1PodAffinityTerm. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and topology_key is None: # noqa: E501 + raise ValueError("Invalid value for `topology_key`, must not be `None`") # noqa: E501 + + self._topology_key = topology_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodAffinityTerm): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodAffinityTerm): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_anti_affinity.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_anti_affinity.py new file mode 100644 index 0000000000000000000000000000000000000000..8c26215a29a86632f41add69a1e7392a53a0a641 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_anti_affinity.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodAntiAffinity(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', + 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' + } + + attribute_map = { + 'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', + 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' + } + + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None, local_vars_configuration=None): # noqa: E501 + """V1PodAntiAffinity - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._preferred_during_scheduling_ignored_during_execution = None + self._required_during_scheduling_ignored_during_execution = None + self.discriminator = None + + if preferred_during_scheduling_ignored_during_execution is not None: + self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + if required_during_scheduling_ignored_during_execution is not None: + self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + @property + def preferred_during_scheduling_ignored_during_execution(self): + """Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 + + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501 + + :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 + :rtype: list[V1WeightedPodAffinityTerm] + """ + return self._preferred_during_scheduling_ignored_during_execution + + @preferred_during_scheduling_ignored_during_execution.setter + def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): + """Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501 + + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 + :type: list[V1WeightedPodAffinityTerm] + """ + + self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + + @property + def required_during_scheduling_ignored_during_execution(self): + """Gets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 + + If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. # noqa: E501 + + :return: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 + :rtype: list[V1PodAffinityTerm] + """ + return self._required_during_scheduling_ignored_during_execution + + @required_during_scheduling_ignored_during_execution.setter + def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): + """Sets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + + If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. # noqa: E501 + + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 + :type: list[V1PodAffinityTerm] + """ + + self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodAntiAffinity): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodAntiAffinity): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_certificate_projection.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_certificate_projection.py new file mode 100644 index 0000000000000000000000000000000000000000..3ecf8f3c70fad82ec46920e9f51553fd8196cd24 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_certificate_projection.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodCertificateProjection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'certificate_chain_path': 'str', + 'credential_bundle_path': 'str', + 'key_path': 'str', + 'key_type': 'str', + 'max_expiration_seconds': 'int', + 'signer_name': 'str', + 'user_annotations': 'dict(str, str)' + } + + attribute_map = { + 'certificate_chain_path': 'certificateChainPath', + 'credential_bundle_path': 'credentialBundlePath', + 'key_path': 'keyPath', + 'key_type': 'keyType', + 'max_expiration_seconds': 'maxExpirationSeconds', + 'signer_name': 'signerName', + 'user_annotations': 'userAnnotations' + } + + def __init__(self, certificate_chain_path=None, credential_bundle_path=None, key_path=None, key_type=None, max_expiration_seconds=None, signer_name=None, user_annotations=None, local_vars_configuration=None): # noqa: E501 + """V1PodCertificateProjection - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._certificate_chain_path = None + self._credential_bundle_path = None + self._key_path = None + self._key_type = None + self._max_expiration_seconds = None + self._signer_name = None + self._user_annotations = None + self.discriminator = None + + if certificate_chain_path is not None: + self.certificate_chain_path = certificate_chain_path + if credential_bundle_path is not None: + self.credential_bundle_path = credential_bundle_path + if key_path is not None: + self.key_path = key_path + self.key_type = key_type + if max_expiration_seconds is not None: + self.max_expiration_seconds = max_expiration_seconds + self.signer_name = signer_name + if user_annotations is not None: + self.user_annotations = user_annotations + + @property + def certificate_chain_path(self): + """Gets the certificate_chain_path of this V1PodCertificateProjection. # noqa: E501 + + Write the certificate chain at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. # noqa: E501 + + :return: The certificate_chain_path of this V1PodCertificateProjection. # noqa: E501 + :rtype: str + """ + return self._certificate_chain_path + + @certificate_chain_path.setter + def certificate_chain_path(self, certificate_chain_path): + """Sets the certificate_chain_path of this V1PodCertificateProjection. + + Write the certificate chain at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. # noqa: E501 + + :param certificate_chain_path: The certificate_chain_path of this V1PodCertificateProjection. # noqa: E501 + :type: str + """ + + self._certificate_chain_path = certificate_chain_path + + @property + def credential_bundle_path(self): + """Gets the credential_bundle_path of this V1PodCertificateProjection. # noqa: E501 + + Write the credential bundle at this path in the projected volume. The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key. The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates). Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key. # noqa: E501 + + :return: The credential_bundle_path of this V1PodCertificateProjection. # noqa: E501 + :rtype: str + """ + return self._credential_bundle_path + + @credential_bundle_path.setter + def credential_bundle_path(self, credential_bundle_path): + """Sets the credential_bundle_path of this V1PodCertificateProjection. + + Write the credential bundle at this path in the projected volume. The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key. The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates). Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key. # noqa: E501 + + :param credential_bundle_path: The credential_bundle_path of this V1PodCertificateProjection. # noqa: E501 + :type: str + """ + + self._credential_bundle_path = credential_bundle_path + + @property + def key_path(self): + """Gets the key_path of this V1PodCertificateProjection. # noqa: E501 + + Write the key at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. # noqa: E501 + + :return: The key_path of this V1PodCertificateProjection. # noqa: E501 + :rtype: str + """ + return self._key_path + + @key_path.setter + def key_path(self, key_path): + """Sets the key_path of this V1PodCertificateProjection. + + Write the key at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. # noqa: E501 + + :param key_path: The key_path of this V1PodCertificateProjection. # noqa: E501 + :type: str + """ + + self._key_path = key_path + + @property + def key_type(self): + """Gets the key_type of this V1PodCertificateProjection. # noqa: E501 + + The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\". # noqa: E501 + + :return: The key_type of this V1PodCertificateProjection. # noqa: E501 + :rtype: str + """ + return self._key_type + + @key_type.setter + def key_type(self, key_type): + """Sets the key_type of this V1PodCertificateProjection. + + The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\". # noqa: E501 + + :param key_type: The key_type of this V1PodCertificateProjection. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and key_type is None: # noqa: E501 + raise ValueError("Invalid value for `key_type`, must not be `None`") # noqa: E501 + + self._key_type = key_type + + @property + def max_expiration_seconds(self): + """Gets the max_expiration_seconds of this V1PodCertificateProjection. # noqa: E501 + + maxExpirationSeconds is the maximum lifetime permitted for the certificate. Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. # noqa: E501 + + :return: The max_expiration_seconds of this V1PodCertificateProjection. # noqa: E501 + :rtype: int + """ + return self._max_expiration_seconds + + @max_expiration_seconds.setter + def max_expiration_seconds(self, max_expiration_seconds): + """Sets the max_expiration_seconds of this V1PodCertificateProjection. + + maxExpirationSeconds is the maximum lifetime permitted for the certificate. Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. # noqa: E501 + + :param max_expiration_seconds: The max_expiration_seconds of this V1PodCertificateProjection. # noqa: E501 + :type: int + """ + + self._max_expiration_seconds = max_expiration_seconds + + @property + def signer_name(self): + """Gets the signer_name of this V1PodCertificateProjection. # noqa: E501 + + Kubelet's generated CSRs will be addressed to this signer. # noqa: E501 + + :return: The signer_name of this V1PodCertificateProjection. # noqa: E501 + :rtype: str + """ + return self._signer_name + + @signer_name.setter + def signer_name(self, signer_name): + """Sets the signer_name of this V1PodCertificateProjection. + + Kubelet's generated CSRs will be addressed to this signer. # noqa: E501 + + :param signer_name: The signer_name of this V1PodCertificateProjection. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and signer_name is None: # noqa: E501 + raise ValueError("Invalid value for `signer_name`, must not be `None`") # noqa: E501 + + self._signer_name = signer_name + + @property + def user_annotations(self): + """Gets the user_annotations of this V1PodCertificateProjection. # noqa: E501 + + userAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates. Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. # noqa: E501 + + :return: The user_annotations of this V1PodCertificateProjection. # noqa: E501 + :rtype: dict(str, str) + """ + return self._user_annotations + + @user_annotations.setter + def user_annotations(self, user_annotations): + """Sets the user_annotations of this V1PodCertificateProjection. + + userAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates. Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. # noqa: E501 + + :param user_annotations: The user_annotations of this V1PodCertificateProjection. # noqa: E501 + :type: dict(str, str) + """ + + self._user_annotations = user_annotations + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodCertificateProjection): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodCertificateProjection): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_condition.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_condition.py new file mode 100644 index 0000000000000000000000000000000000000000..909aa2dacd0b8911b0b699fb95dc86beacc30f5f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_condition.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodCondition(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'last_probe_time': 'datetime', + 'last_transition_time': 'datetime', + 'message': 'str', + 'observed_generation': 'int', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'last_probe_time': 'lastProbeTime', + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'observed_generation': 'observedGeneration', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, observed_generation=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1PodCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._last_probe_time = None + self._last_transition_time = None + self._message = None + self._observed_generation = None + self._reason = None + self._status = None + self._type = None + self.discriminator = None + + if last_probe_time is not None: + self.last_probe_time = last_probe_time + if last_transition_time is not None: + self.last_transition_time = last_transition_time + if message is not None: + self.message = message + if observed_generation is not None: + self.observed_generation = observed_generation + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def last_probe_time(self): + """Gets the last_probe_time of this V1PodCondition. # noqa: E501 + + Last time we probed the condition. # noqa: E501 + + :return: The last_probe_time of this V1PodCondition. # noqa: E501 + :rtype: datetime + """ + return self._last_probe_time + + @last_probe_time.setter + def last_probe_time(self, last_probe_time): + """Sets the last_probe_time of this V1PodCondition. + + Last time we probed the condition. # noqa: E501 + + :param last_probe_time: The last_probe_time of this V1PodCondition. # noqa: E501 + :type: datetime + """ + + self._last_probe_time = last_probe_time + + @property + def last_transition_time(self): + """Gets the last_transition_time of this V1PodCondition. # noqa: E501 + + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1PodCondition. # noqa: E501 + :rtype: datetime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """Sets the last_transition_time of this V1PodCondition. + + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1PodCondition. # noqa: E501 + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """Gets the message of this V1PodCondition. # noqa: E501 + + Human-readable message indicating details about last transition. # noqa: E501 + + :return: The message of this V1PodCondition. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1PodCondition. + + Human-readable message indicating details about last transition. # noqa: E501 + + :param message: The message of this V1PodCondition. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def observed_generation(self): + """Gets the observed_generation of this V1PodCondition. # noqa: E501 + + If set, this represents the .metadata.generation that the pod condition was set based upon. The PodObservedGenerationTracking feature gate must be enabled to use this field. # noqa: E501 + + :return: The observed_generation of this V1PodCondition. # noqa: E501 + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """Sets the observed_generation of this V1PodCondition. + + If set, this represents the .metadata.generation that the pod condition was set based upon. The PodObservedGenerationTracking feature gate must be enabled to use this field. # noqa: E501 + + :param observed_generation: The observed_generation of this V1PodCondition. # noqa: E501 + :type: int + """ + + self._observed_generation = observed_generation + + @property + def reason(self): + """Gets the reason of this V1PodCondition. # noqa: E501 + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 + + :return: The reason of this V1PodCondition. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1PodCondition. + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 + + :param reason: The reason of this V1PodCondition. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def status(self): + """Gets the status of this V1PodCondition. # noqa: E501 + + Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 + + :return: The status of this V1PodCondition. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1PodCondition. + + Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 + + :param status: The status of this V1PodCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def type(self): + """Gets the type of this V1PodCondition. # noqa: E501 + + Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 + + :return: The type of this V1PodCondition. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1PodCondition. + + Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 + + :param type: The type of this V1PodCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget.py new file mode 100644 index 0000000000000000000000000000000000000000..0ba79f86277a8501fb597a1ed803471999c22d89 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodDisruptionBudget(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PodDisruptionBudgetSpec', + 'status': 'V1PodDisruptionBudgetStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1PodDisruptionBudget - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1PodDisruptionBudget. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PodDisruptionBudget. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PodDisruptionBudget. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PodDisruptionBudget. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1PodDisruptionBudget. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PodDisruptionBudget. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PodDisruptionBudget. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PodDisruptionBudget. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PodDisruptionBudget. # noqa: E501 + + + :return: The metadata of this V1PodDisruptionBudget. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PodDisruptionBudget. + + + :param metadata: The metadata of this V1PodDisruptionBudget. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1PodDisruptionBudget. # noqa: E501 + + + :return: The spec of this V1PodDisruptionBudget. # noqa: E501 + :rtype: V1PodDisruptionBudgetSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1PodDisruptionBudget. + + + :param spec: The spec of this V1PodDisruptionBudget. # noqa: E501 + :type: V1PodDisruptionBudgetSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1PodDisruptionBudget. # noqa: E501 + + + :return: The status of this V1PodDisruptionBudget. # noqa: E501 + :rtype: V1PodDisruptionBudgetStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1PodDisruptionBudget. + + + :param status: The status of this V1PodDisruptionBudget. # noqa: E501 + :type: V1PodDisruptionBudgetStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodDisruptionBudget): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodDisruptionBudget): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget_list.py new file mode 100644 index 0000000000000000000000000000000000000000..a018c79130640988a061dbd2e378c1cc2da0567f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodDisruptionBudgetList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1PodDisruptionBudget]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1PodDisruptionBudgetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1PodDisruptionBudgetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PodDisruptionBudgetList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PodDisruptionBudgetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PodDisruptionBudgetList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1PodDisruptionBudgetList. # noqa: E501 + + Items is a list of PodDisruptionBudgets # noqa: E501 + + :return: The items of this V1PodDisruptionBudgetList. # noqa: E501 + :rtype: list[V1PodDisruptionBudget] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1PodDisruptionBudgetList. + + Items is a list of PodDisruptionBudgets # noqa: E501 + + :param items: The items of this V1PodDisruptionBudgetList. # noqa: E501 + :type: list[V1PodDisruptionBudget] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1PodDisruptionBudgetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PodDisruptionBudgetList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PodDisruptionBudgetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PodDisruptionBudgetList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PodDisruptionBudgetList. # noqa: E501 + + + :return: The metadata of this V1PodDisruptionBudgetList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PodDisruptionBudgetList. + + + :param metadata: The metadata of this V1PodDisruptionBudgetList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodDisruptionBudgetList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodDisruptionBudgetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..e7291b98c9ccf6d1f2f2dd59438dd78c2f1fd195 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget_spec.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodDisruptionBudgetSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'max_unavailable': 'object', + 'min_available': 'object', + 'selector': 'V1LabelSelector', + 'unhealthy_pod_eviction_policy': 'str' + } + + attribute_map = { + 'max_unavailable': 'maxUnavailable', + 'min_available': 'minAvailable', + 'selector': 'selector', + 'unhealthy_pod_eviction_policy': 'unhealthyPodEvictionPolicy' + } + + def __init__(self, max_unavailable=None, min_available=None, selector=None, unhealthy_pod_eviction_policy=None, local_vars_configuration=None): # noqa: E501 + """V1PodDisruptionBudgetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._max_unavailable = None + self._min_available = None + self._selector = None + self._unhealthy_pod_eviction_policy = None + self.discriminator = None + + if max_unavailable is not None: + self.max_unavailable = max_unavailable + if min_available is not None: + self.min_available = min_available + if selector is not None: + self.selector = selector + if unhealthy_pod_eviction_policy is not None: + self.unhealthy_pod_eviction_policy = unhealthy_pod_eviction_policy + + @property + def max_unavailable(self): + """Gets the max_unavailable of this V1PodDisruptionBudgetSpec. # noqa: E501 + + An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". # noqa: E501 + + :return: The max_unavailable of this V1PodDisruptionBudgetSpec. # noqa: E501 + :rtype: object + """ + return self._max_unavailable + + @max_unavailable.setter + def max_unavailable(self, max_unavailable): + """Sets the max_unavailable of this V1PodDisruptionBudgetSpec. + + An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". # noqa: E501 + + :param max_unavailable: The max_unavailable of this V1PodDisruptionBudgetSpec. # noqa: E501 + :type: object + """ + + self._max_unavailable = max_unavailable + + @property + def min_available(self): + """Gets the min_available of this V1PodDisruptionBudgetSpec. # noqa: E501 + + An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". # noqa: E501 + + :return: The min_available of this V1PodDisruptionBudgetSpec. # noqa: E501 + :rtype: object + """ + return self._min_available + + @min_available.setter + def min_available(self, min_available): + """Sets the min_available of this V1PodDisruptionBudgetSpec. + + An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". # noqa: E501 + + :param min_available: The min_available of this V1PodDisruptionBudgetSpec. # noqa: E501 + :type: object + """ + + self._min_available = min_available + + @property + def selector(self): + """Gets the selector of this V1PodDisruptionBudgetSpec. # noqa: E501 + + + :return: The selector of this V1PodDisruptionBudgetSpec. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """Sets the selector of this V1PodDisruptionBudgetSpec. + + + :param selector: The selector of this V1PodDisruptionBudgetSpec. # noqa: E501 + :type: V1LabelSelector + """ + + self._selector = selector + + @property + def unhealthy_pod_eviction_policy(self): + """Gets the unhealthy_pod_eviction_policy of this V1PodDisruptionBudgetSpec. # noqa: E501 + + UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. # noqa: E501 + + :return: The unhealthy_pod_eviction_policy of this V1PodDisruptionBudgetSpec. # noqa: E501 + :rtype: str + """ + return self._unhealthy_pod_eviction_policy + + @unhealthy_pod_eviction_policy.setter + def unhealthy_pod_eviction_policy(self, unhealthy_pod_eviction_policy): + """Sets the unhealthy_pod_eviction_policy of this V1PodDisruptionBudgetSpec. + + UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. # noqa: E501 + + :param unhealthy_pod_eviction_policy: The unhealthy_pod_eviction_policy of this V1PodDisruptionBudgetSpec. # noqa: E501 + :type: str + """ + + self._unhealthy_pod_eviction_policy = unhealthy_pod_eviction_policy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodDisruptionBudgetSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodDisruptionBudgetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget_status.py new file mode 100644 index 0000000000000000000000000000000000000000..8d7f60a62ba4b6ab7b475e694dc36cc6c8ad38db --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_disruption_budget_status.py @@ -0,0 +1,294 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodDisruptionBudgetStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'conditions': 'list[V1Condition]', + 'current_healthy': 'int', + 'desired_healthy': 'int', + 'disrupted_pods': 'dict(str, datetime)', + 'disruptions_allowed': 'int', + 'expected_pods': 'int', + 'observed_generation': 'int' + } + + attribute_map = { + 'conditions': 'conditions', + 'current_healthy': 'currentHealthy', + 'desired_healthy': 'desiredHealthy', + 'disrupted_pods': 'disruptedPods', + 'disruptions_allowed': 'disruptionsAllowed', + 'expected_pods': 'expectedPods', + 'observed_generation': 'observedGeneration' + } + + def __init__(self, conditions=None, current_healthy=None, desired_healthy=None, disrupted_pods=None, disruptions_allowed=None, expected_pods=None, observed_generation=None, local_vars_configuration=None): # noqa: E501 + """V1PodDisruptionBudgetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._conditions = None + self._current_healthy = None + self._desired_healthy = None + self._disrupted_pods = None + self._disruptions_allowed = None + self._expected_pods = None + self._observed_generation = None + self.discriminator = None + + if conditions is not None: + self.conditions = conditions + self.current_healthy = current_healthy + self.desired_healthy = desired_healthy + if disrupted_pods is not None: + self.disrupted_pods = disrupted_pods + self.disruptions_allowed = disruptions_allowed + self.expected_pods = expected_pods + if observed_generation is not None: + self.observed_generation = observed_generation + + @property + def conditions(self): + """Gets the conditions of this V1PodDisruptionBudgetStatus. # noqa: E501 + + Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property. # noqa: E501 + + :return: The conditions of this V1PodDisruptionBudgetStatus. # noqa: E501 + :rtype: list[V1Condition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this V1PodDisruptionBudgetStatus. + + Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property. # noqa: E501 + + :param conditions: The conditions of this V1PodDisruptionBudgetStatus. # noqa: E501 + :type: list[V1Condition] + """ + + self._conditions = conditions + + @property + def current_healthy(self): + """Gets the current_healthy of this V1PodDisruptionBudgetStatus. # noqa: E501 + + current number of healthy pods # noqa: E501 + + :return: The current_healthy of this V1PodDisruptionBudgetStatus. # noqa: E501 + :rtype: int + """ + return self._current_healthy + + @current_healthy.setter + def current_healthy(self, current_healthy): + """Sets the current_healthy of this V1PodDisruptionBudgetStatus. + + current number of healthy pods # noqa: E501 + + :param current_healthy: The current_healthy of this V1PodDisruptionBudgetStatus. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and current_healthy is None: # noqa: E501 + raise ValueError("Invalid value for `current_healthy`, must not be `None`") # noqa: E501 + + self._current_healthy = current_healthy + + @property + def desired_healthy(self): + """Gets the desired_healthy of this V1PodDisruptionBudgetStatus. # noqa: E501 + + minimum desired number of healthy pods # noqa: E501 + + :return: The desired_healthy of this V1PodDisruptionBudgetStatus. # noqa: E501 + :rtype: int + """ + return self._desired_healthy + + @desired_healthy.setter + def desired_healthy(self, desired_healthy): + """Sets the desired_healthy of this V1PodDisruptionBudgetStatus. + + minimum desired number of healthy pods # noqa: E501 + + :param desired_healthy: The desired_healthy of this V1PodDisruptionBudgetStatus. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and desired_healthy is None: # noqa: E501 + raise ValueError("Invalid value for `desired_healthy`, must not be `None`") # noqa: E501 + + self._desired_healthy = desired_healthy + + @property + def disrupted_pods(self): + """Gets the disrupted_pods of this V1PodDisruptionBudgetStatus. # noqa: E501 + + DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. # noqa: E501 + + :return: The disrupted_pods of this V1PodDisruptionBudgetStatus. # noqa: E501 + :rtype: dict(str, datetime) + """ + return self._disrupted_pods + + @disrupted_pods.setter + def disrupted_pods(self, disrupted_pods): + """Sets the disrupted_pods of this V1PodDisruptionBudgetStatus. + + DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. # noqa: E501 + + :param disrupted_pods: The disrupted_pods of this V1PodDisruptionBudgetStatus. # noqa: E501 + :type: dict(str, datetime) + """ + + self._disrupted_pods = disrupted_pods + + @property + def disruptions_allowed(self): + """Gets the disruptions_allowed of this V1PodDisruptionBudgetStatus. # noqa: E501 + + Number of pod disruptions that are currently allowed. # noqa: E501 + + :return: The disruptions_allowed of this V1PodDisruptionBudgetStatus. # noqa: E501 + :rtype: int + """ + return self._disruptions_allowed + + @disruptions_allowed.setter + def disruptions_allowed(self, disruptions_allowed): + """Sets the disruptions_allowed of this V1PodDisruptionBudgetStatus. + + Number of pod disruptions that are currently allowed. # noqa: E501 + + :param disruptions_allowed: The disruptions_allowed of this V1PodDisruptionBudgetStatus. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and disruptions_allowed is None: # noqa: E501 + raise ValueError("Invalid value for `disruptions_allowed`, must not be `None`") # noqa: E501 + + self._disruptions_allowed = disruptions_allowed + + @property + def expected_pods(self): + """Gets the expected_pods of this V1PodDisruptionBudgetStatus. # noqa: E501 + + total number of pods counted by this disruption budget # noqa: E501 + + :return: The expected_pods of this V1PodDisruptionBudgetStatus. # noqa: E501 + :rtype: int + """ + return self._expected_pods + + @expected_pods.setter + def expected_pods(self, expected_pods): + """Sets the expected_pods of this V1PodDisruptionBudgetStatus. + + total number of pods counted by this disruption budget # noqa: E501 + + :param expected_pods: The expected_pods of this V1PodDisruptionBudgetStatus. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and expected_pods is None: # noqa: E501 + raise ValueError("Invalid value for `expected_pods`, must not be `None`") # noqa: E501 + + self._expected_pods = expected_pods + + @property + def observed_generation(self): + """Gets the observed_generation of this V1PodDisruptionBudgetStatus. # noqa: E501 + + Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. # noqa: E501 + + :return: The observed_generation of this V1PodDisruptionBudgetStatus. # noqa: E501 + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """Sets the observed_generation of this V1PodDisruptionBudgetStatus. + + Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. # noqa: E501 + + :param observed_generation: The observed_generation of this V1PodDisruptionBudgetStatus. # noqa: E501 + :type: int + """ + + self._observed_generation = observed_generation + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodDisruptionBudgetStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodDisruptionBudgetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_dns_config.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_dns_config.py new file mode 100644 index 0000000000000000000000000000000000000000..d148a3d52cf2c26f70c8fcc055b2af823955c476 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_dns_config.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodDNSConfig(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'nameservers': 'list[str]', + 'options': 'list[V1PodDNSConfigOption]', + 'searches': 'list[str]' + } + + attribute_map = { + 'nameservers': 'nameservers', + 'options': 'options', + 'searches': 'searches' + } + + def __init__(self, nameservers=None, options=None, searches=None, local_vars_configuration=None): # noqa: E501 + """V1PodDNSConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._nameservers = None + self._options = None + self._searches = None + self.discriminator = None + + if nameservers is not None: + self.nameservers = nameservers + if options is not None: + self.options = options + if searches is not None: + self.searches = searches + + @property + def nameservers(self): + """Gets the nameservers of this V1PodDNSConfig. # noqa: E501 + + A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. # noqa: E501 + + :return: The nameservers of this V1PodDNSConfig. # noqa: E501 + :rtype: list[str] + """ + return self._nameservers + + @nameservers.setter + def nameservers(self, nameservers): + """Sets the nameservers of this V1PodDNSConfig. + + A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. # noqa: E501 + + :param nameservers: The nameservers of this V1PodDNSConfig. # noqa: E501 + :type: list[str] + """ + + self._nameservers = nameservers + + @property + def options(self): + """Gets the options of this V1PodDNSConfig. # noqa: E501 + + A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. # noqa: E501 + + :return: The options of this V1PodDNSConfig. # noqa: E501 + :rtype: list[V1PodDNSConfigOption] + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this V1PodDNSConfig. + + A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. # noqa: E501 + + :param options: The options of this V1PodDNSConfig. # noqa: E501 + :type: list[V1PodDNSConfigOption] + """ + + self._options = options + + @property + def searches(self): + """Gets the searches of this V1PodDNSConfig. # noqa: E501 + + A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. # noqa: E501 + + :return: The searches of this V1PodDNSConfig. # noqa: E501 + :rtype: list[str] + """ + return self._searches + + @searches.setter + def searches(self, searches): + """Sets the searches of this V1PodDNSConfig. + + A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. # noqa: E501 + + :param searches: The searches of this V1PodDNSConfig. # noqa: E501 + :type: list[str] + """ + + self._searches = searches + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodDNSConfig): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodDNSConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_dns_config_option.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_dns_config_option.py new file mode 100644 index 0000000000000000000000000000000000000000..69c7cfde4e8e3efb94a64e65ee14cb451602a973 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_dns_config_option.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodDNSConfigOption(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'value': 'value' + } + + def __init__(self, name=None, value=None, local_vars_configuration=None): # noqa: E501 + """V1PodDNSConfigOption - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self._value = None + self.discriminator = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + + @property + def name(self): + """Gets the name of this V1PodDNSConfigOption. # noqa: E501 + + Name is this DNS resolver option's name. Required. # noqa: E501 + + :return: The name of this V1PodDNSConfigOption. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1PodDNSConfigOption. + + Name is this DNS resolver option's name. Required. # noqa: E501 + + :param name: The name of this V1PodDNSConfigOption. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def value(self): + """Gets the value of this V1PodDNSConfigOption. # noqa: E501 + + Value is this DNS resolver option's value. # noqa: E501 + + :return: The value of this V1PodDNSConfigOption. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this V1PodDNSConfigOption. + + Value is this DNS resolver option's value. # noqa: E501 + + :param value: The value of this V1PodDNSConfigOption. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodDNSConfigOption): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodDNSConfigOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_extended_resource_claim_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_extended_resource_claim_status.py new file mode 100644 index 0000000000000000000000000000000000000000..f7399d09196a29aeae5e7f4588ca6638a2a4120f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_extended_resource_claim_status.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodExtendedResourceClaimStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'request_mappings': 'list[V1ContainerExtendedResourceRequest]', + 'resource_claim_name': 'str' + } + + attribute_map = { + 'request_mappings': 'requestMappings', + 'resource_claim_name': 'resourceClaimName' + } + + def __init__(self, request_mappings=None, resource_claim_name=None, local_vars_configuration=None): # noqa: E501 + """V1PodExtendedResourceClaimStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._request_mappings = None + self._resource_claim_name = None + self.discriminator = None + + self.request_mappings = request_mappings + self.resource_claim_name = resource_claim_name + + @property + def request_mappings(self): + """Gets the request_mappings of this V1PodExtendedResourceClaimStatus. # noqa: E501 + + RequestMappings identifies the mapping of to device request in the generated ResourceClaim. # noqa: E501 + + :return: The request_mappings of this V1PodExtendedResourceClaimStatus. # noqa: E501 + :rtype: list[V1ContainerExtendedResourceRequest] + """ + return self._request_mappings + + @request_mappings.setter + def request_mappings(self, request_mappings): + """Sets the request_mappings of this V1PodExtendedResourceClaimStatus. + + RequestMappings identifies the mapping of to device request in the generated ResourceClaim. # noqa: E501 + + :param request_mappings: The request_mappings of this V1PodExtendedResourceClaimStatus. # noqa: E501 + :type: list[V1ContainerExtendedResourceRequest] + """ + if self.local_vars_configuration.client_side_validation and request_mappings is None: # noqa: E501 + raise ValueError("Invalid value for `request_mappings`, must not be `None`") # noqa: E501 + + self._request_mappings = request_mappings + + @property + def resource_claim_name(self): + """Gets the resource_claim_name of this V1PodExtendedResourceClaimStatus. # noqa: E501 + + ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. # noqa: E501 + + :return: The resource_claim_name of this V1PodExtendedResourceClaimStatus. # noqa: E501 + :rtype: str + """ + return self._resource_claim_name + + @resource_claim_name.setter + def resource_claim_name(self, resource_claim_name): + """Sets the resource_claim_name of this V1PodExtendedResourceClaimStatus. + + ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. # noqa: E501 + + :param resource_claim_name: The resource_claim_name of this V1PodExtendedResourceClaimStatus. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and resource_claim_name is None: # noqa: E501 + raise ValueError("Invalid value for `resource_claim_name`, must not be `None`") # noqa: E501 + + self._resource_claim_name = resource_claim_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodExtendedResourceClaimStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodExtendedResourceClaimStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy.py new file mode 100644 index 0000000000000000000000000000000000000000..4205e73a1f4e37f2818c16cc5505ad526b777f94 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodFailurePolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'rules': 'list[V1PodFailurePolicyRule]' + } + + attribute_map = { + 'rules': 'rules' + } + + def __init__(self, rules=None, local_vars_configuration=None): # noqa: E501 + """V1PodFailurePolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._rules = None + self.discriminator = None + + self.rules = rules + + @property + def rules(self): + """Gets the rules of this V1PodFailurePolicy. # noqa: E501 + + A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. # noqa: E501 + + :return: The rules of this V1PodFailurePolicy. # noqa: E501 + :rtype: list[V1PodFailurePolicyRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """Sets the rules of this V1PodFailurePolicy. + + A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. # noqa: E501 + + :param rules: The rules of this V1PodFailurePolicy. # noqa: E501 + :type: list[V1PodFailurePolicyRule] + """ + if self.local_vars_configuration.client_side_validation and rules is None: # noqa: E501 + raise ValueError("Invalid value for `rules`, must not be `None`") # noqa: E501 + + self._rules = rules + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodFailurePolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodFailurePolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py new file mode 100644 index 0000000000000000000000000000000000000000..ddc74f8ac4236367858a6d353066253ccd4764d8 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodFailurePolicyOnExitCodesRequirement(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'container_name': 'str', + 'operator': 'str', + 'values': 'list[int]' + } + + attribute_map = { + 'container_name': 'containerName', + 'operator': 'operator', + 'values': 'values' + } + + def __init__(self, container_name=None, operator=None, values=None, local_vars_configuration=None): # noqa: E501 + """V1PodFailurePolicyOnExitCodesRequirement - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._container_name = None + self._operator = None + self._values = None + self.discriminator = None + + if container_name is not None: + self.container_name = container_name + self.operator = operator + self.values = values + + @property + def container_name(self): + """Gets the container_name of this V1PodFailurePolicyOnExitCodesRequirement. # noqa: E501 + + Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. # noqa: E501 + + :return: The container_name of this V1PodFailurePolicyOnExitCodesRequirement. # noqa: E501 + :rtype: str + """ + return self._container_name + + @container_name.setter + def container_name(self, container_name): + """Sets the container_name of this V1PodFailurePolicyOnExitCodesRequirement. + + Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. # noqa: E501 + + :param container_name: The container_name of this V1PodFailurePolicyOnExitCodesRequirement. # noqa: E501 + :type: str + """ + + self._container_name = container_name + + @property + def operator(self): + """Gets the operator of this V1PodFailurePolicyOnExitCodesRequirement. # noqa: E501 + + Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is in the set of specified values. - NotIn: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is not in the set of specified values. Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. # noqa: E501 + + :return: The operator of this V1PodFailurePolicyOnExitCodesRequirement. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this V1PodFailurePolicyOnExitCodesRequirement. + + Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is in the set of specified values. - NotIn: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is not in the set of specified values. Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. # noqa: E501 + + :param operator: The operator of this V1PodFailurePolicyOnExitCodesRequirement. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + + @property + def values(self): + """Gets the values of this V1PodFailurePolicyOnExitCodesRequirement. # noqa: E501 + + Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. # noqa: E501 + + :return: The values of this V1PodFailurePolicyOnExitCodesRequirement. # noqa: E501 + :rtype: list[int] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this V1PodFailurePolicyOnExitCodesRequirement. + + Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. # noqa: E501 + + :param values: The values of this V1PodFailurePolicyOnExitCodesRequirement. # noqa: E501 + :type: list[int] + """ + if self.local_vars_configuration.client_side_validation and values is None: # noqa: E501 + raise ValueError("Invalid value for `values`, must not be `None`") # noqa: E501 + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodFailurePolicyOnExitCodesRequirement): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodFailurePolicyOnExitCodesRequirement): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py new file mode 100644 index 0000000000000000000000000000000000000000..76fcb95bfbf0044b217abb8351f39dbd28053b0f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodFailurePolicyOnPodConditionsPattern(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'status': 'status', + 'type': 'type' + } + + def __init__(self, status=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1PodFailurePolicyOnPodConditionsPattern - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._status = None + self._type = None + self.discriminator = None + + if status is not None: + self.status = status + self.type = type + + @property + def status(self): + """Gets the status of this V1PodFailurePolicyOnPodConditionsPattern. # noqa: E501 + + Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. # noqa: E501 + + :return: The status of this V1PodFailurePolicyOnPodConditionsPattern. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1PodFailurePolicyOnPodConditionsPattern. + + Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. # noqa: E501 + + :param status: The status of this V1PodFailurePolicyOnPodConditionsPattern. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def type(self): + """Gets the type of this V1PodFailurePolicyOnPodConditionsPattern. # noqa: E501 + + Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. # noqa: E501 + + :return: The type of this V1PodFailurePolicyOnPodConditionsPattern. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1PodFailurePolicyOnPodConditionsPattern. + + Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. # noqa: E501 + + :param type: The type of this V1PodFailurePolicyOnPodConditionsPattern. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodFailurePolicyOnPodConditionsPattern): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodFailurePolicyOnPodConditionsPattern): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy_rule.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..9d4d9fb1577b9a823c248f2a859211f5ffc93e8d --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_failure_policy_rule.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodFailurePolicyRule(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'action': 'str', + 'on_exit_codes': 'V1PodFailurePolicyOnExitCodesRequirement', + 'on_pod_conditions': 'list[V1PodFailurePolicyOnPodConditionsPattern]' + } + + attribute_map = { + 'action': 'action', + 'on_exit_codes': 'onExitCodes', + 'on_pod_conditions': 'onPodConditions' + } + + def __init__(self, action=None, on_exit_codes=None, on_pod_conditions=None, local_vars_configuration=None): # noqa: E501 + """V1PodFailurePolicyRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._action = None + self._on_exit_codes = None + self._on_pod_conditions = None + self.discriminator = None + + self.action = action + if on_exit_codes is not None: + self.on_exit_codes = on_exit_codes + if on_pod_conditions is not None: + self.on_pod_conditions = on_pod_conditions + + @property + def action(self): + """Gets the action of this V1PodFailurePolicyRule. # noqa: E501 + + Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. # noqa: E501 + + :return: The action of this V1PodFailurePolicyRule. # noqa: E501 + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this V1PodFailurePolicyRule. + + Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. # noqa: E501 + + :param action: The action of this V1PodFailurePolicyRule. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and action is None: # noqa: E501 + raise ValueError("Invalid value for `action`, must not be `None`") # noqa: E501 + + self._action = action + + @property + def on_exit_codes(self): + """Gets the on_exit_codes of this V1PodFailurePolicyRule. # noqa: E501 + + + :return: The on_exit_codes of this V1PodFailurePolicyRule. # noqa: E501 + :rtype: V1PodFailurePolicyOnExitCodesRequirement + """ + return self._on_exit_codes + + @on_exit_codes.setter + def on_exit_codes(self, on_exit_codes): + """Sets the on_exit_codes of this V1PodFailurePolicyRule. + + + :param on_exit_codes: The on_exit_codes of this V1PodFailurePolicyRule. # noqa: E501 + :type: V1PodFailurePolicyOnExitCodesRequirement + """ + + self._on_exit_codes = on_exit_codes + + @property + def on_pod_conditions(self): + """Gets the on_pod_conditions of this V1PodFailurePolicyRule. # noqa: E501 + + Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. # noqa: E501 + + :return: The on_pod_conditions of this V1PodFailurePolicyRule. # noqa: E501 + :rtype: list[V1PodFailurePolicyOnPodConditionsPattern] + """ + return self._on_pod_conditions + + @on_pod_conditions.setter + def on_pod_conditions(self, on_pod_conditions): + """Sets the on_pod_conditions of this V1PodFailurePolicyRule. + + Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. # noqa: E501 + + :param on_pod_conditions: The on_pod_conditions of this V1PodFailurePolicyRule. # noqa: E501 + :type: list[V1PodFailurePolicyOnPodConditionsPattern] + """ + + self._on_pod_conditions = on_pod_conditions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodFailurePolicyRule): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodFailurePolicyRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_ip.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_ip.py new file mode 100644 index 0000000000000000000000000000000000000000..3dc7052f442d65bd1870c868927419db273f0710 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_ip.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodIP(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'ip': 'str' + } + + attribute_map = { + 'ip': 'ip' + } + + def __init__(self, ip=None, local_vars_configuration=None): # noqa: E501 + """V1PodIP - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._ip = None + self.discriminator = None + + self.ip = ip + + @property + def ip(self): + """Gets the ip of this V1PodIP. # noqa: E501 + + IP is the IP address assigned to the pod # noqa: E501 + + :return: The ip of this V1PodIP. # noqa: E501 + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this V1PodIP. + + IP is the IP address assigned to the pod # noqa: E501 + + :param ip: The ip of this V1PodIP. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and ip is None: # noqa: E501 + raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 + + self._ip = ip + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodIP): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodIP): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_list.py new file mode 100644 index 0000000000000000000000000000000000000000..05f650329548644a16692e0e3a4f7a653cd64f4a --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1Pod]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1PodList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1PodList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PodList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PodList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PodList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1PodList. # noqa: E501 + + List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md # noqa: E501 + + :return: The items of this V1PodList. # noqa: E501 + :rtype: list[V1Pod] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1PodList. + + List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md # noqa: E501 + + :param items: The items of this V1PodList. # noqa: E501 + :type: list[V1Pod] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1PodList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PodList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PodList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PodList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PodList. # noqa: E501 + + + :return: The metadata of this V1PodList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PodList. + + + :param metadata: The metadata of this V1PodList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_os.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_os.py new file mode 100644 index 0000000000000000000000000000000000000000..16a0dd47d1c9dc6d1fbfec51ed15eae9d62ade19 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_os.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodOS(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None, local_vars_configuration=None): # noqa: E501 + """V1PodOS - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self.discriminator = None + + self.name = name + + @property + def name(self): + """Gets the name of this V1PodOS. # noqa: E501 + + Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null # noqa: E501 + + :return: The name of this V1PodOS. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1PodOS. + + Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null # noqa: E501 + + :param name: The name of this V1PodOS. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodOS): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodOS): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_readiness_gate.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_readiness_gate.py new file mode 100644 index 0000000000000000000000000000000000000000..d4ccf3dc60c4c3ccb1bbd943b9756e6f396dbb66 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_readiness_gate.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodReadinessGate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'condition_type': 'str' + } + + attribute_map = { + 'condition_type': 'conditionType' + } + + def __init__(self, condition_type=None, local_vars_configuration=None): # noqa: E501 + """V1PodReadinessGate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._condition_type = None + self.discriminator = None + + self.condition_type = condition_type + + @property + def condition_type(self): + """Gets the condition_type of this V1PodReadinessGate. # noqa: E501 + + ConditionType refers to a condition in the pod's condition list with matching type. # noqa: E501 + + :return: The condition_type of this V1PodReadinessGate. # noqa: E501 + :rtype: str + """ + return self._condition_type + + @condition_type.setter + def condition_type(self, condition_type): + """Sets the condition_type of this V1PodReadinessGate. + + ConditionType refers to a condition in the pod's condition list with matching type. # noqa: E501 + + :param condition_type: The condition_type of this V1PodReadinessGate. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and condition_type is None: # noqa: E501 + raise ValueError("Invalid value for `condition_type`, must not be `None`") # noqa: E501 + + self._condition_type = condition_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodReadinessGate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodReadinessGate): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_resource_claim.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_resource_claim.py new file mode 100644 index 0000000000000000000000000000000000000000..f87342148c328319a391c13e39d320ffdbd347c8 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_resource_claim.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodResourceClaim(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str', + 'resource_claim_name': 'str', + 'resource_claim_template_name': 'str' + } + + attribute_map = { + 'name': 'name', + 'resource_claim_name': 'resourceClaimName', + 'resource_claim_template_name': 'resourceClaimTemplateName' + } + + def __init__(self, name=None, resource_claim_name=None, resource_claim_template_name=None, local_vars_configuration=None): # noqa: E501 + """V1PodResourceClaim - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self._resource_claim_name = None + self._resource_claim_template_name = None + self.discriminator = None + + self.name = name + if resource_claim_name is not None: + self.resource_claim_name = resource_claim_name + if resource_claim_template_name is not None: + self.resource_claim_template_name = resource_claim_template_name + + @property + def name(self): + """Gets the name of this V1PodResourceClaim. # noqa: E501 + + Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. # noqa: E501 + + :return: The name of this V1PodResourceClaim. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1PodResourceClaim. + + Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. # noqa: E501 + + :param name: The name of this V1PodResourceClaim. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def resource_claim_name(self): + """Gets the resource_claim_name of this V1PodResourceClaim. # noqa: E501 + + ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. # noqa: E501 + + :return: The resource_claim_name of this V1PodResourceClaim. # noqa: E501 + :rtype: str + """ + return self._resource_claim_name + + @resource_claim_name.setter + def resource_claim_name(self, resource_claim_name): + """Sets the resource_claim_name of this V1PodResourceClaim. + + ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. # noqa: E501 + + :param resource_claim_name: The resource_claim_name of this V1PodResourceClaim. # noqa: E501 + :type: str + """ + + self._resource_claim_name = resource_claim_name + + @property + def resource_claim_template_name(self): + """Gets the resource_claim_template_name of this V1PodResourceClaim. # noqa: E501 + + ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. # noqa: E501 + + :return: The resource_claim_template_name of this V1PodResourceClaim. # noqa: E501 + :rtype: str + """ + return self._resource_claim_template_name + + @resource_claim_template_name.setter + def resource_claim_template_name(self, resource_claim_template_name): + """Sets the resource_claim_template_name of this V1PodResourceClaim. + + ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. # noqa: E501 + + :param resource_claim_template_name: The resource_claim_template_name of this V1PodResourceClaim. # noqa: E501 + :type: str + """ + + self._resource_claim_template_name = resource_claim_template_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodResourceClaim): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodResourceClaim): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_resource_claim_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_resource_claim_status.py new file mode 100644 index 0000000000000000000000000000000000000000..4b728bcf9887c9b5e0c883b5803a3e076c19916c --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_resource_claim_status.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodResourceClaimStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str', + 'resource_claim_name': 'str' + } + + attribute_map = { + 'name': 'name', + 'resource_claim_name': 'resourceClaimName' + } + + def __init__(self, name=None, resource_claim_name=None, local_vars_configuration=None): # noqa: E501 + """V1PodResourceClaimStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self._resource_claim_name = None + self.discriminator = None + + self.name = name + if resource_claim_name is not None: + self.resource_claim_name = resource_claim_name + + @property + def name(self): + """Gets the name of this V1PodResourceClaimStatus. # noqa: E501 + + Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. # noqa: E501 + + :return: The name of this V1PodResourceClaimStatus. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1PodResourceClaimStatus. + + Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. # noqa: E501 + + :param name: The name of this V1PodResourceClaimStatus. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def resource_claim_name(self): + """Gets the resource_claim_name of this V1PodResourceClaimStatus. # noqa: E501 + + ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. # noqa: E501 + + :return: The resource_claim_name of this V1PodResourceClaimStatus. # noqa: E501 + :rtype: str + """ + return self._resource_claim_name + + @resource_claim_name.setter + def resource_claim_name(self, resource_claim_name): + """Sets the resource_claim_name of this V1PodResourceClaimStatus. + + ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. # noqa: E501 + + :param resource_claim_name: The resource_claim_name of this V1PodResourceClaimStatus. # noqa: E501 + :type: str + """ + + self._resource_claim_name = resource_claim_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodResourceClaimStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodResourceClaimStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_scheduling_gate.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_scheduling_gate.py new file mode 100644 index 0000000000000000000000000000000000000000..785a65bdf8279cd6f25831c06cd15f87665e3fb6 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_scheduling_gate.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodSchedulingGate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None, local_vars_configuration=None): # noqa: E501 + """V1PodSchedulingGate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self.discriminator = None + + self.name = name + + @property + def name(self): + """Gets the name of this V1PodSchedulingGate. # noqa: E501 + + Name of the scheduling gate. Each scheduling gate must have a unique name field. # noqa: E501 + + :return: The name of this V1PodSchedulingGate. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1PodSchedulingGate. + + Name of the scheduling gate. Each scheduling gate must have a unique name field. # noqa: E501 + + :param name: The name of this V1PodSchedulingGate. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodSchedulingGate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodSchedulingGate): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_security_context.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_security_context.py new file mode 100644 index 0000000000000000000000000000000000000000..26d09eb7a97e7511925fac449113d234cc9895a5 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_security_context.py @@ -0,0 +1,450 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodSecurityContext(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'app_armor_profile': 'V1AppArmorProfile', + 'fs_group': 'int', + 'fs_group_change_policy': 'str', + 'run_as_group': 'int', + 'run_as_non_root': 'bool', + 'run_as_user': 'int', + 'se_linux_change_policy': 'str', + 'se_linux_options': 'V1SELinuxOptions', + 'seccomp_profile': 'V1SeccompProfile', + 'supplemental_groups': 'list[int]', + 'supplemental_groups_policy': 'str', + 'sysctls': 'list[V1Sysctl]', + 'windows_options': 'V1WindowsSecurityContextOptions' + } + + attribute_map = { + 'app_armor_profile': 'appArmorProfile', + 'fs_group': 'fsGroup', + 'fs_group_change_policy': 'fsGroupChangePolicy', + 'run_as_group': 'runAsGroup', + 'run_as_non_root': 'runAsNonRoot', + 'run_as_user': 'runAsUser', + 'se_linux_change_policy': 'seLinuxChangePolicy', + 'se_linux_options': 'seLinuxOptions', + 'seccomp_profile': 'seccompProfile', + 'supplemental_groups': 'supplementalGroups', + 'supplemental_groups_policy': 'supplementalGroupsPolicy', + 'sysctls': 'sysctls', + 'windows_options': 'windowsOptions' + } + + def __init__(self, app_armor_profile=None, fs_group=None, fs_group_change_policy=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_change_policy=None, se_linux_options=None, seccomp_profile=None, supplemental_groups=None, supplemental_groups_policy=None, sysctls=None, windows_options=None, local_vars_configuration=None): # noqa: E501 + """V1PodSecurityContext - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._app_armor_profile = None + self._fs_group = None + self._fs_group_change_policy = None + self._run_as_group = None + self._run_as_non_root = None + self._run_as_user = None + self._se_linux_change_policy = None + self._se_linux_options = None + self._seccomp_profile = None + self._supplemental_groups = None + self._supplemental_groups_policy = None + self._sysctls = None + self._windows_options = None + self.discriminator = None + + if app_armor_profile is not None: + self.app_armor_profile = app_armor_profile + if fs_group is not None: + self.fs_group = fs_group + if fs_group_change_policy is not None: + self.fs_group_change_policy = fs_group_change_policy + if run_as_group is not None: + self.run_as_group = run_as_group + if run_as_non_root is not None: + self.run_as_non_root = run_as_non_root + if run_as_user is not None: + self.run_as_user = run_as_user + if se_linux_change_policy is not None: + self.se_linux_change_policy = se_linux_change_policy + if se_linux_options is not None: + self.se_linux_options = se_linux_options + if seccomp_profile is not None: + self.seccomp_profile = seccomp_profile + if supplemental_groups is not None: + self.supplemental_groups = supplemental_groups + if supplemental_groups_policy is not None: + self.supplemental_groups_policy = supplemental_groups_policy + if sysctls is not None: + self.sysctls = sysctls + if windows_options is not None: + self.windows_options = windows_options + + @property + def app_armor_profile(self): + """Gets the app_armor_profile of this V1PodSecurityContext. # noqa: E501 + + + :return: The app_armor_profile of this V1PodSecurityContext. # noqa: E501 + :rtype: V1AppArmorProfile + """ + return self._app_armor_profile + + @app_armor_profile.setter + def app_armor_profile(self, app_armor_profile): + """Sets the app_armor_profile of this V1PodSecurityContext. + + + :param app_armor_profile: The app_armor_profile of this V1PodSecurityContext. # noqa: E501 + :type: V1AppArmorProfile + """ + + self._app_armor_profile = app_armor_profile + + @property + def fs_group(self): + """Gets the fs_group of this V1PodSecurityContext. # noqa: E501 + + A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The fs_group of this V1PodSecurityContext. # noqa: E501 + :rtype: int + """ + return self._fs_group + + @fs_group.setter + def fs_group(self, fs_group): + """Sets the fs_group of this V1PodSecurityContext. + + A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param fs_group: The fs_group of this V1PodSecurityContext. # noqa: E501 + :type: int + """ + + self._fs_group = fs_group + + @property + def fs_group_change_policy(self): + """Gets the fs_group_change_policy of this V1PodSecurityContext. # noqa: E501 + + fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The fs_group_change_policy of this V1PodSecurityContext. # noqa: E501 + :rtype: str + """ + return self._fs_group_change_policy + + @fs_group_change_policy.setter + def fs_group_change_policy(self, fs_group_change_policy): + """Sets the fs_group_change_policy of this V1PodSecurityContext. + + fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param fs_group_change_policy: The fs_group_change_policy of this V1PodSecurityContext. # noqa: E501 + :type: str + """ + + self._fs_group_change_policy = fs_group_change_policy + + @property + def run_as_group(self): + """Gets the run_as_group of this V1PodSecurityContext. # noqa: E501 + + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The run_as_group of this V1PodSecurityContext. # noqa: E501 + :rtype: int + """ + return self._run_as_group + + @run_as_group.setter + def run_as_group(self, run_as_group): + """Sets the run_as_group of this V1PodSecurityContext. + + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param run_as_group: The run_as_group of this V1PodSecurityContext. # noqa: E501 + :type: int + """ + + self._run_as_group = run_as_group + + @property + def run_as_non_root(self): + """Gets the run_as_non_root of this V1PodSecurityContext. # noqa: E501 + + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 + + :return: The run_as_non_root of this V1PodSecurityContext. # noqa: E501 + :rtype: bool + """ + return self._run_as_non_root + + @run_as_non_root.setter + def run_as_non_root(self, run_as_non_root): + """Sets the run_as_non_root of this V1PodSecurityContext. + + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 + + :param run_as_non_root: The run_as_non_root of this V1PodSecurityContext. # noqa: E501 + :type: bool + """ + + self._run_as_non_root = run_as_non_root + + @property + def run_as_user(self): + """Gets the run_as_user of this V1PodSecurityContext. # noqa: E501 + + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The run_as_user of this V1PodSecurityContext. # noqa: E501 + :rtype: int + """ + return self._run_as_user + + @run_as_user.setter + def run_as_user(self, run_as_user): + """Sets the run_as_user of this V1PodSecurityContext. + + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param run_as_user: The run_as_user of this V1PodSecurityContext. # noqa: E501 + :type: int + """ + + self._run_as_user = run_as_user + + @property + def se_linux_change_policy(self): + """Gets the se_linux_change_policy of this V1PodSecurityContext. # noqa: E501 + + seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. \"MountOption\" value is allowed only when SELinuxMount feature gate is enabled. If not specified and SELinuxMount feature gate is enabled, \"MountOption\" is used. If not specified and SELinuxMount feature gate is disabled, \"MountOption\" is used for ReadWriteOncePod volumes and \"Recursive\" for all other volumes. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The se_linux_change_policy of this V1PodSecurityContext. # noqa: E501 + :rtype: str + """ + return self._se_linux_change_policy + + @se_linux_change_policy.setter + def se_linux_change_policy(self, se_linux_change_policy): + """Sets the se_linux_change_policy of this V1PodSecurityContext. + + seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\". \"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. \"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. \"MountOption\" value is allowed only when SELinuxMount feature gate is enabled. If not specified and SELinuxMount feature gate is enabled, \"MountOption\" is used. If not specified and SELinuxMount feature gate is disabled, \"MountOption\" is used for ReadWriteOncePod volumes and \"Recursive\" for all other volumes. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param se_linux_change_policy: The se_linux_change_policy of this V1PodSecurityContext. # noqa: E501 + :type: str + """ + + self._se_linux_change_policy = se_linux_change_policy + + @property + def se_linux_options(self): + """Gets the se_linux_options of this V1PodSecurityContext. # noqa: E501 + + + :return: The se_linux_options of this V1PodSecurityContext. # noqa: E501 + :rtype: V1SELinuxOptions + """ + return self._se_linux_options + + @se_linux_options.setter + def se_linux_options(self, se_linux_options): + """Sets the se_linux_options of this V1PodSecurityContext. + + + :param se_linux_options: The se_linux_options of this V1PodSecurityContext. # noqa: E501 + :type: V1SELinuxOptions + """ + + self._se_linux_options = se_linux_options + + @property + def seccomp_profile(self): + """Gets the seccomp_profile of this V1PodSecurityContext. # noqa: E501 + + + :return: The seccomp_profile of this V1PodSecurityContext. # noqa: E501 + :rtype: V1SeccompProfile + """ + return self._seccomp_profile + + @seccomp_profile.setter + def seccomp_profile(self, seccomp_profile): + """Sets the seccomp_profile of this V1PodSecurityContext. + + + :param seccomp_profile: The seccomp_profile of this V1PodSecurityContext. # noqa: E501 + :type: V1SeccompProfile + """ + + self._seccomp_profile = seccomp_profile + + @property + def supplemental_groups(self): + """Gets the supplemental_groups of this V1PodSecurityContext. # noqa: E501 + + A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The supplemental_groups of this V1PodSecurityContext. # noqa: E501 + :rtype: list[int] + """ + return self._supplemental_groups + + @supplemental_groups.setter + def supplemental_groups(self, supplemental_groups): + """Sets the supplemental_groups of this V1PodSecurityContext. + + A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param supplemental_groups: The supplemental_groups of this V1PodSecurityContext. # noqa: E501 + :type: list[int] + """ + + self._supplemental_groups = supplemental_groups + + @property + def supplemental_groups_policy(self): + """Gets the supplemental_groups_policy of this V1PodSecurityContext. # noqa: E501 + + Defines how supplemental groups of the first container processes are calculated. Valid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The supplemental_groups_policy of this V1PodSecurityContext. # noqa: E501 + :rtype: str + """ + return self._supplemental_groups_policy + + @supplemental_groups_policy.setter + def supplemental_groups_policy(self, supplemental_groups_policy): + """Sets the supplemental_groups_policy of this V1PodSecurityContext. + + Defines how supplemental groups of the first container processes are calculated. Valid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param supplemental_groups_policy: The supplemental_groups_policy of this V1PodSecurityContext. # noqa: E501 + :type: str + """ + + self._supplemental_groups_policy = supplemental_groups_policy + + @property + def sysctls(self): + """Gets the sysctls of this V1PodSecurityContext. # noqa: E501 + + Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The sysctls of this V1PodSecurityContext. # noqa: E501 + :rtype: list[V1Sysctl] + """ + return self._sysctls + + @sysctls.setter + def sysctls(self, sysctls): + """Sets the sysctls of this V1PodSecurityContext. + + Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param sysctls: The sysctls of this V1PodSecurityContext. # noqa: E501 + :type: list[V1Sysctl] + """ + + self._sysctls = sysctls + + @property + def windows_options(self): + """Gets the windows_options of this V1PodSecurityContext. # noqa: E501 + + + :return: The windows_options of this V1PodSecurityContext. # noqa: E501 + :rtype: V1WindowsSecurityContextOptions + """ + return self._windows_options + + @windows_options.setter + def windows_options(self, windows_options): + """Sets the windows_options of this V1PodSecurityContext. + + + :param windows_options: The windows_options of this V1PodSecurityContext. # noqa: E501 + :type: V1WindowsSecurityContextOptions + """ + + self._windows_options = windows_options + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodSecurityContext): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodSecurityContext): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..c13d2860ef26537240780b121bc3d823454f3393 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_spec.py @@ -0,0 +1,1259 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'active_deadline_seconds': 'int', + 'affinity': 'V1Affinity', + 'automount_service_account_token': 'bool', + 'containers': 'list[V1Container]', + 'dns_config': 'V1PodDNSConfig', + 'dns_policy': 'str', + 'enable_service_links': 'bool', + 'ephemeral_containers': 'list[V1EphemeralContainer]', + 'host_aliases': 'list[V1HostAlias]', + 'host_ipc': 'bool', + 'host_network': 'bool', + 'host_pid': 'bool', + 'host_users': 'bool', + 'hostname': 'str', + 'hostname_override': 'str', + 'image_pull_secrets': 'list[V1LocalObjectReference]', + 'init_containers': 'list[V1Container]', + 'node_name': 'str', + 'node_selector': 'dict(str, str)', + 'os': 'V1PodOS', + 'overhead': 'dict(str, str)', + 'preemption_policy': 'str', + 'priority': 'int', + 'priority_class_name': 'str', + 'readiness_gates': 'list[V1PodReadinessGate]', + 'resource_claims': 'list[V1PodResourceClaim]', + 'resources': 'V1ResourceRequirements', + 'restart_policy': 'str', + 'runtime_class_name': 'str', + 'scheduler_name': 'str', + 'scheduling_gates': 'list[V1PodSchedulingGate]', + 'security_context': 'V1PodSecurityContext', + 'service_account': 'str', + 'service_account_name': 'str', + 'set_hostname_as_fqdn': 'bool', + 'share_process_namespace': 'bool', + 'subdomain': 'str', + 'termination_grace_period_seconds': 'int', + 'tolerations': 'list[V1Toleration]', + 'topology_spread_constraints': 'list[V1TopologySpreadConstraint]', + 'volumes': 'list[V1Volume]', + 'workload_ref': 'V1WorkloadReference' + } + + attribute_map = { + 'active_deadline_seconds': 'activeDeadlineSeconds', + 'affinity': 'affinity', + 'automount_service_account_token': 'automountServiceAccountToken', + 'containers': 'containers', + 'dns_config': 'dnsConfig', + 'dns_policy': 'dnsPolicy', + 'enable_service_links': 'enableServiceLinks', + 'ephemeral_containers': 'ephemeralContainers', + 'host_aliases': 'hostAliases', + 'host_ipc': 'hostIPC', + 'host_network': 'hostNetwork', + 'host_pid': 'hostPID', + 'host_users': 'hostUsers', + 'hostname': 'hostname', + 'hostname_override': 'hostnameOverride', + 'image_pull_secrets': 'imagePullSecrets', + 'init_containers': 'initContainers', + 'node_name': 'nodeName', + 'node_selector': 'nodeSelector', + 'os': 'os', + 'overhead': 'overhead', + 'preemption_policy': 'preemptionPolicy', + 'priority': 'priority', + 'priority_class_name': 'priorityClassName', + 'readiness_gates': 'readinessGates', + 'resource_claims': 'resourceClaims', + 'resources': 'resources', + 'restart_policy': 'restartPolicy', + 'runtime_class_name': 'runtimeClassName', + 'scheduler_name': 'schedulerName', + 'scheduling_gates': 'schedulingGates', + 'security_context': 'securityContext', + 'service_account': 'serviceAccount', + 'service_account_name': 'serviceAccountName', + 'set_hostname_as_fqdn': 'setHostnameAsFQDN', + 'share_process_namespace': 'shareProcessNamespace', + 'subdomain': 'subdomain', + 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', + 'tolerations': 'tolerations', + 'topology_spread_constraints': 'topologySpreadConstraints', + 'volumes': 'volumes', + 'workload_ref': 'workloadRef' + } + + def __init__(self, active_deadline_seconds=None, affinity=None, automount_service_account_token=None, containers=None, dns_config=None, dns_policy=None, enable_service_links=None, ephemeral_containers=None, host_aliases=None, host_ipc=None, host_network=None, host_pid=None, host_users=None, hostname=None, hostname_override=None, image_pull_secrets=None, init_containers=None, node_name=None, node_selector=None, os=None, overhead=None, preemption_policy=None, priority=None, priority_class_name=None, readiness_gates=None, resource_claims=None, resources=None, restart_policy=None, runtime_class_name=None, scheduler_name=None, scheduling_gates=None, security_context=None, service_account=None, service_account_name=None, set_hostname_as_fqdn=None, share_process_namespace=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None, workload_ref=None, local_vars_configuration=None): # noqa: E501 + """V1PodSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._active_deadline_seconds = None + self._affinity = None + self._automount_service_account_token = None + self._containers = None + self._dns_config = None + self._dns_policy = None + self._enable_service_links = None + self._ephemeral_containers = None + self._host_aliases = None + self._host_ipc = None + self._host_network = None + self._host_pid = None + self._host_users = None + self._hostname = None + self._hostname_override = None + self._image_pull_secrets = None + self._init_containers = None + self._node_name = None + self._node_selector = None + self._os = None + self._overhead = None + self._preemption_policy = None + self._priority = None + self._priority_class_name = None + self._readiness_gates = None + self._resource_claims = None + self._resources = None + self._restart_policy = None + self._runtime_class_name = None + self._scheduler_name = None + self._scheduling_gates = None + self._security_context = None + self._service_account = None + self._service_account_name = None + self._set_hostname_as_fqdn = None + self._share_process_namespace = None + self._subdomain = None + self._termination_grace_period_seconds = None + self._tolerations = None + self._topology_spread_constraints = None + self._volumes = None + self._workload_ref = None + self.discriminator = None + + if active_deadline_seconds is not None: + self.active_deadline_seconds = active_deadline_seconds + if affinity is not None: + self.affinity = affinity + if automount_service_account_token is not None: + self.automount_service_account_token = automount_service_account_token + self.containers = containers + if dns_config is not None: + self.dns_config = dns_config + if dns_policy is not None: + self.dns_policy = dns_policy + if enable_service_links is not None: + self.enable_service_links = enable_service_links + if ephemeral_containers is not None: + self.ephemeral_containers = ephemeral_containers + if host_aliases is not None: + self.host_aliases = host_aliases + if host_ipc is not None: + self.host_ipc = host_ipc + if host_network is not None: + self.host_network = host_network + if host_pid is not None: + self.host_pid = host_pid + if host_users is not None: + self.host_users = host_users + if hostname is not None: + self.hostname = hostname + if hostname_override is not None: + self.hostname_override = hostname_override + if image_pull_secrets is not None: + self.image_pull_secrets = image_pull_secrets + if init_containers is not None: + self.init_containers = init_containers + if node_name is not None: + self.node_name = node_name + if node_selector is not None: + self.node_selector = node_selector + if os is not None: + self.os = os + if overhead is not None: + self.overhead = overhead + if preemption_policy is not None: + self.preemption_policy = preemption_policy + if priority is not None: + self.priority = priority + if priority_class_name is not None: + self.priority_class_name = priority_class_name + if readiness_gates is not None: + self.readiness_gates = readiness_gates + if resource_claims is not None: + self.resource_claims = resource_claims + if resources is not None: + self.resources = resources + if restart_policy is not None: + self.restart_policy = restart_policy + if runtime_class_name is not None: + self.runtime_class_name = runtime_class_name + if scheduler_name is not None: + self.scheduler_name = scheduler_name + if scheduling_gates is not None: + self.scheduling_gates = scheduling_gates + if security_context is not None: + self.security_context = security_context + if service_account is not None: + self.service_account = service_account + if service_account_name is not None: + self.service_account_name = service_account_name + if set_hostname_as_fqdn is not None: + self.set_hostname_as_fqdn = set_hostname_as_fqdn + if share_process_namespace is not None: + self.share_process_namespace = share_process_namespace + if subdomain is not None: + self.subdomain = subdomain + if termination_grace_period_seconds is not None: + self.termination_grace_period_seconds = termination_grace_period_seconds + if tolerations is not None: + self.tolerations = tolerations + if topology_spread_constraints is not None: + self.topology_spread_constraints = topology_spread_constraints + if volumes is not None: + self.volumes = volumes + if workload_ref is not None: + self.workload_ref = workload_ref + + @property + def active_deadline_seconds(self): + """Gets the active_deadline_seconds of this V1PodSpec. # noqa: E501 + + Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501 + + :return: The active_deadline_seconds of this V1PodSpec. # noqa: E501 + :rtype: int + """ + return self._active_deadline_seconds + + @active_deadline_seconds.setter + def active_deadline_seconds(self, active_deadline_seconds): + """Sets the active_deadline_seconds of this V1PodSpec. + + Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501 + + :param active_deadline_seconds: The active_deadline_seconds of this V1PodSpec. # noqa: E501 + :type: int + """ + + self._active_deadline_seconds = active_deadline_seconds + + @property + def affinity(self): + """Gets the affinity of this V1PodSpec. # noqa: E501 + + + :return: The affinity of this V1PodSpec. # noqa: E501 + :rtype: V1Affinity + """ + return self._affinity + + @affinity.setter + def affinity(self, affinity): + """Sets the affinity of this V1PodSpec. + + + :param affinity: The affinity of this V1PodSpec. # noqa: E501 + :type: V1Affinity + """ + + self._affinity = affinity + + @property + def automount_service_account_token(self): + """Gets the automount_service_account_token of this V1PodSpec. # noqa: E501 + + AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501 + + :return: The automount_service_account_token of this V1PodSpec. # noqa: E501 + :rtype: bool + """ + return self._automount_service_account_token + + @automount_service_account_token.setter + def automount_service_account_token(self, automount_service_account_token): + """Sets the automount_service_account_token of this V1PodSpec. + + AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501 + + :param automount_service_account_token: The automount_service_account_token of this V1PodSpec. # noqa: E501 + :type: bool + """ + + self._automount_service_account_token = automount_service_account_token + + @property + def containers(self): + """Gets the containers of this V1PodSpec. # noqa: E501 + + List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501 + + :return: The containers of this V1PodSpec. # noqa: E501 + :rtype: list[V1Container] + """ + return self._containers + + @containers.setter + def containers(self, containers): + """Sets the containers of this V1PodSpec. + + List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501 + + :param containers: The containers of this V1PodSpec. # noqa: E501 + :type: list[V1Container] + """ + if self.local_vars_configuration.client_side_validation and containers is None: # noqa: E501 + raise ValueError("Invalid value for `containers`, must not be `None`") # noqa: E501 + + self._containers = containers + + @property + def dns_config(self): + """Gets the dns_config of this V1PodSpec. # noqa: E501 + + + :return: The dns_config of this V1PodSpec. # noqa: E501 + :rtype: V1PodDNSConfig + """ + return self._dns_config + + @dns_config.setter + def dns_config(self, dns_config): + """Sets the dns_config of this V1PodSpec. + + + :param dns_config: The dns_config of this V1PodSpec. # noqa: E501 + :type: V1PodDNSConfig + """ + + self._dns_config = dns_config + + @property + def dns_policy(self): + """Gets the dns_policy of this V1PodSpec. # noqa: E501 + + Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501 + + :return: The dns_policy of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._dns_policy + + @dns_policy.setter + def dns_policy(self, dns_policy): + """Sets the dns_policy of this V1PodSpec. + + Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501 + + :param dns_policy: The dns_policy of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._dns_policy = dns_policy + + @property + def enable_service_links(self): + """Gets the enable_service_links of this V1PodSpec. # noqa: E501 + + EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501 + + :return: The enable_service_links of this V1PodSpec. # noqa: E501 + :rtype: bool + """ + return self._enable_service_links + + @enable_service_links.setter + def enable_service_links(self, enable_service_links): + """Sets the enable_service_links of this V1PodSpec. + + EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501 + + :param enable_service_links: The enable_service_links of this V1PodSpec. # noqa: E501 + :type: bool + """ + + self._enable_service_links = enable_service_links + + @property + def ephemeral_containers(self): + """Gets the ephemeral_containers of this V1PodSpec. # noqa: E501 + + List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501 + + :return: The ephemeral_containers of this V1PodSpec. # noqa: E501 + :rtype: list[V1EphemeralContainer] + """ + return self._ephemeral_containers + + @ephemeral_containers.setter + def ephemeral_containers(self, ephemeral_containers): + """Sets the ephemeral_containers of this V1PodSpec. + + List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501 + + :param ephemeral_containers: The ephemeral_containers of this V1PodSpec. # noqa: E501 + :type: list[V1EphemeralContainer] + """ + + self._ephemeral_containers = ephemeral_containers + + @property + def host_aliases(self): + """Gets the host_aliases of this V1PodSpec. # noqa: E501 + + HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501 + + :return: The host_aliases of this V1PodSpec. # noqa: E501 + :rtype: list[V1HostAlias] + """ + return self._host_aliases + + @host_aliases.setter + def host_aliases(self, host_aliases): + """Sets the host_aliases of this V1PodSpec. + + HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501 + + :param host_aliases: The host_aliases of this V1PodSpec. # noqa: E501 + :type: list[V1HostAlias] + """ + + self._host_aliases = host_aliases + + @property + def host_ipc(self): + """Gets the host_ipc of this V1PodSpec. # noqa: E501 + + Use the host's ipc namespace. Optional: Default to false. # noqa: E501 + + :return: The host_ipc of this V1PodSpec. # noqa: E501 + :rtype: bool + """ + return self._host_ipc + + @host_ipc.setter + def host_ipc(self, host_ipc): + """Sets the host_ipc of this V1PodSpec. + + Use the host's ipc namespace. Optional: Default to false. # noqa: E501 + + :param host_ipc: The host_ipc of this V1PodSpec. # noqa: E501 + :type: bool + """ + + self._host_ipc = host_ipc + + @property + def host_network(self): + """Gets the host_network of this V1PodSpec. # noqa: E501 + + Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false. # noqa: E501 + + :return: The host_network of this V1PodSpec. # noqa: E501 + :rtype: bool + """ + return self._host_network + + @host_network.setter + def host_network(self, host_network): + """Sets the host_network of this V1PodSpec. + + Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false. # noqa: E501 + + :param host_network: The host_network of this V1PodSpec. # noqa: E501 + :type: bool + """ + + self._host_network = host_network + + @property + def host_pid(self): + """Gets the host_pid of this V1PodSpec. # noqa: E501 + + Use the host's pid namespace. Optional: Default to false. # noqa: E501 + + :return: The host_pid of this V1PodSpec. # noqa: E501 + :rtype: bool + """ + return self._host_pid + + @host_pid.setter + def host_pid(self, host_pid): + """Sets the host_pid of this V1PodSpec. + + Use the host's pid namespace. Optional: Default to false. # noqa: E501 + + :param host_pid: The host_pid of this V1PodSpec. # noqa: E501 + :type: bool + """ + + self._host_pid = host_pid + + @property + def host_users(self): + """Gets the host_users of this V1PodSpec. # noqa: E501 + + Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501 + + :return: The host_users of this V1PodSpec. # noqa: E501 + :rtype: bool + """ + return self._host_users + + @host_users.setter + def host_users(self, host_users): + """Sets the host_users of this V1PodSpec. + + Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501 + + :param host_users: The host_users of this V1PodSpec. # noqa: E501 + :type: bool + """ + + self._host_users = host_users + + @property + def hostname(self): + """Gets the hostname of this V1PodSpec. # noqa: E501 + + Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501 + + :return: The hostname of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """Sets the hostname of this V1PodSpec. + + Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501 + + :param hostname: The hostname of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._hostname = hostname + + @property + def hostname_override(self): + """Gets the hostname_override of this V1PodSpec. # noqa: E501 + + HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled. # noqa: E501 + + :return: The hostname_override of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._hostname_override + + @hostname_override.setter + def hostname_override(self, hostname_override): + """Sets the hostname_override of this V1PodSpec. + + HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled. # noqa: E501 + + :param hostname_override: The hostname_override of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._hostname_override = hostname_override + + @property + def image_pull_secrets(self): + """Gets the image_pull_secrets of this V1PodSpec. # noqa: E501 + + ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501 + + :return: The image_pull_secrets of this V1PodSpec. # noqa: E501 + :rtype: list[V1LocalObjectReference] + """ + return self._image_pull_secrets + + @image_pull_secrets.setter + def image_pull_secrets(self, image_pull_secrets): + """Sets the image_pull_secrets of this V1PodSpec. + + ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501 + + :param image_pull_secrets: The image_pull_secrets of this V1PodSpec. # noqa: E501 + :type: list[V1LocalObjectReference] + """ + + self._image_pull_secrets = image_pull_secrets + + @property + def init_containers(self): + """Gets the init_containers of this V1PodSpec. # noqa: E501 + + List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501 + + :return: The init_containers of this V1PodSpec. # noqa: E501 + :rtype: list[V1Container] + """ + return self._init_containers + + @init_containers.setter + def init_containers(self, init_containers): + """Sets the init_containers of this V1PodSpec. + + List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501 + + :param init_containers: The init_containers of this V1PodSpec. # noqa: E501 + :type: list[V1Container] + """ + + self._init_containers = init_containers + + @property + def node_name(self): + """Gets the node_name of this V1PodSpec. # noqa: E501 + + NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename # noqa: E501 + + :return: The node_name of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._node_name + + @node_name.setter + def node_name(self, node_name): + """Sets the node_name of this V1PodSpec. + + NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename # noqa: E501 + + :param node_name: The node_name of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._node_name = node_name + + @property + def node_selector(self): + """Gets the node_selector of this V1PodSpec. # noqa: E501 + + NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501 + + :return: The node_selector of this V1PodSpec. # noqa: E501 + :rtype: dict(str, str) + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """Sets the node_selector of this V1PodSpec. + + NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501 + + :param node_selector: The node_selector of this V1PodSpec. # noqa: E501 + :type: dict(str, str) + """ + + self._node_selector = node_selector + + @property + def os(self): + """Gets the os of this V1PodSpec. # noqa: E501 + + + :return: The os of this V1PodSpec. # noqa: E501 + :rtype: V1PodOS + """ + return self._os + + @os.setter + def os(self, os): + """Sets the os of this V1PodSpec. + + + :param os: The os of this V1PodSpec. # noqa: E501 + :type: V1PodOS + """ + + self._os = os + + @property + def overhead(self): + """Gets the overhead of this V1PodSpec. # noqa: E501 + + Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501 + + :return: The overhead of this V1PodSpec. # noqa: E501 + :rtype: dict(str, str) + """ + return self._overhead + + @overhead.setter + def overhead(self, overhead): + """Sets the overhead of this V1PodSpec. + + Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501 + + :param overhead: The overhead of this V1PodSpec. # noqa: E501 + :type: dict(str, str) + """ + + self._overhead = overhead + + @property + def preemption_policy(self): + """Gets the preemption_policy of this V1PodSpec. # noqa: E501 + + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501 + + :return: The preemption_policy of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._preemption_policy + + @preemption_policy.setter + def preemption_policy(self, preemption_policy): + """Sets the preemption_policy of this V1PodSpec. + + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501 + + :param preemption_policy: The preemption_policy of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._preemption_policy = preemption_policy + + @property + def priority(self): + """Gets the priority of this V1PodSpec. # noqa: E501 + + The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501 + + :return: The priority of this V1PodSpec. # noqa: E501 + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this V1PodSpec. + + The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501 + + :param priority: The priority of this V1PodSpec. # noqa: E501 + :type: int + """ + + self._priority = priority + + @property + def priority_class_name(self): + """Gets the priority_class_name of this V1PodSpec. # noqa: E501 + + If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501 + + :return: The priority_class_name of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._priority_class_name + + @priority_class_name.setter + def priority_class_name(self, priority_class_name): + """Sets the priority_class_name of this V1PodSpec. + + If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501 + + :param priority_class_name: The priority_class_name of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._priority_class_name = priority_class_name + + @property + def readiness_gates(self): + """Gets the readiness_gates of this V1PodSpec. # noqa: E501 + + If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501 + + :return: The readiness_gates of this V1PodSpec. # noqa: E501 + :rtype: list[V1PodReadinessGate] + """ + return self._readiness_gates + + @readiness_gates.setter + def readiness_gates(self, readiness_gates): + """Sets the readiness_gates of this V1PodSpec. + + If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501 + + :param readiness_gates: The readiness_gates of this V1PodSpec. # noqa: E501 + :type: list[V1PodReadinessGate] + """ + + self._readiness_gates = readiness_gates + + @property + def resource_claims(self): + """Gets the resource_claims of this V1PodSpec. # noqa: E501 + + ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is a stable field but requires that the DynamicResourceAllocation feature gate is enabled. This field is immutable. # noqa: E501 + + :return: The resource_claims of this V1PodSpec. # noqa: E501 + :rtype: list[V1PodResourceClaim] + """ + return self._resource_claims + + @resource_claims.setter + def resource_claims(self, resource_claims): + """Sets the resource_claims of this V1PodSpec. + + ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is a stable field but requires that the DynamicResourceAllocation feature gate is enabled. This field is immutable. # noqa: E501 + + :param resource_claims: The resource_claims of this V1PodSpec. # noqa: E501 + :type: list[V1PodResourceClaim] + """ + + self._resource_claims = resource_claims + + @property + def resources(self): + """Gets the resources of this V1PodSpec. # noqa: E501 + + + :return: The resources of this V1PodSpec. # noqa: E501 + :rtype: V1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1PodSpec. + + + :param resources: The resources of this V1PodSpec. # noqa: E501 + :type: V1ResourceRequirements + """ + + self._resources = resources + + @property + def restart_policy(self): + """Gets the restart_policy of this V1PodSpec. # noqa: E501 + + Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy # noqa: E501 + + :return: The restart_policy of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._restart_policy + + @restart_policy.setter + def restart_policy(self, restart_policy): + """Sets the restart_policy of this V1PodSpec. + + Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy # noqa: E501 + + :param restart_policy: The restart_policy of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._restart_policy = restart_policy + + @property + def runtime_class_name(self): + """Gets the runtime_class_name of this V1PodSpec. # noqa: E501 + + RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501 + + :return: The runtime_class_name of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._runtime_class_name + + @runtime_class_name.setter + def runtime_class_name(self, runtime_class_name): + """Sets the runtime_class_name of this V1PodSpec. + + RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501 + + :param runtime_class_name: The runtime_class_name of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._runtime_class_name = runtime_class_name + + @property + def scheduler_name(self): + """Gets the scheduler_name of this V1PodSpec. # noqa: E501 + + If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501 + + :return: The scheduler_name of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._scheduler_name + + @scheduler_name.setter + def scheduler_name(self, scheduler_name): + """Sets the scheduler_name of this V1PodSpec. + + If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501 + + :param scheduler_name: The scheduler_name of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._scheduler_name = scheduler_name + + @property + def scheduling_gates(self): + """Gets the scheduling_gates of this V1PodSpec. # noqa: E501 + + SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501 + + :return: The scheduling_gates of this V1PodSpec. # noqa: E501 + :rtype: list[V1PodSchedulingGate] + """ + return self._scheduling_gates + + @scheduling_gates.setter + def scheduling_gates(self, scheduling_gates): + """Sets the scheduling_gates of this V1PodSpec. + + SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501 + + :param scheduling_gates: The scheduling_gates of this V1PodSpec. # noqa: E501 + :type: list[V1PodSchedulingGate] + """ + + self._scheduling_gates = scheduling_gates + + @property + def security_context(self): + """Gets the security_context of this V1PodSpec. # noqa: E501 + + + :return: The security_context of this V1PodSpec. # noqa: E501 + :rtype: V1PodSecurityContext + """ + return self._security_context + + @security_context.setter + def security_context(self, security_context): + """Sets the security_context of this V1PodSpec. + + + :param security_context: The security_context of this V1PodSpec. # noqa: E501 + :type: V1PodSecurityContext + """ + + self._security_context = security_context + + @property + def service_account(self): + """Gets the service_account of this V1PodSpec. # noqa: E501 + + DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501 + + :return: The service_account of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._service_account + + @service_account.setter + def service_account(self, service_account): + """Sets the service_account of this V1PodSpec. + + DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501 + + :param service_account: The service_account of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._service_account = service_account + + @property + def service_account_name(self): + """Gets the service_account_name of this V1PodSpec. # noqa: E501 + + ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501 + + :return: The service_account_name of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._service_account_name + + @service_account_name.setter + def service_account_name(self, service_account_name): + """Sets the service_account_name of this V1PodSpec. + + ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501 + + :param service_account_name: The service_account_name of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._service_account_name = service_account_name + + @property + def set_hostname_as_fqdn(self): + """Gets the set_hostname_as_fqdn of this V1PodSpec. # noqa: E501 + + If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501 + + :return: The set_hostname_as_fqdn of this V1PodSpec. # noqa: E501 + :rtype: bool + """ + return self._set_hostname_as_fqdn + + @set_hostname_as_fqdn.setter + def set_hostname_as_fqdn(self, set_hostname_as_fqdn): + """Sets the set_hostname_as_fqdn of this V1PodSpec. + + If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501 + + :param set_hostname_as_fqdn: The set_hostname_as_fqdn of this V1PodSpec. # noqa: E501 + :type: bool + """ + + self._set_hostname_as_fqdn = set_hostname_as_fqdn + + @property + def share_process_namespace(self): + """Gets the share_process_namespace of this V1PodSpec. # noqa: E501 + + Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501 + + :return: The share_process_namespace of this V1PodSpec. # noqa: E501 + :rtype: bool + """ + return self._share_process_namespace + + @share_process_namespace.setter + def share_process_namespace(self, share_process_namespace): + """Sets the share_process_namespace of this V1PodSpec. + + Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501 + + :param share_process_namespace: The share_process_namespace of this V1PodSpec. # noqa: E501 + :type: bool + """ + + self._share_process_namespace = share_process_namespace + + @property + def subdomain(self): + """Gets the subdomain of this V1PodSpec. # noqa: E501 + + If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all. # noqa: E501 + + :return: The subdomain of this V1PodSpec. # noqa: E501 + :rtype: str + """ + return self._subdomain + + @subdomain.setter + def subdomain(self, subdomain): + """Sets the subdomain of this V1PodSpec. + + If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all. # noqa: E501 + + :param subdomain: The subdomain of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._subdomain = subdomain + + @property + def termination_grace_period_seconds(self): + """Gets the termination_grace_period_seconds of this V1PodSpec. # noqa: E501 + + Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501 + + :return: The termination_grace_period_seconds of this V1PodSpec. # noqa: E501 + :rtype: int + """ + return self._termination_grace_period_seconds + + @termination_grace_period_seconds.setter + def termination_grace_period_seconds(self, termination_grace_period_seconds): + """Sets the termination_grace_period_seconds of this V1PodSpec. + + Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501 + + :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1PodSpec. # noqa: E501 + :type: int + """ + + self._termination_grace_period_seconds = termination_grace_period_seconds + + @property + def tolerations(self): + """Gets the tolerations of this V1PodSpec. # noqa: E501 + + If specified, the pod's tolerations. # noqa: E501 + + :return: The tolerations of this V1PodSpec. # noqa: E501 + :rtype: list[V1Toleration] + """ + return self._tolerations + + @tolerations.setter + def tolerations(self, tolerations): + """Sets the tolerations of this V1PodSpec. + + If specified, the pod's tolerations. # noqa: E501 + + :param tolerations: The tolerations of this V1PodSpec. # noqa: E501 + :type: list[V1Toleration] + """ + + self._tolerations = tolerations + + @property + def topology_spread_constraints(self): + """Gets the topology_spread_constraints of this V1PodSpec. # noqa: E501 + + TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501 + + :return: The topology_spread_constraints of this V1PodSpec. # noqa: E501 + :rtype: list[V1TopologySpreadConstraint] + """ + return self._topology_spread_constraints + + @topology_spread_constraints.setter + def topology_spread_constraints(self, topology_spread_constraints): + """Sets the topology_spread_constraints of this V1PodSpec. + + TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501 + + :param topology_spread_constraints: The topology_spread_constraints of this V1PodSpec. # noqa: E501 + :type: list[V1TopologySpreadConstraint] + """ + + self._topology_spread_constraints = topology_spread_constraints + + @property + def volumes(self): + """Gets the volumes of this V1PodSpec. # noqa: E501 + + List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501 + + :return: The volumes of this V1PodSpec. # noqa: E501 + :rtype: list[V1Volume] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """Sets the volumes of this V1PodSpec. + + List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501 + + :param volumes: The volumes of this V1PodSpec. # noqa: E501 + :type: list[V1Volume] + """ + + self._volumes = volumes + + @property + def workload_ref(self): + """Gets the workload_ref of this V1PodSpec. # noqa: E501 + + + :return: The workload_ref of this V1PodSpec. # noqa: E501 + :rtype: V1WorkloadReference + """ + return self._workload_ref + + @workload_ref.setter + def workload_ref(self, workload_ref): + """Sets the workload_ref of this V1PodSpec. + + + :param workload_ref: The workload_ref of this V1PodSpec. # noqa: E501 + :type: V1WorkloadReference + """ + + self._workload_ref = workload_ref + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_status.py new file mode 100644 index 0000000000000000000000000000000000000000..1b93580ea36edb73a2635e2ae1012804893737ae --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_status.py @@ -0,0 +1,650 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'allocated_resources': 'dict(str, str)', + 'conditions': 'list[V1PodCondition]', + 'container_statuses': 'list[V1ContainerStatus]', + 'ephemeral_container_statuses': 'list[V1ContainerStatus]', + 'extended_resource_claim_status': 'V1PodExtendedResourceClaimStatus', + 'host_ip': 'str', + 'host_i_ps': 'list[V1HostIP]', + 'init_container_statuses': 'list[V1ContainerStatus]', + 'message': 'str', + 'nominated_node_name': 'str', + 'observed_generation': 'int', + 'phase': 'str', + 'pod_ip': 'str', + 'pod_i_ps': 'list[V1PodIP]', + 'qos_class': 'str', + 'reason': 'str', + 'resize': 'str', + 'resource_claim_statuses': 'list[V1PodResourceClaimStatus]', + 'resources': 'V1ResourceRequirements', + 'start_time': 'datetime' + } + + attribute_map = { + 'allocated_resources': 'allocatedResources', + 'conditions': 'conditions', + 'container_statuses': 'containerStatuses', + 'ephemeral_container_statuses': 'ephemeralContainerStatuses', + 'extended_resource_claim_status': 'extendedResourceClaimStatus', + 'host_ip': 'hostIP', + 'host_i_ps': 'hostIPs', + 'init_container_statuses': 'initContainerStatuses', + 'message': 'message', + 'nominated_node_name': 'nominatedNodeName', + 'observed_generation': 'observedGeneration', + 'phase': 'phase', + 'pod_ip': 'podIP', + 'pod_i_ps': 'podIPs', + 'qos_class': 'qosClass', + 'reason': 'reason', + 'resize': 'resize', + 'resource_claim_statuses': 'resourceClaimStatuses', + 'resources': 'resources', + 'start_time': 'startTime' + } + + def __init__(self, allocated_resources=None, conditions=None, container_statuses=None, ephemeral_container_statuses=None, extended_resource_claim_status=None, host_ip=None, host_i_ps=None, init_container_statuses=None, message=None, nominated_node_name=None, observed_generation=None, phase=None, pod_ip=None, pod_i_ps=None, qos_class=None, reason=None, resize=None, resource_claim_statuses=None, resources=None, start_time=None, local_vars_configuration=None): # noqa: E501 + """V1PodStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._allocated_resources = None + self._conditions = None + self._container_statuses = None + self._ephemeral_container_statuses = None + self._extended_resource_claim_status = None + self._host_ip = None + self._host_i_ps = None + self._init_container_statuses = None + self._message = None + self._nominated_node_name = None + self._observed_generation = None + self._phase = None + self._pod_ip = None + self._pod_i_ps = None + self._qos_class = None + self._reason = None + self._resize = None + self._resource_claim_statuses = None + self._resources = None + self._start_time = None + self.discriminator = None + + if allocated_resources is not None: + self.allocated_resources = allocated_resources + if conditions is not None: + self.conditions = conditions + if container_statuses is not None: + self.container_statuses = container_statuses + if ephemeral_container_statuses is not None: + self.ephemeral_container_statuses = ephemeral_container_statuses + if extended_resource_claim_status is not None: + self.extended_resource_claim_status = extended_resource_claim_status + if host_ip is not None: + self.host_ip = host_ip + if host_i_ps is not None: + self.host_i_ps = host_i_ps + if init_container_statuses is not None: + self.init_container_statuses = init_container_statuses + if message is not None: + self.message = message + if nominated_node_name is not None: + self.nominated_node_name = nominated_node_name + if observed_generation is not None: + self.observed_generation = observed_generation + if phase is not None: + self.phase = phase + if pod_ip is not None: + self.pod_ip = pod_ip + if pod_i_ps is not None: + self.pod_i_ps = pod_i_ps + if qos_class is not None: + self.qos_class = qos_class + if reason is not None: + self.reason = reason + if resize is not None: + self.resize = resize + if resource_claim_statuses is not None: + self.resource_claim_statuses = resource_claim_statuses + if resources is not None: + self.resources = resources + if start_time is not None: + self.start_time = start_time + + @property + def allocated_resources(self): + """Gets the allocated_resources of this V1PodStatus. # noqa: E501 + + AllocatedResources is the total requests allocated for this pod by the node. If pod-level requests are not set, this will be the total requests aggregated across containers in the pod. # noqa: E501 + + :return: The allocated_resources of this V1PodStatus. # noqa: E501 + :rtype: dict(str, str) + """ + return self._allocated_resources + + @allocated_resources.setter + def allocated_resources(self, allocated_resources): + """Sets the allocated_resources of this V1PodStatus. + + AllocatedResources is the total requests allocated for this pod by the node. If pod-level requests are not set, this will be the total requests aggregated across containers in the pod. # noqa: E501 + + :param allocated_resources: The allocated_resources of this V1PodStatus. # noqa: E501 + :type: dict(str, str) + """ + + self._allocated_resources = allocated_resources + + @property + def conditions(self): + """Gets the conditions of this V1PodStatus. # noqa: E501 + + Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 + + :return: The conditions of this V1PodStatus. # noqa: E501 + :rtype: list[V1PodCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this V1PodStatus. + + Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 + + :param conditions: The conditions of this V1PodStatus. # noqa: E501 + :type: list[V1PodCondition] + """ + + self._conditions = conditions + + @property + def container_statuses(self): + """Gets the container_statuses of this V1PodStatus. # noqa: E501 + + Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status # noqa: E501 + + :return: The container_statuses of this V1PodStatus. # noqa: E501 + :rtype: list[V1ContainerStatus] + """ + return self._container_statuses + + @container_statuses.setter + def container_statuses(self, container_statuses): + """Sets the container_statuses of this V1PodStatus. + + Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status # noqa: E501 + + :param container_statuses: The container_statuses of this V1PodStatus. # noqa: E501 + :type: list[V1ContainerStatus] + """ + + self._container_statuses = container_statuses + + @property + def ephemeral_container_statuses(self): + """Gets the ephemeral_container_statuses of this V1PodStatus. # noqa: E501 + + Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status # noqa: E501 + + :return: The ephemeral_container_statuses of this V1PodStatus. # noqa: E501 + :rtype: list[V1ContainerStatus] + """ + return self._ephemeral_container_statuses + + @ephemeral_container_statuses.setter + def ephemeral_container_statuses(self, ephemeral_container_statuses): + """Sets the ephemeral_container_statuses of this V1PodStatus. + + Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status # noqa: E501 + + :param ephemeral_container_statuses: The ephemeral_container_statuses of this V1PodStatus. # noqa: E501 + :type: list[V1ContainerStatus] + """ + + self._ephemeral_container_statuses = ephemeral_container_statuses + + @property + def extended_resource_claim_status(self): + """Gets the extended_resource_claim_status of this V1PodStatus. # noqa: E501 + + + :return: The extended_resource_claim_status of this V1PodStatus. # noqa: E501 + :rtype: V1PodExtendedResourceClaimStatus + """ + return self._extended_resource_claim_status + + @extended_resource_claim_status.setter + def extended_resource_claim_status(self, extended_resource_claim_status): + """Sets the extended_resource_claim_status of this V1PodStatus. + + + :param extended_resource_claim_status: The extended_resource_claim_status of this V1PodStatus. # noqa: E501 + :type: V1PodExtendedResourceClaimStatus + """ + + self._extended_resource_claim_status = extended_resource_claim_status + + @property + def host_ip(self): + """Gets the host_ip of this V1PodStatus. # noqa: E501 + + hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod # noqa: E501 + + :return: The host_ip of this V1PodStatus. # noqa: E501 + :rtype: str + """ + return self._host_ip + + @host_ip.setter + def host_ip(self, host_ip): + """Sets the host_ip of this V1PodStatus. + + hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod # noqa: E501 + + :param host_ip: The host_ip of this V1PodStatus. # noqa: E501 + :type: str + """ + + self._host_ip = host_ip + + @property + def host_i_ps(self): + """Gets the host_i_ps of this V1PodStatus. # noqa: E501 + + hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. # noqa: E501 + + :return: The host_i_ps of this V1PodStatus. # noqa: E501 + :rtype: list[V1HostIP] + """ + return self._host_i_ps + + @host_i_ps.setter + def host_i_ps(self, host_i_ps): + """Sets the host_i_ps of this V1PodStatus. + + hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. # noqa: E501 + + :param host_i_ps: The host_i_ps of this V1PodStatus. # noqa: E501 + :type: list[V1HostIP] + """ + + self._host_i_ps = host_i_ps + + @property + def init_container_statuses(self): + """Gets the init_container_statuses of this V1PodStatus. # noqa: E501 + + Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status # noqa: E501 + + :return: The init_container_statuses of this V1PodStatus. # noqa: E501 + :rtype: list[V1ContainerStatus] + """ + return self._init_container_statuses + + @init_container_statuses.setter + def init_container_statuses(self, init_container_statuses): + """Sets the init_container_statuses of this V1PodStatus. + + Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status # noqa: E501 + + :param init_container_statuses: The init_container_statuses of this V1PodStatus. # noqa: E501 + :type: list[V1ContainerStatus] + """ + + self._init_container_statuses = init_container_statuses + + @property + def message(self): + """Gets the message of this V1PodStatus. # noqa: E501 + + A human readable message indicating details about why the pod is in this condition. # noqa: E501 + + :return: The message of this V1PodStatus. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1PodStatus. + + A human readable message indicating details about why the pod is in this condition. # noqa: E501 + + :param message: The message of this V1PodStatus. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def nominated_node_name(self): + """Gets the nominated_node_name of this V1PodStatus. # noqa: E501 + + nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. # noqa: E501 + + :return: The nominated_node_name of this V1PodStatus. # noqa: E501 + :rtype: str + """ + return self._nominated_node_name + + @nominated_node_name.setter + def nominated_node_name(self, nominated_node_name): + """Sets the nominated_node_name of this V1PodStatus. + + nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. # noqa: E501 + + :param nominated_node_name: The nominated_node_name of this V1PodStatus. # noqa: E501 + :type: str + """ + + self._nominated_node_name = nominated_node_name + + @property + def observed_generation(self): + """Gets the observed_generation of this V1PodStatus. # noqa: E501 + + If set, this represents the .metadata.generation that the pod status was set based upon. The PodObservedGenerationTracking feature gate must be enabled to use this field. # noqa: E501 + + :return: The observed_generation of this V1PodStatus. # noqa: E501 + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """Sets the observed_generation of this V1PodStatus. + + If set, this represents the .metadata.generation that the pod status was set based upon. The PodObservedGenerationTracking feature gate must be enabled to use this field. # noqa: E501 + + :param observed_generation: The observed_generation of this V1PodStatus. # noqa: E501 + :type: int + """ + + self._observed_generation = observed_generation + + @property + def phase(self): + """Gets the phase of this V1PodStatus. # noqa: E501 + + The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase # noqa: E501 + + :return: The phase of this V1PodStatus. # noqa: E501 + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this V1PodStatus. + + The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase # noqa: E501 + + :param phase: The phase of this V1PodStatus. # noqa: E501 + :type: str + """ + + self._phase = phase + + @property + def pod_ip(self): + """Gets the pod_ip of this V1PodStatus. # noqa: E501 + + podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. # noqa: E501 + + :return: The pod_ip of this V1PodStatus. # noqa: E501 + :rtype: str + """ + return self._pod_ip + + @pod_ip.setter + def pod_ip(self, pod_ip): + """Sets the pod_ip of this V1PodStatus. + + podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. # noqa: E501 + + :param pod_ip: The pod_ip of this V1PodStatus. # noqa: E501 + :type: str + """ + + self._pod_ip = pod_ip + + @property + def pod_i_ps(self): + """Gets the pod_i_ps of this V1PodStatus. # noqa: E501 + + podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. # noqa: E501 + + :return: The pod_i_ps of this V1PodStatus. # noqa: E501 + :rtype: list[V1PodIP] + """ + return self._pod_i_ps + + @pod_i_ps.setter + def pod_i_ps(self, pod_i_ps): + """Sets the pod_i_ps of this V1PodStatus. + + podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. # noqa: E501 + + :param pod_i_ps: The pod_i_ps of this V1PodStatus. # noqa: E501 + :type: list[V1PodIP] + """ + + self._pod_i_ps = pod_i_ps + + @property + def qos_class(self): + """Gets the qos_class of this V1PodStatus. # noqa: E501 + + The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes # noqa: E501 + + :return: The qos_class of this V1PodStatus. # noqa: E501 + :rtype: str + """ + return self._qos_class + + @qos_class.setter + def qos_class(self, qos_class): + """Sets the qos_class of this V1PodStatus. + + The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes # noqa: E501 + + :param qos_class: The qos_class of this V1PodStatus. # noqa: E501 + :type: str + """ + + self._qos_class = qos_class + + @property + def reason(self): + """Gets the reason of this V1PodStatus. # noqa: E501 + + A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' # noqa: E501 + + :return: The reason of this V1PodStatus. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1PodStatus. + + A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' # noqa: E501 + + :param reason: The reason of this V1PodStatus. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def resize(self): + """Gets the resize of this V1PodStatus. # noqa: E501 + + Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources. # noqa: E501 + + :return: The resize of this V1PodStatus. # noqa: E501 + :rtype: str + """ + return self._resize + + @resize.setter + def resize(self, resize): + """Sets the resize of this V1PodStatus. + + Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources. # noqa: E501 + + :param resize: The resize of this V1PodStatus. # noqa: E501 + :type: str + """ + + self._resize = resize + + @property + def resource_claim_statuses(self): + """Gets the resource_claim_statuses of this V1PodStatus. # noqa: E501 + + Status of resource claims. # noqa: E501 + + :return: The resource_claim_statuses of this V1PodStatus. # noqa: E501 + :rtype: list[V1PodResourceClaimStatus] + """ + return self._resource_claim_statuses + + @resource_claim_statuses.setter + def resource_claim_statuses(self, resource_claim_statuses): + """Sets the resource_claim_statuses of this V1PodStatus. + + Status of resource claims. # noqa: E501 + + :param resource_claim_statuses: The resource_claim_statuses of this V1PodStatus. # noqa: E501 + :type: list[V1PodResourceClaimStatus] + """ + + self._resource_claim_statuses = resource_claim_statuses + + @property + def resources(self): + """Gets the resources of this V1PodStatus. # noqa: E501 + + + :return: The resources of this V1PodStatus. # noqa: E501 + :rtype: V1ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1PodStatus. + + + :param resources: The resources of this V1PodStatus. # noqa: E501 + :type: V1ResourceRequirements + """ + + self._resources = resources + + @property + def start_time(self): + """Gets the start_time of this V1PodStatus. # noqa: E501 + + RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. # noqa: E501 + + :return: The start_time of this V1PodStatus. # noqa: E501 + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this V1PodStatus. + + RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. # noqa: E501 + + :param start_time: The start_time of this V1PodStatus. # noqa: E501 + :type: datetime + """ + + self._start_time = start_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_template.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_template.py new file mode 100644 index 0000000000000000000000000000000000000000..0a9198750355da86a36a112f409bd6d9d40915cb --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_template.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodTemplate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'template': 'V1PodTemplateSpec' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'template': 'template' + } + + def __init__(self, api_version=None, kind=None, metadata=None, template=None, local_vars_configuration=None): # noqa: E501 + """V1PodTemplate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._template = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if template is not None: + self.template = template + + @property + def api_version(self): + """Gets the api_version of this V1PodTemplate. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PodTemplate. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PodTemplate. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PodTemplate. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1PodTemplate. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PodTemplate. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PodTemplate. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PodTemplate. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PodTemplate. # noqa: E501 + + + :return: The metadata of this V1PodTemplate. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PodTemplate. + + + :param metadata: The metadata of this V1PodTemplate. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def template(self): + """Gets the template of this V1PodTemplate. # noqa: E501 + + + :return: The template of this V1PodTemplate. # noqa: E501 + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this V1PodTemplate. + + + :param template: The template of this V1PodTemplate. # noqa: E501 + :type: V1PodTemplateSpec + """ + + self._template = template + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodTemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_template_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_template_list.py new file mode 100644 index 0000000000000000000000000000000000000000..b1a45cde413773220101f29110759abb482153ca --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_template_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodTemplateList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1PodTemplate]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1PodTemplateList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1PodTemplateList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PodTemplateList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PodTemplateList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PodTemplateList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1PodTemplateList. # noqa: E501 + + List of pod templates # noqa: E501 + + :return: The items of this V1PodTemplateList. # noqa: E501 + :rtype: list[V1PodTemplate] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1PodTemplateList. + + List of pod templates # noqa: E501 + + :param items: The items of this V1PodTemplateList. # noqa: E501 + :type: list[V1PodTemplate] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1PodTemplateList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PodTemplateList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PodTemplateList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PodTemplateList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PodTemplateList. # noqa: E501 + + + :return: The metadata of this V1PodTemplateList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PodTemplateList. + + + :param metadata: The metadata of this V1PodTemplateList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodTemplateList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodTemplateList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_template_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_template_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..30a9c3415219f9c30277fa1166912fb9d78917ee --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_pod_template_spec.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PodTemplateSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PodSpec' + } + + attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 + """V1PodTemplateSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._metadata = None + self._spec = None + self.discriminator = None + + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + + @property + def metadata(self): + """Gets the metadata of this V1PodTemplateSpec. # noqa: E501 + + + :return: The metadata of this V1PodTemplateSpec. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PodTemplateSpec. + + + :param metadata: The metadata of this V1PodTemplateSpec. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1PodTemplateSpec. # noqa: E501 + + + :return: The spec of this V1PodTemplateSpec. # noqa: E501 + :rtype: V1PodSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1PodTemplateSpec. + + + :param spec: The spec of this V1PodTemplateSpec. # noqa: E501 + :type: V1PodSpec + """ + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PodTemplateSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PodTemplateSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_policy_rule.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_policy_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..b3f9e59083f598524b2e383919a6093cb66d3695 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_policy_rule.py @@ -0,0 +1,235 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PolicyRule(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_groups': 'list[str]', + 'non_resource_ur_ls': 'list[str]', + 'resource_names': 'list[str]', + 'resources': 'list[str]', + 'verbs': 'list[str]' + } + + attribute_map = { + 'api_groups': 'apiGroups', + 'non_resource_ur_ls': 'nonResourceURLs', + 'resource_names': 'resourceNames', + 'resources': 'resources', + 'verbs': 'verbs' + } + + def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None, local_vars_configuration=None): # noqa: E501 + """V1PolicyRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_groups = None + self._non_resource_ur_ls = None + self._resource_names = None + self._resources = None + self._verbs = None + self.discriminator = None + + if api_groups is not None: + self.api_groups = api_groups + if non_resource_ur_ls is not None: + self.non_resource_ur_ls = non_resource_ur_ls + if resource_names is not None: + self.resource_names = resource_names + if resources is not None: + self.resources = resources + self.verbs = verbs + + @property + def api_groups(self): + """Gets the api_groups of this V1PolicyRule. # noqa: E501 + + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups. # noqa: E501 + + :return: The api_groups of this V1PolicyRule. # noqa: E501 + :rtype: list[str] + """ + return self._api_groups + + @api_groups.setter + def api_groups(self, api_groups): + """Sets the api_groups of this V1PolicyRule. + + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups. # noqa: E501 + + :param api_groups: The api_groups of this V1PolicyRule. # noqa: E501 + :type: list[str] + """ + + self._api_groups = api_groups + + @property + def non_resource_ur_ls(self): + """Gets the non_resource_ur_ls of this V1PolicyRule. # noqa: E501 + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. # noqa: E501 + + :return: The non_resource_ur_ls of this V1PolicyRule. # noqa: E501 + :rtype: list[str] + """ + return self._non_resource_ur_ls + + @non_resource_ur_ls.setter + def non_resource_ur_ls(self, non_resource_ur_ls): + """Sets the non_resource_ur_ls of this V1PolicyRule. + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. # noqa: E501 + + :param non_resource_ur_ls: The non_resource_ur_ls of this V1PolicyRule. # noqa: E501 + :type: list[str] + """ + + self._non_resource_ur_ls = non_resource_ur_ls + + @property + def resource_names(self): + """Gets the resource_names of this V1PolicyRule. # noqa: E501 + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501 + + :return: The resource_names of this V1PolicyRule. # noqa: E501 + :rtype: list[str] + """ + return self._resource_names + + @resource_names.setter + def resource_names(self, resource_names): + """Sets the resource_names of this V1PolicyRule. + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501 + + :param resource_names: The resource_names of this V1PolicyRule. # noqa: E501 + :type: list[str] + """ + + self._resource_names = resource_names + + @property + def resources(self): + """Gets the resources of this V1PolicyRule. # noqa: E501 + + Resources is a list of resources this rule applies to. '*' represents all resources. # noqa: E501 + + :return: The resources of this V1PolicyRule. # noqa: E501 + :rtype: list[str] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1PolicyRule. + + Resources is a list of resources this rule applies to. '*' represents all resources. # noqa: E501 + + :param resources: The resources of this V1PolicyRule. # noqa: E501 + :type: list[str] + """ + + self._resources = resources + + @property + def verbs(self): + """Gets the verbs of this V1PolicyRule. # noqa: E501 + + Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. # noqa: E501 + + :return: The verbs of this V1PolicyRule. # noqa: E501 + :rtype: list[str] + """ + return self._verbs + + @verbs.setter + def verbs(self, verbs): + """Sets the verbs of this V1PolicyRule. + + Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. # noqa: E501 + + :param verbs: The verbs of this V1PolicyRule. # noqa: E501 + :type: list[str] + """ + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 + + self._verbs = verbs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PolicyRule): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PolicyRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_policy_rules_with_subjects.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_policy_rules_with_subjects.py new file mode 100644 index 0000000000000000000000000000000000000000..dc40ed2323a148af979d42b74127a5842f890f83 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_policy_rules_with_subjects.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PolicyRulesWithSubjects(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'non_resource_rules': 'list[V1NonResourcePolicyRule]', + 'resource_rules': 'list[V1ResourcePolicyRule]', + 'subjects': 'list[FlowcontrolV1Subject]' + } + + attribute_map = { + 'non_resource_rules': 'nonResourceRules', + 'resource_rules': 'resourceRules', + 'subjects': 'subjects' + } + + def __init__(self, non_resource_rules=None, resource_rules=None, subjects=None, local_vars_configuration=None): # noqa: E501 + """V1PolicyRulesWithSubjects - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._non_resource_rules = None + self._resource_rules = None + self._subjects = None + self.discriminator = None + + if non_resource_rules is not None: + self.non_resource_rules = non_resource_rules + if resource_rules is not None: + self.resource_rules = resource_rules + self.subjects = subjects + + @property + def non_resource_rules(self): + """Gets the non_resource_rules of this V1PolicyRulesWithSubjects. # noqa: E501 + + `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. # noqa: E501 + + :return: The non_resource_rules of this V1PolicyRulesWithSubjects. # noqa: E501 + :rtype: list[V1NonResourcePolicyRule] + """ + return self._non_resource_rules + + @non_resource_rules.setter + def non_resource_rules(self, non_resource_rules): + """Sets the non_resource_rules of this V1PolicyRulesWithSubjects. + + `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. # noqa: E501 + + :param non_resource_rules: The non_resource_rules of this V1PolicyRulesWithSubjects. # noqa: E501 + :type: list[V1NonResourcePolicyRule] + """ + + self._non_resource_rules = non_resource_rules + + @property + def resource_rules(self): + """Gets the resource_rules of this V1PolicyRulesWithSubjects. # noqa: E501 + + `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. # noqa: E501 + + :return: The resource_rules of this V1PolicyRulesWithSubjects. # noqa: E501 + :rtype: list[V1ResourcePolicyRule] + """ + return self._resource_rules + + @resource_rules.setter + def resource_rules(self, resource_rules): + """Sets the resource_rules of this V1PolicyRulesWithSubjects. + + `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. # noqa: E501 + + :param resource_rules: The resource_rules of this V1PolicyRulesWithSubjects. # noqa: E501 + :type: list[V1ResourcePolicyRule] + """ + + self._resource_rules = resource_rules + + @property + def subjects(self): + """Gets the subjects of this V1PolicyRulesWithSubjects. # noqa: E501 + + subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. # noqa: E501 + + :return: The subjects of this V1PolicyRulesWithSubjects. # noqa: E501 + :rtype: list[FlowcontrolV1Subject] + """ + return self._subjects + + @subjects.setter + def subjects(self, subjects): + """Sets the subjects of this V1PolicyRulesWithSubjects. + + subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. # noqa: E501 + + :param subjects: The subjects of this V1PolicyRulesWithSubjects. # noqa: E501 + :type: list[FlowcontrolV1Subject] + """ + if self.local_vars_configuration.client_side_validation and subjects is None: # noqa: E501 + raise ValueError("Invalid value for `subjects`, must not be `None`") # noqa: E501 + + self._subjects = subjects + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PolicyRulesWithSubjects): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PolicyRulesWithSubjects): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_port_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_port_status.py new file mode 100644 index 0000000000000000000000000000000000000000..29abe2132ec80f845eca67f63822387b24fafe8b --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_port_status.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PortStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'error': 'str', + 'port': 'int', + 'protocol': 'str' + } + + attribute_map = { + 'error': 'error', + 'port': 'port', + 'protocol': 'protocol' + } + + def __init__(self, error=None, port=None, protocol=None, local_vars_configuration=None): # noqa: E501 + """V1PortStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._error = None + self._port = None + self._protocol = None + self.discriminator = None + + if error is not None: + self.error = error + self.port = port + self.protocol = protocol + + @property + def error(self): + """Gets the error of this V1PortStatus. # noqa: E501 + + Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase. # noqa: E501 + + :return: The error of this V1PortStatus. # noqa: E501 + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this V1PortStatus. + + Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase. # noqa: E501 + + :param error: The error of this V1PortStatus. # noqa: E501 + :type: str + """ + + self._error = error + + @property + def port(self): + """Gets the port of this V1PortStatus. # noqa: E501 + + Port is the port number of the service port of which status is recorded here # noqa: E501 + + :return: The port of this V1PortStatus. # noqa: E501 + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this V1PortStatus. + + Port is the port number of the service port of which status is recorded here # noqa: E501 + + :param port: The port of this V1PortStatus. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501 + raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 + + self._port = port + + @property + def protocol(self): + """Gets the protocol of this V1PortStatus. # noqa: E501 + + Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\" # noqa: E501 + + :return: The protocol of this V1PortStatus. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this V1PortStatus. + + Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\" # noqa: E501 + + :param protocol: The protocol of this V1PortStatus. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and protocol is None: # noqa: E501 + raise ValueError("Invalid value for `protocol`, must not be `None`") # noqa: E501 + + self._protocol = protocol + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PortStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PortStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_portworx_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_portworx_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..23c55c8fffe152e7c173479206e73febdfa62180 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_portworx_volume_source.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PortworxVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'fs_type': 'str', + 'read_only': 'bool', + 'volume_id': 'str' + } + + attribute_map = { + 'fs_type': 'fsType', + 'read_only': 'readOnly', + 'volume_id': 'volumeID' + } + + def __init__(self, fs_type=None, read_only=None, volume_id=None, local_vars_configuration=None): # noqa: E501 + """V1PortworxVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._fs_type = None + self._read_only = None + self._volume_id = None + self.discriminator = None + + if fs_type is not None: + self.fs_type = fs_type + if read_only is not None: + self.read_only = read_only + self.volume_id = volume_id + + @property + def fs_type(self): + """Gets the fs_type of this V1PortworxVolumeSource. # noqa: E501 + + fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :return: The fs_type of this V1PortworxVolumeSource. # noqa: E501 + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """Sets the fs_type of this V1PortworxVolumeSource. + + fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :param fs_type: The fs_type of this V1PortworxVolumeSource. # noqa: E501 + :type: str + """ + + self._fs_type = fs_type + + @property + def read_only(self): + """Gets the read_only of this V1PortworxVolumeSource. # noqa: E501 + + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :return: The read_only of this V1PortworxVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """Sets the read_only of this V1PortworxVolumeSource. + + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :param read_only: The read_only of this V1PortworxVolumeSource. # noqa: E501 + :type: bool + """ + + self._read_only = read_only + + @property + def volume_id(self): + """Gets the volume_id of this V1PortworxVolumeSource. # noqa: E501 + + volumeID uniquely identifies a Portworx volume # noqa: E501 + + :return: The volume_id of this V1PortworxVolumeSource. # noqa: E501 + :rtype: str + """ + return self._volume_id + + @volume_id.setter + def volume_id(self, volume_id): + """Sets the volume_id of this V1PortworxVolumeSource. + + volumeID uniquely identifies a Portworx volume # noqa: E501 + + :param volume_id: The volume_id of this V1PortworxVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and volume_id is None: # noqa: E501 + raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501 + + self._volume_id = volume_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PortworxVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PortworxVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_preconditions.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_preconditions.py new file mode 100644 index 0000000000000000000000000000000000000000..54f4ad6c40efbde970028a9d88ad58a573f2f27d --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_preconditions.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Preconditions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'resource_version': 'str', + 'uid': 'str' + } + + attribute_map = { + 'resource_version': 'resourceVersion', + 'uid': 'uid' + } + + def __init__(self, resource_version=None, uid=None, local_vars_configuration=None): # noqa: E501 + """V1Preconditions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._resource_version = None + self._uid = None + self.discriminator = None + + if resource_version is not None: + self.resource_version = resource_version + if uid is not None: + self.uid = uid + + @property + def resource_version(self): + """Gets the resource_version of this V1Preconditions. # noqa: E501 + + Specifies the target ResourceVersion # noqa: E501 + + :return: The resource_version of this V1Preconditions. # noqa: E501 + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """Sets the resource_version of this V1Preconditions. + + Specifies the target ResourceVersion # noqa: E501 + + :param resource_version: The resource_version of this V1Preconditions. # noqa: E501 + :type: str + """ + + self._resource_version = resource_version + + @property + def uid(self): + """Gets the uid of this V1Preconditions. # noqa: E501 + + Specifies the target UID. # noqa: E501 + + :return: The uid of this V1Preconditions. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this V1Preconditions. + + Specifies the target UID. # noqa: E501 + + :param uid: The uid of this V1Preconditions. # noqa: E501 + :type: str + """ + + self._uid = uid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Preconditions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Preconditions): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_preferred_scheduling_term.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_preferred_scheduling_term.py new file mode 100644 index 0000000000000000000000000000000000000000..300cc4d1bdb5d8111e7e1b590519206e036ff696 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_preferred_scheduling_term.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PreferredSchedulingTerm(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'preference': 'V1NodeSelectorTerm', + 'weight': 'int' + } + + attribute_map = { + 'preference': 'preference', + 'weight': 'weight' + } + + def __init__(self, preference=None, weight=None, local_vars_configuration=None): # noqa: E501 + """V1PreferredSchedulingTerm - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._preference = None + self._weight = None + self.discriminator = None + + self.preference = preference + self.weight = weight + + @property + def preference(self): + """Gets the preference of this V1PreferredSchedulingTerm. # noqa: E501 + + + :return: The preference of this V1PreferredSchedulingTerm. # noqa: E501 + :rtype: V1NodeSelectorTerm + """ + return self._preference + + @preference.setter + def preference(self, preference): + """Sets the preference of this V1PreferredSchedulingTerm. + + + :param preference: The preference of this V1PreferredSchedulingTerm. # noqa: E501 + :type: V1NodeSelectorTerm + """ + if self.local_vars_configuration.client_side_validation and preference is None: # noqa: E501 + raise ValueError("Invalid value for `preference`, must not be `None`") # noqa: E501 + + self._preference = preference + + @property + def weight(self): + """Gets the weight of this V1PreferredSchedulingTerm. # noqa: E501 + + Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. # noqa: E501 + + :return: The weight of this V1PreferredSchedulingTerm. # noqa: E501 + :rtype: int + """ + return self._weight + + @weight.setter + def weight(self, weight): + """Sets the weight of this V1PreferredSchedulingTerm. + + Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. # noqa: E501 + + :param weight: The weight of this V1PreferredSchedulingTerm. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and weight is None: # noqa: E501 + raise ValueError("Invalid value for `weight`, must not be `None`") # noqa: E501 + + self._weight = weight + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PreferredSchedulingTerm): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PreferredSchedulingTerm): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_class.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_class.py new file mode 100644 index 0000000000000000000000000000000000000000..1f95fdc18b0b511da0e271f1f111ad755f00dd11 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_class.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PriorityClass(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'description': 'str', + 'global_default': 'bool', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'preemption_policy': 'str', + 'value': 'int' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'description': 'description', + 'global_default': 'globalDefault', + 'kind': 'kind', + 'metadata': 'metadata', + 'preemption_policy': 'preemptionPolicy', + 'value': 'value' + } + + def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, local_vars_configuration=None): # noqa: E501 + """V1PriorityClass - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._description = None + self._global_default = None + self._kind = None + self._metadata = None + self._preemption_policy = None + self._value = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if description is not None: + self.description = description + if global_default is not None: + self.global_default = global_default + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if preemption_policy is not None: + self.preemption_policy = preemption_policy + self.value = value + + @property + def api_version(self): + """Gets the api_version of this V1PriorityClass. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PriorityClass. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PriorityClass. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PriorityClass. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def description(self): + """Gets the description of this V1PriorityClass. # noqa: E501 + + description is an arbitrary string that usually provides guidelines on when this priority class should be used. # noqa: E501 + + :return: The description of this V1PriorityClass. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this V1PriorityClass. + + description is an arbitrary string that usually provides guidelines on when this priority class should be used. # noqa: E501 + + :param description: The description of this V1PriorityClass. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def global_default(self): + """Gets the global_default of this V1PriorityClass. # noqa: E501 + + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. # noqa: E501 + + :return: The global_default of this V1PriorityClass. # noqa: E501 + :rtype: bool + """ + return self._global_default + + @global_default.setter + def global_default(self, global_default): + """Sets the global_default of this V1PriorityClass. + + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. # noqa: E501 + + :param global_default: The global_default of this V1PriorityClass. # noqa: E501 + :type: bool + """ + + self._global_default = global_default + + @property + def kind(self): + """Gets the kind of this V1PriorityClass. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PriorityClass. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PriorityClass. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PriorityClass. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PriorityClass. # noqa: E501 + + + :return: The metadata of this V1PriorityClass. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PriorityClass. + + + :param metadata: The metadata of this V1PriorityClass. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def preemption_policy(self): + """Gets the preemption_policy of this V1PriorityClass. # noqa: E501 + + preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501 + + :return: The preemption_policy of this V1PriorityClass. # noqa: E501 + :rtype: str + """ + return self._preemption_policy + + @preemption_policy.setter + def preemption_policy(self, preemption_policy): + """Sets the preemption_policy of this V1PriorityClass. + + preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501 + + :param preemption_policy: The preemption_policy of this V1PriorityClass. # noqa: E501 + :type: str + """ + + self._preemption_policy = preemption_policy + + @property + def value(self): + """Gets the value of this V1PriorityClass. # noqa: E501 + + value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. # noqa: E501 + + :return: The value of this V1PriorityClass. # noqa: E501 + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this V1PriorityClass. + + value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. # noqa: E501 + + :param value: The value of this V1PriorityClass. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PriorityClass): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PriorityClass): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_class_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_class_list.py new file mode 100644 index 0000000000000000000000000000000000000000..b7bfb7f82f6faccfa6b320640317715153461801 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_class_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PriorityClassList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1PriorityClass]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1PriorityClassList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1PriorityClassList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PriorityClassList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PriorityClassList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PriorityClassList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1PriorityClassList. # noqa: E501 + + items is the list of PriorityClasses # noqa: E501 + + :return: The items of this V1PriorityClassList. # noqa: E501 + :rtype: list[V1PriorityClass] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1PriorityClassList. + + items is the list of PriorityClasses # noqa: E501 + + :param items: The items of this V1PriorityClassList. # noqa: E501 + :type: list[V1PriorityClass] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1PriorityClassList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PriorityClassList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PriorityClassList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PriorityClassList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PriorityClassList. # noqa: E501 + + + :return: The metadata of this V1PriorityClassList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PriorityClassList. + + + :param metadata: The metadata of this V1PriorityClassList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PriorityClassList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PriorityClassList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration.py new file mode 100644 index 0000000000000000000000000000000000000000..1013457524ba3726ab4a77236212f866ff1b3b0f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PriorityLevelConfiguration(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1PriorityLevelConfigurationSpec', + 'status': 'V1PriorityLevelConfigurationStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1PriorityLevelConfiguration - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1PriorityLevelConfiguration. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PriorityLevelConfiguration. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PriorityLevelConfiguration. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PriorityLevelConfiguration. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1PriorityLevelConfiguration. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PriorityLevelConfiguration. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PriorityLevelConfiguration. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PriorityLevelConfiguration. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PriorityLevelConfiguration. # noqa: E501 + + + :return: The metadata of this V1PriorityLevelConfiguration. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PriorityLevelConfiguration. + + + :param metadata: The metadata of this V1PriorityLevelConfiguration. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1PriorityLevelConfiguration. # noqa: E501 + + + :return: The spec of this V1PriorityLevelConfiguration. # noqa: E501 + :rtype: V1PriorityLevelConfigurationSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1PriorityLevelConfiguration. + + + :param spec: The spec of this V1PriorityLevelConfiguration. # noqa: E501 + :type: V1PriorityLevelConfigurationSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1PriorityLevelConfiguration. # noqa: E501 + + + :return: The status of this V1PriorityLevelConfiguration. # noqa: E501 + :rtype: V1PriorityLevelConfigurationStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1PriorityLevelConfiguration. + + + :param status: The status of this V1PriorityLevelConfiguration. # noqa: E501 + :type: V1PriorityLevelConfigurationStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PriorityLevelConfiguration): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PriorityLevelConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_condition.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_condition.py new file mode 100644 index 0000000000000000000000000000000000000000..2af4f58230e702de8ec0b6e2051727005e046379 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_condition.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PriorityLevelConfigurationCondition(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1PriorityLevelConfigurationCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._last_transition_time = None + self._message = None + self._reason = None + self._status = None + self._type = None + self.discriminator = None + + if last_transition_time is not None: + self.last_transition_time = last_transition_time + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + if status is not None: + self.status = status + if type is not None: + self.type = type + + @property + def last_transition_time(self): + """Gets the last_transition_time of this V1PriorityLevelConfigurationCondition. # noqa: E501 + + `lastTransitionTime` is the last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1PriorityLevelConfigurationCondition. # noqa: E501 + :rtype: datetime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """Sets the last_transition_time of this V1PriorityLevelConfigurationCondition. + + `lastTransitionTime` is the last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1PriorityLevelConfigurationCondition. # noqa: E501 + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """Gets the message of this V1PriorityLevelConfigurationCondition. # noqa: E501 + + `message` is a human-readable message indicating details about last transition. # noqa: E501 + + :return: The message of this V1PriorityLevelConfigurationCondition. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1PriorityLevelConfigurationCondition. + + `message` is a human-readable message indicating details about last transition. # noqa: E501 + + :param message: The message of this V1PriorityLevelConfigurationCondition. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def reason(self): + """Gets the reason of this V1PriorityLevelConfigurationCondition. # noqa: E501 + + `reason` is a unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 + + :return: The reason of this V1PriorityLevelConfigurationCondition. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1PriorityLevelConfigurationCondition. + + `reason` is a unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 + + :param reason: The reason of this V1PriorityLevelConfigurationCondition. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def status(self): + """Gets the status of this V1PriorityLevelConfigurationCondition. # noqa: E501 + + `status` is the status of the condition. Can be True, False, Unknown. Required. # noqa: E501 + + :return: The status of this V1PriorityLevelConfigurationCondition. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1PriorityLevelConfigurationCondition. + + `status` is the status of the condition. Can be True, False, Unknown. Required. # noqa: E501 + + :param status: The status of this V1PriorityLevelConfigurationCondition. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def type(self): + """Gets the type of this V1PriorityLevelConfigurationCondition. # noqa: E501 + + `type` is the type of the condition. Required. # noqa: E501 + + :return: The type of this V1PriorityLevelConfigurationCondition. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1PriorityLevelConfigurationCondition. + + `type` is the type of the condition. Required. # noqa: E501 + + :param type: The type of this V1PriorityLevelConfigurationCondition. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PriorityLevelConfigurationCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PriorityLevelConfigurationCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_list.py new file mode 100644 index 0000000000000000000000000000000000000000..2a4b4cc3cfa4f8f5441292db9b3e910ae49e4a3c --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PriorityLevelConfigurationList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1PriorityLevelConfiguration]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1PriorityLevelConfigurationList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1PriorityLevelConfigurationList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PriorityLevelConfigurationList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1PriorityLevelConfigurationList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PriorityLevelConfigurationList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1PriorityLevelConfigurationList. # noqa: E501 + + `items` is a list of request-priorities. # noqa: E501 + + :return: The items of this V1PriorityLevelConfigurationList. # noqa: E501 + :rtype: list[V1PriorityLevelConfiguration] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1PriorityLevelConfigurationList. + + `items` is a list of request-priorities. # noqa: E501 + + :param items: The items of this V1PriorityLevelConfigurationList. # noqa: E501 + :type: list[V1PriorityLevelConfiguration] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1PriorityLevelConfigurationList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1PriorityLevelConfigurationList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1PriorityLevelConfigurationList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1PriorityLevelConfigurationList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1PriorityLevelConfigurationList. # noqa: E501 + + + :return: The metadata of this V1PriorityLevelConfigurationList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1PriorityLevelConfigurationList. + + + :param metadata: The metadata of this V1PriorityLevelConfigurationList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PriorityLevelConfigurationList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PriorityLevelConfigurationList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_reference.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_reference.py new file mode 100644 index 0000000000000000000000000000000000000000..3c7c419b831d1d7f950b0283318adbbd7c6ac112 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_reference.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PriorityLevelConfigurationReference(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None, local_vars_configuration=None): # noqa: E501 + """V1PriorityLevelConfigurationReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self.discriminator = None + + self.name = name + + @property + def name(self): + """Gets the name of this V1PriorityLevelConfigurationReference. # noqa: E501 + + `name` is the name of the priority level configuration being referenced Required. # noqa: E501 + + :return: The name of this V1PriorityLevelConfigurationReference. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1PriorityLevelConfigurationReference. + + `name` is the name of the priority level configuration being referenced Required. # noqa: E501 + + :param name: The name of this V1PriorityLevelConfigurationReference. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PriorityLevelConfigurationReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PriorityLevelConfigurationReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..d856766780d6ff773ebad9d5777a958953acb29f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_spec.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PriorityLevelConfigurationSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'exempt': 'V1ExemptPriorityLevelConfiguration', + 'limited': 'V1LimitedPriorityLevelConfiguration', + 'type': 'str' + } + + attribute_map = { + 'exempt': 'exempt', + 'limited': 'limited', + 'type': 'type' + } + + def __init__(self, exempt=None, limited=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1PriorityLevelConfigurationSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._exempt = None + self._limited = None + self._type = None + self.discriminator = None + + if exempt is not None: + self.exempt = exempt + if limited is not None: + self.limited = limited + self.type = type + + @property + def exempt(self): + """Gets the exempt of this V1PriorityLevelConfigurationSpec. # noqa: E501 + + + :return: The exempt of this V1PriorityLevelConfigurationSpec. # noqa: E501 + :rtype: V1ExemptPriorityLevelConfiguration + """ + return self._exempt + + @exempt.setter + def exempt(self, exempt): + """Sets the exempt of this V1PriorityLevelConfigurationSpec. + + + :param exempt: The exempt of this V1PriorityLevelConfigurationSpec. # noqa: E501 + :type: V1ExemptPriorityLevelConfiguration + """ + + self._exempt = exempt + + @property + def limited(self): + """Gets the limited of this V1PriorityLevelConfigurationSpec. # noqa: E501 + + + :return: The limited of this V1PriorityLevelConfigurationSpec. # noqa: E501 + :rtype: V1LimitedPriorityLevelConfiguration + """ + return self._limited + + @limited.setter + def limited(self, limited): + """Sets the limited of this V1PriorityLevelConfigurationSpec. + + + :param limited: The limited of this V1PriorityLevelConfigurationSpec. # noqa: E501 + :type: V1LimitedPriorityLevelConfiguration + """ + + self._limited = limited + + @property + def type(self): + """Gets the type of this V1PriorityLevelConfigurationSpec. # noqa: E501 + + `type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. # noqa: E501 + + :return: The type of this V1PriorityLevelConfigurationSpec. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1PriorityLevelConfigurationSpec. + + `type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. # noqa: E501 + + :param type: The type of this V1PriorityLevelConfigurationSpec. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PriorityLevelConfigurationSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PriorityLevelConfigurationSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_status.py new file mode 100644 index 0000000000000000000000000000000000000000..bc4c2260cce464dc438136d2713ae735da34a3b7 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_priority_level_configuration_status.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1PriorityLevelConfigurationStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'conditions': 'list[V1PriorityLevelConfigurationCondition]' + } + + attribute_map = { + 'conditions': 'conditions' + } + + def __init__(self, conditions=None, local_vars_configuration=None): # noqa: E501 + """V1PriorityLevelConfigurationStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._conditions = None + self.discriminator = None + + if conditions is not None: + self.conditions = conditions + + @property + def conditions(self): + """Gets the conditions of this V1PriorityLevelConfigurationStatus. # noqa: E501 + + `conditions` is the current state of \"request-priority\". # noqa: E501 + + :return: The conditions of this V1PriorityLevelConfigurationStatus. # noqa: E501 + :rtype: list[V1PriorityLevelConfigurationCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this V1PriorityLevelConfigurationStatus. + + `conditions` is the current state of \"request-priority\". # noqa: E501 + + :param conditions: The conditions of this V1PriorityLevelConfigurationStatus. # noqa: E501 + :type: list[V1PriorityLevelConfigurationCondition] + """ + + self._conditions = conditions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1PriorityLevelConfigurationStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1PriorityLevelConfigurationStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_probe.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_probe.py new file mode 100644 index 0000000000000000000000000000000000000000..e9a0982e95d854ee4074589084ab916d8798dfe1 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_probe.py @@ -0,0 +1,366 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Probe(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + '_exec': 'V1ExecAction', + 'failure_threshold': 'int', + 'grpc': 'V1GRPCAction', + 'http_get': 'V1HTTPGetAction', + 'initial_delay_seconds': 'int', + 'period_seconds': 'int', + 'success_threshold': 'int', + 'tcp_socket': 'V1TCPSocketAction', + 'termination_grace_period_seconds': 'int', + 'timeout_seconds': 'int' + } + + attribute_map = { + '_exec': 'exec', + 'failure_threshold': 'failureThreshold', + 'grpc': 'grpc', + 'http_get': 'httpGet', + 'initial_delay_seconds': 'initialDelaySeconds', + 'period_seconds': 'periodSeconds', + 'success_threshold': 'successThreshold', + 'tcp_socket': 'tcpSocket', + 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', + 'timeout_seconds': 'timeoutSeconds' + } + + def __init__(self, _exec=None, failure_threshold=None, grpc=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, termination_grace_period_seconds=None, timeout_seconds=None, local_vars_configuration=None): # noqa: E501 + """V1Probe - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self.__exec = None + self._failure_threshold = None + self._grpc = None + self._http_get = None + self._initial_delay_seconds = None + self._period_seconds = None + self._success_threshold = None + self._tcp_socket = None + self._termination_grace_period_seconds = None + self._timeout_seconds = None + self.discriminator = None + + if _exec is not None: + self._exec = _exec + if failure_threshold is not None: + self.failure_threshold = failure_threshold + if grpc is not None: + self.grpc = grpc + if http_get is not None: + self.http_get = http_get + if initial_delay_seconds is not None: + self.initial_delay_seconds = initial_delay_seconds + if period_seconds is not None: + self.period_seconds = period_seconds + if success_threshold is not None: + self.success_threshold = success_threshold + if tcp_socket is not None: + self.tcp_socket = tcp_socket + if termination_grace_period_seconds is not None: + self.termination_grace_period_seconds = termination_grace_period_seconds + if timeout_seconds is not None: + self.timeout_seconds = timeout_seconds + + @property + def _exec(self): + """Gets the _exec of this V1Probe. # noqa: E501 + + + :return: The _exec of this V1Probe. # noqa: E501 + :rtype: V1ExecAction + """ + return self.__exec + + @_exec.setter + def _exec(self, _exec): + """Sets the _exec of this V1Probe. + + + :param _exec: The _exec of this V1Probe. # noqa: E501 + :type: V1ExecAction + """ + + self.__exec = _exec + + @property + def failure_threshold(self): + """Gets the failure_threshold of this V1Probe. # noqa: E501 + + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. # noqa: E501 + + :return: The failure_threshold of this V1Probe. # noqa: E501 + :rtype: int + """ + return self._failure_threshold + + @failure_threshold.setter + def failure_threshold(self, failure_threshold): + """Sets the failure_threshold of this V1Probe. + + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. # noqa: E501 + + :param failure_threshold: The failure_threshold of this V1Probe. # noqa: E501 + :type: int + """ + + self._failure_threshold = failure_threshold + + @property + def grpc(self): + """Gets the grpc of this V1Probe. # noqa: E501 + + + :return: The grpc of this V1Probe. # noqa: E501 + :rtype: V1GRPCAction + """ + return self._grpc + + @grpc.setter + def grpc(self, grpc): + """Sets the grpc of this V1Probe. + + + :param grpc: The grpc of this V1Probe. # noqa: E501 + :type: V1GRPCAction + """ + + self._grpc = grpc + + @property + def http_get(self): + """Gets the http_get of this V1Probe. # noqa: E501 + + + :return: The http_get of this V1Probe. # noqa: E501 + :rtype: V1HTTPGetAction + """ + return self._http_get + + @http_get.setter + def http_get(self, http_get): + """Sets the http_get of this V1Probe. + + + :param http_get: The http_get of this V1Probe. # noqa: E501 + :type: V1HTTPGetAction + """ + + self._http_get = http_get + + @property + def initial_delay_seconds(self): + """Gets the initial_delay_seconds of this V1Probe. # noqa: E501 + + Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes # noqa: E501 + + :return: The initial_delay_seconds of this V1Probe. # noqa: E501 + :rtype: int + """ + return self._initial_delay_seconds + + @initial_delay_seconds.setter + def initial_delay_seconds(self, initial_delay_seconds): + """Sets the initial_delay_seconds of this V1Probe. + + Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes # noqa: E501 + + :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. # noqa: E501 + :type: int + """ + + self._initial_delay_seconds = initial_delay_seconds + + @property + def period_seconds(self): + """Gets the period_seconds of this V1Probe. # noqa: E501 + + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. # noqa: E501 + + :return: The period_seconds of this V1Probe. # noqa: E501 + :rtype: int + """ + return self._period_seconds + + @period_seconds.setter + def period_seconds(self, period_seconds): + """Sets the period_seconds of this V1Probe. + + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. # noqa: E501 + + :param period_seconds: The period_seconds of this V1Probe. # noqa: E501 + :type: int + """ + + self._period_seconds = period_seconds + + @property + def success_threshold(self): + """Gets the success_threshold of this V1Probe. # noqa: E501 + + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. # noqa: E501 + + :return: The success_threshold of this V1Probe. # noqa: E501 + :rtype: int + """ + return self._success_threshold + + @success_threshold.setter + def success_threshold(self, success_threshold): + """Sets the success_threshold of this V1Probe. + + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. # noqa: E501 + + :param success_threshold: The success_threshold of this V1Probe. # noqa: E501 + :type: int + """ + + self._success_threshold = success_threshold + + @property + def tcp_socket(self): + """Gets the tcp_socket of this V1Probe. # noqa: E501 + + + :return: The tcp_socket of this V1Probe. # noqa: E501 + :rtype: V1TCPSocketAction + """ + return self._tcp_socket + + @tcp_socket.setter + def tcp_socket(self, tcp_socket): + """Sets the tcp_socket of this V1Probe. + + + :param tcp_socket: The tcp_socket of this V1Probe. # noqa: E501 + :type: V1TCPSocketAction + """ + + self._tcp_socket = tcp_socket + + @property + def termination_grace_period_seconds(self): + """Gets the termination_grace_period_seconds of this V1Probe. # noqa: E501 + + Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. # noqa: E501 + + :return: The termination_grace_period_seconds of this V1Probe. # noqa: E501 + :rtype: int + """ + return self._termination_grace_period_seconds + + @termination_grace_period_seconds.setter + def termination_grace_period_seconds(self, termination_grace_period_seconds): + """Sets the termination_grace_period_seconds of this V1Probe. + + Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. # noqa: E501 + + :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1Probe. # noqa: E501 + :type: int + """ + + self._termination_grace_period_seconds = termination_grace_period_seconds + + @property + def timeout_seconds(self): + """Gets the timeout_seconds of this V1Probe. # noqa: E501 + + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes # noqa: E501 + + :return: The timeout_seconds of this V1Probe. # noqa: E501 + :rtype: int + """ + return self._timeout_seconds + + @timeout_seconds.setter + def timeout_seconds(self, timeout_seconds): + """Sets the timeout_seconds of this V1Probe. + + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes # noqa: E501 + + :param timeout_seconds: The timeout_seconds of this V1Probe. # noqa: E501 + :type: int + """ + + self._timeout_seconds = timeout_seconds + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Probe): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Probe): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_projected_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_projected_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..7bbdaa9f1076c1147890cc57f674d661da6dc1b0 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_projected_volume_source.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ProjectedVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'default_mode': 'int', + 'sources': 'list[V1VolumeProjection]' + } + + attribute_map = { + 'default_mode': 'defaultMode', + 'sources': 'sources' + } + + def __init__(self, default_mode=None, sources=None, local_vars_configuration=None): # noqa: E501 + """V1ProjectedVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._default_mode = None + self._sources = None + self.discriminator = None + + if default_mode is not None: + self.default_mode = default_mode + if sources is not None: + self.sources = sources + + @property + def default_mode(self): + """Gets the default_mode of this V1ProjectedVolumeSource. # noqa: E501 + + defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 + + :return: The default_mode of this V1ProjectedVolumeSource. # noqa: E501 + :rtype: int + """ + return self._default_mode + + @default_mode.setter + def default_mode(self, default_mode): + """Sets the default_mode of this V1ProjectedVolumeSource. + + defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 + + :param default_mode: The default_mode of this V1ProjectedVolumeSource. # noqa: E501 + :type: int + """ + + self._default_mode = default_mode + + @property + def sources(self): + """Gets the sources of this V1ProjectedVolumeSource. # noqa: E501 + + sources is the list of volume projections. Each entry in this list handles one source. # noqa: E501 + + :return: The sources of this V1ProjectedVolumeSource. # noqa: E501 + :rtype: list[V1VolumeProjection] + """ + return self._sources + + @sources.setter + def sources(self, sources): + """Sets the sources of this V1ProjectedVolumeSource. + + sources is the list of volume projections. Each entry in this list handles one source. # noqa: E501 + + :param sources: The sources of this V1ProjectedVolumeSource. # noqa: E501 + :type: list[V1VolumeProjection] + """ + + self._sources = sources + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ProjectedVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ProjectedVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_queuing_configuration.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_queuing_configuration.py new file mode 100644 index 0000000000000000000000000000000000000000..9480847358bb7eb32fc96071f4a4f767331f7aeb --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_queuing_configuration.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1QueuingConfiguration(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'hand_size': 'int', + 'queue_length_limit': 'int', + 'queues': 'int' + } + + attribute_map = { + 'hand_size': 'handSize', + 'queue_length_limit': 'queueLengthLimit', + 'queues': 'queues' + } + + def __init__(self, hand_size=None, queue_length_limit=None, queues=None, local_vars_configuration=None): # noqa: E501 + """V1QueuingConfiguration - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._hand_size = None + self._queue_length_limit = None + self._queues = None + self.discriminator = None + + if hand_size is not None: + self.hand_size = hand_size + if queue_length_limit is not None: + self.queue_length_limit = queue_length_limit + if queues is not None: + self.queues = queues + + @property + def hand_size(self): + """Gets the hand_size of this V1QueuingConfiguration. # noqa: E501 + + `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. # noqa: E501 + + :return: The hand_size of this V1QueuingConfiguration. # noqa: E501 + :rtype: int + """ + return self._hand_size + + @hand_size.setter + def hand_size(self, hand_size): + """Sets the hand_size of this V1QueuingConfiguration. + + `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. # noqa: E501 + + :param hand_size: The hand_size of this V1QueuingConfiguration. # noqa: E501 + :type: int + """ + + self._hand_size = hand_size + + @property + def queue_length_limit(self): + """Gets the queue_length_limit of this V1QueuingConfiguration. # noqa: E501 + + `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. # noqa: E501 + + :return: The queue_length_limit of this V1QueuingConfiguration. # noqa: E501 + :rtype: int + """ + return self._queue_length_limit + + @queue_length_limit.setter + def queue_length_limit(self, queue_length_limit): + """Sets the queue_length_limit of this V1QueuingConfiguration. + + `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. # noqa: E501 + + :param queue_length_limit: The queue_length_limit of this V1QueuingConfiguration. # noqa: E501 + :type: int + """ + + self._queue_length_limit = queue_length_limit + + @property + def queues(self): + """Gets the queues of this V1QueuingConfiguration. # noqa: E501 + + `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. # noqa: E501 + + :return: The queues of this V1QueuingConfiguration. # noqa: E501 + :rtype: int + """ + return self._queues + + @queues.setter + def queues(self, queues): + """Sets the queues of this V1QueuingConfiguration. + + `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. # noqa: E501 + + :param queues: The queues of this V1QueuingConfiguration. # noqa: E501 + :type: int + """ + + self._queues = queues + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1QueuingConfiguration): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1QueuingConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_quobyte_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_quobyte_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..13bb369b11ef52c483618c680d27dadd129c7e33 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_quobyte_volume_source.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1QuobyteVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'group': 'str', + 'read_only': 'bool', + 'registry': 'str', + 'tenant': 'str', + 'user': 'str', + 'volume': 'str' + } + + attribute_map = { + 'group': 'group', + 'read_only': 'readOnly', + 'registry': 'registry', + 'tenant': 'tenant', + 'user': 'user', + 'volume': 'volume' + } + + def __init__(self, group=None, read_only=None, registry=None, tenant=None, user=None, volume=None, local_vars_configuration=None): # noqa: E501 + """V1QuobyteVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._group = None + self._read_only = None + self._registry = None + self._tenant = None + self._user = None + self._volume = None + self.discriminator = None + + if group is not None: + self.group = group + if read_only is not None: + self.read_only = read_only + self.registry = registry + if tenant is not None: + self.tenant = tenant + if user is not None: + self.user = user + self.volume = volume + + @property + def group(self): + """Gets the group of this V1QuobyteVolumeSource. # noqa: E501 + + group to map volume access to Default is no group # noqa: E501 + + :return: The group of this V1QuobyteVolumeSource. # noqa: E501 + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this V1QuobyteVolumeSource. + + group to map volume access to Default is no group # noqa: E501 + + :param group: The group of this V1QuobyteVolumeSource. # noqa: E501 + :type: str + """ + + self._group = group + + @property + def read_only(self): + """Gets the read_only of this V1QuobyteVolumeSource. # noqa: E501 + + readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. # noqa: E501 + + :return: The read_only of this V1QuobyteVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """Sets the read_only of this V1QuobyteVolumeSource. + + readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. # noqa: E501 + + :param read_only: The read_only of this V1QuobyteVolumeSource. # noqa: E501 + :type: bool + """ + + self._read_only = read_only + + @property + def registry(self): + """Gets the registry of this V1QuobyteVolumeSource. # noqa: E501 + + registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes # noqa: E501 + + :return: The registry of this V1QuobyteVolumeSource. # noqa: E501 + :rtype: str + """ + return self._registry + + @registry.setter + def registry(self, registry): + """Sets the registry of this V1QuobyteVolumeSource. + + registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes # noqa: E501 + + :param registry: The registry of this V1QuobyteVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and registry is None: # noqa: E501 + raise ValueError("Invalid value for `registry`, must not be `None`") # noqa: E501 + + self._registry = registry + + @property + def tenant(self): + """Gets the tenant of this V1QuobyteVolumeSource. # noqa: E501 + + tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin # noqa: E501 + + :return: The tenant of this V1QuobyteVolumeSource. # noqa: E501 + :rtype: str + """ + return self._tenant + + @tenant.setter + def tenant(self, tenant): + """Sets the tenant of this V1QuobyteVolumeSource. + + tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin # noqa: E501 + + :param tenant: The tenant of this V1QuobyteVolumeSource. # noqa: E501 + :type: str + """ + + self._tenant = tenant + + @property + def user(self): + """Gets the user of this V1QuobyteVolumeSource. # noqa: E501 + + user to map volume access to Defaults to serivceaccount user # noqa: E501 + + :return: The user of this V1QuobyteVolumeSource. # noqa: E501 + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this V1QuobyteVolumeSource. + + user to map volume access to Defaults to serivceaccount user # noqa: E501 + + :param user: The user of this V1QuobyteVolumeSource. # noqa: E501 + :type: str + """ + + self._user = user + + @property + def volume(self): + """Gets the volume of this V1QuobyteVolumeSource. # noqa: E501 + + volume is a string that references an already created Quobyte volume by name. # noqa: E501 + + :return: The volume of this V1QuobyteVolumeSource. # noqa: E501 + :rtype: str + """ + return self._volume + + @volume.setter + def volume(self, volume): + """Sets the volume of this V1QuobyteVolumeSource. + + volume is a string that references an already created Quobyte volume by name. # noqa: E501 + + :param volume: The volume of this V1QuobyteVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and volume is None: # noqa: E501 + raise ValueError("Invalid value for `volume`, must not be `None`") # noqa: E501 + + self._volume = volume + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1QuobyteVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1QuobyteVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rbd_persistent_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rbd_persistent_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..9c46f1c7a4d1f83f9a7bcca3b162e759af99dff1 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rbd_persistent_volume_source.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RBDPersistentVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'fs_type': 'str', + 'image': 'str', + 'keyring': 'str', + 'monitors': 'list[str]', + 'pool': 'str', + 'read_only': 'bool', + 'secret_ref': 'V1SecretReference', + 'user': 'str' + } + + attribute_map = { + 'fs_type': 'fsType', + 'image': 'image', + 'keyring': 'keyring', + 'monitors': 'monitors', + 'pool': 'pool', + 'read_only': 'readOnly', + 'secret_ref': 'secretRef', + 'user': 'user' + } + + def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=None, read_only=None, secret_ref=None, user=None, local_vars_configuration=None): # noqa: E501 + """V1RBDPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._fs_type = None + self._image = None + self._keyring = None + self._monitors = None + self._pool = None + self._read_only = None + self._secret_ref = None + self._user = None + self.discriminator = None + + if fs_type is not None: + self.fs_type = fs_type + self.image = image + if keyring is not None: + self.keyring = keyring + self.monitors = monitors + if pool is not None: + self.pool = pool + if read_only is not None: + self.read_only = read_only + if secret_ref is not None: + self.secret_ref = secret_ref + if user is not None: + self.user = user + + @property + def fs_type(self): + """Gets the fs_type of this V1RBDPersistentVolumeSource. # noqa: E501 + + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd # noqa: E501 + + :return: The fs_type of this V1RBDPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """Sets the fs_type of this V1RBDPersistentVolumeSource. + + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd # noqa: E501 + + :param fs_type: The fs_type of this V1RBDPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._fs_type = fs_type + + @property + def image(self): + """Gets the image of this V1RBDPersistentVolumeSource. # noqa: E501 + + image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The image of this V1RBDPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this V1RBDPersistentVolumeSource. + + image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param image: The image of this V1RBDPersistentVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + @property + def keyring(self): + """Gets the keyring of this V1RBDPersistentVolumeSource. # noqa: E501 + + keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The keyring of this V1RBDPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._keyring + + @keyring.setter + def keyring(self, keyring): + """Sets the keyring of this V1RBDPersistentVolumeSource. + + keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param keyring: The keyring of this V1RBDPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._keyring = keyring + + @property + def monitors(self): + """Gets the monitors of this V1RBDPersistentVolumeSource. # noqa: E501 + + monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The monitors of this V1RBDPersistentVolumeSource. # noqa: E501 + :rtype: list[str] + """ + return self._monitors + + @monitors.setter + def monitors(self, monitors): + """Sets the monitors of this V1RBDPersistentVolumeSource. + + monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param monitors: The monitors of this V1RBDPersistentVolumeSource. # noqa: E501 + :type: list[str] + """ + if self.local_vars_configuration.client_side_validation and monitors is None: # noqa: E501 + raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501 + + self._monitors = monitors + + @property + def pool(self): + """Gets the pool of this V1RBDPersistentVolumeSource. # noqa: E501 + + pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The pool of this V1RBDPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._pool + + @pool.setter + def pool(self, pool): + """Sets the pool of this V1RBDPersistentVolumeSource. + + pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param pool: The pool of this V1RBDPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._pool = pool + + @property + def read_only(self): + """Gets the read_only of this V1RBDPersistentVolumeSource. # noqa: E501 + + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The read_only of this V1RBDPersistentVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """Sets the read_only of this V1RBDPersistentVolumeSource. + + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param read_only: The read_only of this V1RBDPersistentVolumeSource. # noqa: E501 + :type: bool + """ + + self._read_only = read_only + + @property + def secret_ref(self): + """Gets the secret_ref of this V1RBDPersistentVolumeSource. # noqa: E501 + + + :return: The secret_ref of this V1RBDPersistentVolumeSource. # noqa: E501 + :rtype: V1SecretReference + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """Sets the secret_ref of this V1RBDPersistentVolumeSource. + + + :param secret_ref: The secret_ref of this V1RBDPersistentVolumeSource. # noqa: E501 + :type: V1SecretReference + """ + + self._secret_ref = secret_ref + + @property + def user(self): + """Gets the user of this V1RBDPersistentVolumeSource. # noqa: E501 + + user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The user of this V1RBDPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this V1RBDPersistentVolumeSource. + + user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param user: The user of this V1RBDPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._user = user + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RBDPersistentVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RBDPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rbd_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rbd_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..64cf1b323e8b51d3a06fb036be508595fe49fdb8 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rbd_volume_source.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RBDVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'fs_type': 'str', + 'image': 'str', + 'keyring': 'str', + 'monitors': 'list[str]', + 'pool': 'str', + 'read_only': 'bool', + 'secret_ref': 'V1LocalObjectReference', + 'user': 'str' + } + + attribute_map = { + 'fs_type': 'fsType', + 'image': 'image', + 'keyring': 'keyring', + 'monitors': 'monitors', + 'pool': 'pool', + 'read_only': 'readOnly', + 'secret_ref': 'secretRef', + 'user': 'user' + } + + def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=None, read_only=None, secret_ref=None, user=None, local_vars_configuration=None): # noqa: E501 + """V1RBDVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._fs_type = None + self._image = None + self._keyring = None + self._monitors = None + self._pool = None + self._read_only = None + self._secret_ref = None + self._user = None + self.discriminator = None + + if fs_type is not None: + self.fs_type = fs_type + self.image = image + if keyring is not None: + self.keyring = keyring + self.monitors = monitors + if pool is not None: + self.pool = pool + if read_only is not None: + self.read_only = read_only + if secret_ref is not None: + self.secret_ref = secret_ref + if user is not None: + self.user = user + + @property + def fs_type(self): + """Gets the fs_type of this V1RBDVolumeSource. # noqa: E501 + + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd # noqa: E501 + + :return: The fs_type of this V1RBDVolumeSource. # noqa: E501 + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """Sets the fs_type of this V1RBDVolumeSource. + + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd # noqa: E501 + + :param fs_type: The fs_type of this V1RBDVolumeSource. # noqa: E501 + :type: str + """ + + self._fs_type = fs_type + + @property + def image(self): + """Gets the image of this V1RBDVolumeSource. # noqa: E501 + + image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The image of this V1RBDVolumeSource. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this V1RBDVolumeSource. + + image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param image: The image of this V1RBDVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 + + self._image = image + + @property + def keyring(self): + """Gets the keyring of this V1RBDVolumeSource. # noqa: E501 + + keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The keyring of this V1RBDVolumeSource. # noqa: E501 + :rtype: str + """ + return self._keyring + + @keyring.setter + def keyring(self, keyring): + """Sets the keyring of this V1RBDVolumeSource. + + keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param keyring: The keyring of this V1RBDVolumeSource. # noqa: E501 + :type: str + """ + + self._keyring = keyring + + @property + def monitors(self): + """Gets the monitors of this V1RBDVolumeSource. # noqa: E501 + + monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The monitors of this V1RBDVolumeSource. # noqa: E501 + :rtype: list[str] + """ + return self._monitors + + @monitors.setter + def monitors(self, monitors): + """Sets the monitors of this V1RBDVolumeSource. + + monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param monitors: The monitors of this V1RBDVolumeSource. # noqa: E501 + :type: list[str] + """ + if self.local_vars_configuration.client_side_validation and monitors is None: # noqa: E501 + raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501 + + self._monitors = monitors + + @property + def pool(self): + """Gets the pool of this V1RBDVolumeSource. # noqa: E501 + + pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The pool of this V1RBDVolumeSource. # noqa: E501 + :rtype: str + """ + return self._pool + + @pool.setter + def pool(self, pool): + """Sets the pool of this V1RBDVolumeSource. + + pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param pool: The pool of this V1RBDVolumeSource. # noqa: E501 + :type: str + """ + + self._pool = pool + + @property + def read_only(self): + """Gets the read_only of this V1RBDVolumeSource. # noqa: E501 + + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The read_only of this V1RBDVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """Sets the read_only of this V1RBDVolumeSource. + + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param read_only: The read_only of this V1RBDVolumeSource. # noqa: E501 + :type: bool + """ + + self._read_only = read_only + + @property + def secret_ref(self): + """Gets the secret_ref of this V1RBDVolumeSource. # noqa: E501 + + + :return: The secret_ref of this V1RBDVolumeSource. # noqa: E501 + :rtype: V1LocalObjectReference + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """Sets the secret_ref of this V1RBDVolumeSource. + + + :param secret_ref: The secret_ref of this V1RBDVolumeSource. # noqa: E501 + :type: V1LocalObjectReference + """ + + self._secret_ref = secret_ref + + @property + def user(self): + """Gets the user of this V1RBDVolumeSource. # noqa: E501 + + user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The user of this V1RBDVolumeSource. # noqa: E501 + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this V1RBDVolumeSource. + + user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param user: The user of this V1RBDVolumeSource. # noqa: E501 + :type: str + """ + + self._user = user + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RBDVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RBDVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set.py new file mode 100644 index 0000000000000000000000000000000000000000..43e527da8c7a18ea3c34d8067aed8f3a4e0c1d1f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ReplicaSet(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ReplicaSetSpec', + 'status': 'V1ReplicaSetStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1ReplicaSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1ReplicaSet. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ReplicaSet. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ReplicaSet. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ReplicaSet. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1ReplicaSet. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ReplicaSet. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ReplicaSet. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ReplicaSet. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ReplicaSet. # noqa: E501 + + + :return: The metadata of this V1ReplicaSet. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ReplicaSet. + + + :param metadata: The metadata of this V1ReplicaSet. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1ReplicaSet. # noqa: E501 + + + :return: The spec of this V1ReplicaSet. # noqa: E501 + :rtype: V1ReplicaSetSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1ReplicaSet. + + + :param spec: The spec of this V1ReplicaSet. # noqa: E501 + :type: V1ReplicaSetSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1ReplicaSet. # noqa: E501 + + + :return: The status of this V1ReplicaSet. # noqa: E501 + :rtype: V1ReplicaSetStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1ReplicaSet. + + + :param status: The status of this V1ReplicaSet. # noqa: E501 + :type: V1ReplicaSetStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReplicaSet): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ReplicaSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_condition.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_condition.py new file mode 100644 index 0000000000000000000000000000000000000000..994bccbd5fbab127416d724feba16bdfb22fc2fe --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_condition.py @@ -0,0 +1,236 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ReplicaSetCondition(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1ReplicaSetCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._last_transition_time = None + self._message = None + self._reason = None + self._status = None + self._type = None + self.discriminator = None + + if last_transition_time is not None: + self.last_transition_time = last_transition_time + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def last_transition_time(self): + """Gets the last_transition_time of this V1ReplicaSetCondition. # noqa: E501 + + The last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1ReplicaSetCondition. # noqa: E501 + :rtype: datetime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """Sets the last_transition_time of this V1ReplicaSetCondition. + + The last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1ReplicaSetCondition. # noqa: E501 + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """Gets the message of this V1ReplicaSetCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 + + :return: The message of this V1ReplicaSetCondition. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1ReplicaSetCondition. + + A human readable message indicating details about the transition. # noqa: E501 + + :param message: The message of this V1ReplicaSetCondition. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def reason(self): + """Gets the reason of this V1ReplicaSetCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 + + :return: The reason of this V1ReplicaSetCondition. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1ReplicaSetCondition. + + The reason for the condition's last transition. # noqa: E501 + + :param reason: The reason of this V1ReplicaSetCondition. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def status(self): + """Gets the status of this V1ReplicaSetCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :return: The status of this V1ReplicaSetCondition. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1ReplicaSetCondition. + + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1ReplicaSetCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def type(self): + """Gets the type of this V1ReplicaSetCondition. # noqa: E501 + + Type of replica set condition. # noqa: E501 + + :return: The type of this V1ReplicaSetCondition. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1ReplicaSetCondition. + + Type of replica set condition. # noqa: E501 + + :param type: The type of this V1ReplicaSetCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReplicaSetCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ReplicaSetCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_list.py new file mode 100644 index 0000000000000000000000000000000000000000..bfcf77e3838b78acf3ba3d27d0af2957b8cac692 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ReplicaSetList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1ReplicaSet]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1ReplicaSetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1ReplicaSetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ReplicaSetList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ReplicaSetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ReplicaSetList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1ReplicaSetList. # noqa: E501 + + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset # noqa: E501 + + :return: The items of this V1ReplicaSetList. # noqa: E501 + :rtype: list[V1ReplicaSet] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1ReplicaSetList. + + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset # noqa: E501 + + :param items: The items of this V1ReplicaSetList. # noqa: E501 + :type: list[V1ReplicaSet] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1ReplicaSetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ReplicaSetList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ReplicaSetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ReplicaSetList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ReplicaSetList. # noqa: E501 + + + :return: The metadata of this V1ReplicaSetList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ReplicaSetList. + + + :param metadata: The metadata of this V1ReplicaSetList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReplicaSetList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ReplicaSetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..4627e096f780850f475fb4c1ee1d702fd81a8873 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_spec.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ReplicaSetSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'min_ready_seconds': 'int', + 'replicas': 'int', + 'selector': 'V1LabelSelector', + 'template': 'V1PodTemplateSpec' + } + + attribute_map = { + 'min_ready_seconds': 'minReadySeconds', + 'replicas': 'replicas', + 'selector': 'selector', + 'template': 'template' + } + + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None, local_vars_configuration=None): # noqa: E501 + """V1ReplicaSetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._min_ready_seconds = None + self._replicas = None + self._selector = None + self._template = None + self.discriminator = None + + if min_ready_seconds is not None: + self.min_ready_seconds = min_ready_seconds + if replicas is not None: + self.replicas = replicas + self.selector = selector + if template is not None: + self.template = template + + @property + def min_ready_seconds(self): + """Gets the min_ready_seconds of this V1ReplicaSetSpec. # noqa: E501 + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 + + :return: The min_ready_seconds of this V1ReplicaSetSpec. # noqa: E501 + :rtype: int + """ + return self._min_ready_seconds + + @min_ready_seconds.setter + def min_ready_seconds(self, min_ready_seconds): + """Sets the min_ready_seconds of this V1ReplicaSetSpec. + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 + + :param min_ready_seconds: The min_ready_seconds of this V1ReplicaSetSpec. # noqa: E501 + :type: int + """ + + self._min_ready_seconds = min_ready_seconds + + @property + def replicas(self): + """Gets the replicas of this V1ReplicaSetSpec. # noqa: E501 + + Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset # noqa: E501 + + :return: The replicas of this V1ReplicaSetSpec. # noqa: E501 + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """Sets the replicas of this V1ReplicaSetSpec. + + Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset # noqa: E501 + + :param replicas: The replicas of this V1ReplicaSetSpec. # noqa: E501 + :type: int + """ + + self._replicas = replicas + + @property + def selector(self): + """Gets the selector of this V1ReplicaSetSpec. # noqa: E501 + + + :return: The selector of this V1ReplicaSetSpec. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """Sets the selector of this V1ReplicaSetSpec. + + + :param selector: The selector of this V1ReplicaSetSpec. # noqa: E501 + :type: V1LabelSelector + """ + if self.local_vars_configuration.client_side_validation and selector is None: # noqa: E501 + raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 + + self._selector = selector + + @property + def template(self): + """Gets the template of this V1ReplicaSetSpec. # noqa: E501 + + + :return: The template of this V1ReplicaSetSpec. # noqa: E501 + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this V1ReplicaSetSpec. + + + :param template: The template of this V1ReplicaSetSpec. # noqa: E501 + :type: V1PodTemplateSpec + """ + + self._template = template + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReplicaSetSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ReplicaSetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_status.py new file mode 100644 index 0000000000000000000000000000000000000000..678d7f4e7e655a7af8d71512e37d238c01def2f3 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replica_set_status.py @@ -0,0 +1,291 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ReplicaSetStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'available_replicas': 'int', + 'conditions': 'list[V1ReplicaSetCondition]', + 'fully_labeled_replicas': 'int', + 'observed_generation': 'int', + 'ready_replicas': 'int', + 'replicas': 'int', + 'terminating_replicas': 'int' + } + + attribute_map = { + 'available_replicas': 'availableReplicas', + 'conditions': 'conditions', + 'fully_labeled_replicas': 'fullyLabeledReplicas', + 'observed_generation': 'observedGeneration', + 'ready_replicas': 'readyReplicas', + 'replicas': 'replicas', + 'terminating_replicas': 'terminatingReplicas' + } + + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None, terminating_replicas=None, local_vars_configuration=None): # noqa: E501 + """V1ReplicaSetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._available_replicas = None + self._conditions = None + self._fully_labeled_replicas = None + self._observed_generation = None + self._ready_replicas = None + self._replicas = None + self._terminating_replicas = None + self.discriminator = None + + if available_replicas is not None: + self.available_replicas = available_replicas + if conditions is not None: + self.conditions = conditions + if fully_labeled_replicas is not None: + self.fully_labeled_replicas = fully_labeled_replicas + if observed_generation is not None: + self.observed_generation = observed_generation + if ready_replicas is not None: + self.ready_replicas = ready_replicas + self.replicas = replicas + if terminating_replicas is not None: + self.terminating_replicas = terminating_replicas + + @property + def available_replicas(self): + """Gets the available_replicas of this V1ReplicaSetStatus. # noqa: E501 + + The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set. # noqa: E501 + + :return: The available_replicas of this V1ReplicaSetStatus. # noqa: E501 + :rtype: int + """ + return self._available_replicas + + @available_replicas.setter + def available_replicas(self, available_replicas): + """Sets the available_replicas of this V1ReplicaSetStatus. + + The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set. # noqa: E501 + + :param available_replicas: The available_replicas of this V1ReplicaSetStatus. # noqa: E501 + :type: int + """ + + self._available_replicas = available_replicas + + @property + def conditions(self): + """Gets the conditions of this V1ReplicaSetStatus. # noqa: E501 + + Represents the latest available observations of a replica set's current state. # noqa: E501 + + :return: The conditions of this V1ReplicaSetStatus. # noqa: E501 + :rtype: list[V1ReplicaSetCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this V1ReplicaSetStatus. + + Represents the latest available observations of a replica set's current state. # noqa: E501 + + :param conditions: The conditions of this V1ReplicaSetStatus. # noqa: E501 + :type: list[V1ReplicaSetCondition] + """ + + self._conditions = conditions + + @property + def fully_labeled_replicas(self): + """Gets the fully_labeled_replicas of this V1ReplicaSetStatus. # noqa: E501 + + The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset. # noqa: E501 + + :return: The fully_labeled_replicas of this V1ReplicaSetStatus. # noqa: E501 + :rtype: int + """ + return self._fully_labeled_replicas + + @fully_labeled_replicas.setter + def fully_labeled_replicas(self, fully_labeled_replicas): + """Sets the fully_labeled_replicas of this V1ReplicaSetStatus. + + The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset. # noqa: E501 + + :param fully_labeled_replicas: The fully_labeled_replicas of this V1ReplicaSetStatus. # noqa: E501 + :type: int + """ + + self._fully_labeled_replicas = fully_labeled_replicas + + @property + def observed_generation(self): + """Gets the observed_generation of this V1ReplicaSetStatus. # noqa: E501 + + ObservedGeneration reflects the generation of the most recently observed ReplicaSet. # noqa: E501 + + :return: The observed_generation of this V1ReplicaSetStatus. # noqa: E501 + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """Sets the observed_generation of this V1ReplicaSetStatus. + + ObservedGeneration reflects the generation of the most recently observed ReplicaSet. # noqa: E501 + + :param observed_generation: The observed_generation of this V1ReplicaSetStatus. # noqa: E501 + :type: int + """ + + self._observed_generation = observed_generation + + @property + def ready_replicas(self): + """Gets the ready_replicas of this V1ReplicaSetStatus. # noqa: E501 + + The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition. # noqa: E501 + + :return: The ready_replicas of this V1ReplicaSetStatus. # noqa: E501 + :rtype: int + """ + return self._ready_replicas + + @ready_replicas.setter + def ready_replicas(self, ready_replicas): + """Sets the ready_replicas of this V1ReplicaSetStatus. + + The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition. # noqa: E501 + + :param ready_replicas: The ready_replicas of this V1ReplicaSetStatus. # noqa: E501 + :type: int + """ + + self._ready_replicas = ready_replicas + + @property + def replicas(self): + """Gets the replicas of this V1ReplicaSetStatus. # noqa: E501 + + Replicas is the most recently observed number of non-terminating pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset # noqa: E501 + + :return: The replicas of this V1ReplicaSetStatus. # noqa: E501 + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """Sets the replicas of this V1ReplicaSetStatus. + + Replicas is the most recently observed number of non-terminating pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset # noqa: E501 + + :param replicas: The replicas of this V1ReplicaSetStatus. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 + + self._replicas = replicas + + @property + def terminating_replicas(self): + """Gets the terminating_replicas of this V1ReplicaSetStatus. # noqa: E501 + + The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default). # noqa: E501 + + :return: The terminating_replicas of this V1ReplicaSetStatus. # noqa: E501 + :rtype: int + """ + return self._terminating_replicas + + @terminating_replicas.setter + def terminating_replicas(self, terminating_replicas): + """Sets the terminating_replicas of this V1ReplicaSetStatus. + + The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default). # noqa: E501 + + :param terminating_replicas: The terminating_replicas of this V1ReplicaSetStatus. # noqa: E501 + :type: int + """ + + self._terminating_replicas = terminating_replicas + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReplicaSetStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ReplicaSetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller.py new file mode 100644 index 0000000000000000000000000000000000000000..31321fd27e81265d14ee72ae2ba107eb9fd42078 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ReplicationController(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ReplicationControllerSpec', + 'status': 'V1ReplicationControllerStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1ReplicationController - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1ReplicationController. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ReplicationController. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ReplicationController. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ReplicationController. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1ReplicationController. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ReplicationController. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ReplicationController. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ReplicationController. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ReplicationController. # noqa: E501 + + + :return: The metadata of this V1ReplicationController. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ReplicationController. + + + :param metadata: The metadata of this V1ReplicationController. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1ReplicationController. # noqa: E501 + + + :return: The spec of this V1ReplicationController. # noqa: E501 + :rtype: V1ReplicationControllerSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1ReplicationController. + + + :param spec: The spec of this V1ReplicationController. # noqa: E501 + :type: V1ReplicationControllerSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1ReplicationController. # noqa: E501 + + + :return: The status of this V1ReplicationController. # noqa: E501 + :rtype: V1ReplicationControllerStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1ReplicationController. + + + :param status: The status of this V1ReplicationController. # noqa: E501 + :type: V1ReplicationControllerStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReplicationController): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ReplicationController): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_condition.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_condition.py new file mode 100644 index 0000000000000000000000000000000000000000..f8e6ff10c47c28e84b089f2a2ee652f8bea2565b --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_condition.py @@ -0,0 +1,236 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ReplicationControllerCondition(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1ReplicationControllerCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._last_transition_time = None + self._message = None + self._reason = None + self._status = None + self._type = None + self.discriminator = None + + if last_transition_time is not None: + self.last_transition_time = last_transition_time + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def last_transition_time(self): + """Gets the last_transition_time of this V1ReplicationControllerCondition. # noqa: E501 + + The last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1ReplicationControllerCondition. # noqa: E501 + :rtype: datetime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """Sets the last_transition_time of this V1ReplicationControllerCondition. + + The last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1ReplicationControllerCondition. # noqa: E501 + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """Gets the message of this V1ReplicationControllerCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 + + :return: The message of this V1ReplicationControllerCondition. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1ReplicationControllerCondition. + + A human readable message indicating details about the transition. # noqa: E501 + + :param message: The message of this V1ReplicationControllerCondition. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def reason(self): + """Gets the reason of this V1ReplicationControllerCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 + + :return: The reason of this V1ReplicationControllerCondition. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1ReplicationControllerCondition. + + The reason for the condition's last transition. # noqa: E501 + + :param reason: The reason of this V1ReplicationControllerCondition. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def status(self): + """Gets the status of this V1ReplicationControllerCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :return: The status of this V1ReplicationControllerCondition. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1ReplicationControllerCondition. + + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1ReplicationControllerCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def type(self): + """Gets the type of this V1ReplicationControllerCondition. # noqa: E501 + + Type of replication controller condition. # noqa: E501 + + :return: The type of this V1ReplicationControllerCondition. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1ReplicationControllerCondition. + + Type of replication controller condition. # noqa: E501 + + :param type: The type of this V1ReplicationControllerCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReplicationControllerCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ReplicationControllerCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_list.py new file mode 100644 index 0000000000000000000000000000000000000000..2d4d01e0c0d68bb677e59d1713ac6063bc80d492 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ReplicationControllerList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1ReplicationController]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1ReplicationControllerList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1ReplicationControllerList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ReplicationControllerList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ReplicationControllerList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ReplicationControllerList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1ReplicationControllerList. # noqa: E501 + + List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller # noqa: E501 + + :return: The items of this V1ReplicationControllerList. # noqa: E501 + :rtype: list[V1ReplicationController] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1ReplicationControllerList. + + List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller # noqa: E501 + + :param items: The items of this V1ReplicationControllerList. # noqa: E501 + :type: list[V1ReplicationController] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1ReplicationControllerList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ReplicationControllerList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ReplicationControllerList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ReplicationControllerList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ReplicationControllerList. # noqa: E501 + + + :return: The metadata of this V1ReplicationControllerList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ReplicationControllerList. + + + :param metadata: The metadata of this V1ReplicationControllerList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReplicationControllerList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ReplicationControllerList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..e429888b8bc640992e36e0dbf8fb3aaf285bb535 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_spec.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ReplicationControllerSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'min_ready_seconds': 'int', + 'replicas': 'int', + 'selector': 'dict(str, str)', + 'template': 'V1PodTemplateSpec' + } + + attribute_map = { + 'min_ready_seconds': 'minReadySeconds', + 'replicas': 'replicas', + 'selector': 'selector', + 'template': 'template' + } + + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None, local_vars_configuration=None): # noqa: E501 + """V1ReplicationControllerSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._min_ready_seconds = None + self._replicas = None + self._selector = None + self._template = None + self.discriminator = None + + if min_ready_seconds is not None: + self.min_ready_seconds = min_ready_seconds + if replicas is not None: + self.replicas = replicas + if selector is not None: + self.selector = selector + if template is not None: + self.template = template + + @property + def min_ready_seconds(self): + """Gets the min_ready_seconds of this V1ReplicationControllerSpec. # noqa: E501 + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 + + :return: The min_ready_seconds of this V1ReplicationControllerSpec. # noqa: E501 + :rtype: int + """ + return self._min_ready_seconds + + @min_ready_seconds.setter + def min_ready_seconds(self, min_ready_seconds): + """Sets the min_ready_seconds of this V1ReplicationControllerSpec. + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 + + :param min_ready_seconds: The min_ready_seconds of this V1ReplicationControllerSpec. # noqa: E501 + :type: int + """ + + self._min_ready_seconds = min_ready_seconds + + @property + def replicas(self): + """Gets the replicas of this V1ReplicationControllerSpec. # noqa: E501 + + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller # noqa: E501 + + :return: The replicas of this V1ReplicationControllerSpec. # noqa: E501 + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """Sets the replicas of this V1ReplicationControllerSpec. + + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller # noqa: E501 + + :param replicas: The replicas of this V1ReplicationControllerSpec. # noqa: E501 + :type: int + """ + + self._replicas = replicas + + @property + def selector(self): + """Gets the selector of this V1ReplicationControllerSpec. # noqa: E501 + + Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors # noqa: E501 + + :return: The selector of this V1ReplicationControllerSpec. # noqa: E501 + :rtype: dict(str, str) + """ + return self._selector + + @selector.setter + def selector(self, selector): + """Sets the selector of this V1ReplicationControllerSpec. + + Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors # noqa: E501 + + :param selector: The selector of this V1ReplicationControllerSpec. # noqa: E501 + :type: dict(str, str) + """ + + self._selector = selector + + @property + def template(self): + """Gets the template of this V1ReplicationControllerSpec. # noqa: E501 + + + :return: The template of this V1ReplicationControllerSpec. # noqa: E501 + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this V1ReplicationControllerSpec. + + + :param template: The template of this V1ReplicationControllerSpec. # noqa: E501 + :type: V1PodTemplateSpec + """ + + self._template = template + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReplicationControllerSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ReplicationControllerSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_status.py new file mode 100644 index 0000000000000000000000000000000000000000..83d5b5333b1eeef52b4bd77a7ed6c3b74948086f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_replication_controller_status.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ReplicationControllerStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'available_replicas': 'int', + 'conditions': 'list[V1ReplicationControllerCondition]', + 'fully_labeled_replicas': 'int', + 'observed_generation': 'int', + 'ready_replicas': 'int', + 'replicas': 'int' + } + + attribute_map = { + 'available_replicas': 'availableReplicas', + 'conditions': 'conditions', + 'fully_labeled_replicas': 'fullyLabeledReplicas', + 'observed_generation': 'observedGeneration', + 'ready_replicas': 'readyReplicas', + 'replicas': 'replicas' + } + + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None, local_vars_configuration=None): # noqa: E501 + """V1ReplicationControllerStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._available_replicas = None + self._conditions = None + self._fully_labeled_replicas = None + self._observed_generation = None + self._ready_replicas = None + self._replicas = None + self.discriminator = None + + if available_replicas is not None: + self.available_replicas = available_replicas + if conditions is not None: + self.conditions = conditions + if fully_labeled_replicas is not None: + self.fully_labeled_replicas = fully_labeled_replicas + if observed_generation is not None: + self.observed_generation = observed_generation + if ready_replicas is not None: + self.ready_replicas = ready_replicas + self.replicas = replicas + + @property + def available_replicas(self): + """Gets the available_replicas of this V1ReplicationControllerStatus. # noqa: E501 + + The number of available replicas (ready for at least minReadySeconds) for this replication controller. # noqa: E501 + + :return: The available_replicas of this V1ReplicationControllerStatus. # noqa: E501 + :rtype: int + """ + return self._available_replicas + + @available_replicas.setter + def available_replicas(self, available_replicas): + """Sets the available_replicas of this V1ReplicationControllerStatus. + + The number of available replicas (ready for at least minReadySeconds) for this replication controller. # noqa: E501 + + :param available_replicas: The available_replicas of this V1ReplicationControllerStatus. # noqa: E501 + :type: int + """ + + self._available_replicas = available_replicas + + @property + def conditions(self): + """Gets the conditions of this V1ReplicationControllerStatus. # noqa: E501 + + Represents the latest available observations of a replication controller's current state. # noqa: E501 + + :return: The conditions of this V1ReplicationControllerStatus. # noqa: E501 + :rtype: list[V1ReplicationControllerCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this V1ReplicationControllerStatus. + + Represents the latest available observations of a replication controller's current state. # noqa: E501 + + :param conditions: The conditions of this V1ReplicationControllerStatus. # noqa: E501 + :type: list[V1ReplicationControllerCondition] + """ + + self._conditions = conditions + + @property + def fully_labeled_replicas(self): + """Gets the fully_labeled_replicas of this V1ReplicationControllerStatus. # noqa: E501 + + The number of pods that have labels matching the labels of the pod template of the replication controller. # noqa: E501 + + :return: The fully_labeled_replicas of this V1ReplicationControllerStatus. # noqa: E501 + :rtype: int + """ + return self._fully_labeled_replicas + + @fully_labeled_replicas.setter + def fully_labeled_replicas(self, fully_labeled_replicas): + """Sets the fully_labeled_replicas of this V1ReplicationControllerStatus. + + The number of pods that have labels matching the labels of the pod template of the replication controller. # noqa: E501 + + :param fully_labeled_replicas: The fully_labeled_replicas of this V1ReplicationControllerStatus. # noqa: E501 + :type: int + """ + + self._fully_labeled_replicas = fully_labeled_replicas + + @property + def observed_generation(self): + """Gets the observed_generation of this V1ReplicationControllerStatus. # noqa: E501 + + ObservedGeneration reflects the generation of the most recently observed replication controller. # noqa: E501 + + :return: The observed_generation of this V1ReplicationControllerStatus. # noqa: E501 + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """Sets the observed_generation of this V1ReplicationControllerStatus. + + ObservedGeneration reflects the generation of the most recently observed replication controller. # noqa: E501 + + :param observed_generation: The observed_generation of this V1ReplicationControllerStatus. # noqa: E501 + :type: int + """ + + self._observed_generation = observed_generation + + @property + def ready_replicas(self): + """Gets the ready_replicas of this V1ReplicationControllerStatus. # noqa: E501 + + The number of ready replicas for this replication controller. # noqa: E501 + + :return: The ready_replicas of this V1ReplicationControllerStatus. # noqa: E501 + :rtype: int + """ + return self._ready_replicas + + @ready_replicas.setter + def ready_replicas(self, ready_replicas): + """Sets the ready_replicas of this V1ReplicationControllerStatus. + + The number of ready replicas for this replication controller. # noqa: E501 + + :param ready_replicas: The ready_replicas of this V1ReplicationControllerStatus. # noqa: E501 + :type: int + """ + + self._ready_replicas = ready_replicas + + @property + def replicas(self): + """Gets the replicas of this V1ReplicationControllerStatus. # noqa: E501 + + Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller # noqa: E501 + + :return: The replicas of this V1ReplicationControllerStatus. # noqa: E501 + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """Sets the replicas of this V1ReplicationControllerStatus. + + Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller # noqa: E501 + + :param replicas: The replicas of this V1ReplicationControllerStatus. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 + + self._replicas = replicas + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReplicationControllerStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ReplicationControllerStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_attributes.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_attributes.py new file mode 100644 index 0000000000000000000000000000000000000000..3a3c835291806df1a8377e5ecace334b5dac6e09 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_attributes.py @@ -0,0 +1,342 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceAttributes(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'field_selector': 'V1FieldSelectorAttributes', + 'group': 'str', + 'label_selector': 'V1LabelSelectorAttributes', + 'name': 'str', + 'namespace': 'str', + 'resource': 'str', + 'subresource': 'str', + 'verb': 'str', + 'version': 'str' + } + + attribute_map = { + 'field_selector': 'fieldSelector', + 'group': 'group', + 'label_selector': 'labelSelector', + 'name': 'name', + 'namespace': 'namespace', + 'resource': 'resource', + 'subresource': 'subresource', + 'verb': 'verb', + 'version': 'version' + } + + def __init__(self, field_selector=None, group=None, label_selector=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceAttributes - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._field_selector = None + self._group = None + self._label_selector = None + self._name = None + self._namespace = None + self._resource = None + self._subresource = None + self._verb = None + self._version = None + self.discriminator = None + + if field_selector is not None: + self.field_selector = field_selector + if group is not None: + self.group = group + if label_selector is not None: + self.label_selector = label_selector + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + if resource is not None: + self.resource = resource + if subresource is not None: + self.subresource = subresource + if verb is not None: + self.verb = verb + if version is not None: + self.version = version + + @property + def field_selector(self): + """Gets the field_selector of this V1ResourceAttributes. # noqa: E501 + + + :return: The field_selector of this V1ResourceAttributes. # noqa: E501 + :rtype: V1FieldSelectorAttributes + """ + return self._field_selector + + @field_selector.setter + def field_selector(self, field_selector): + """Sets the field_selector of this V1ResourceAttributes. + + + :param field_selector: The field_selector of this V1ResourceAttributes. # noqa: E501 + :type: V1FieldSelectorAttributes + """ + + self._field_selector = field_selector + + @property + def group(self): + """Gets the group of this V1ResourceAttributes. # noqa: E501 + + Group is the API Group of the Resource. \"*\" means all. # noqa: E501 + + :return: The group of this V1ResourceAttributes. # noqa: E501 + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this V1ResourceAttributes. + + Group is the API Group of the Resource. \"*\" means all. # noqa: E501 + + :param group: The group of this V1ResourceAttributes. # noqa: E501 + :type: str + """ + + self._group = group + + @property + def label_selector(self): + """Gets the label_selector of this V1ResourceAttributes. # noqa: E501 + + + :return: The label_selector of this V1ResourceAttributes. # noqa: E501 + :rtype: V1LabelSelectorAttributes + """ + return self._label_selector + + @label_selector.setter + def label_selector(self, label_selector): + """Sets the label_selector of this V1ResourceAttributes. + + + :param label_selector: The label_selector of this V1ResourceAttributes. # noqa: E501 + :type: V1LabelSelectorAttributes + """ + + self._label_selector = label_selector + + @property + def name(self): + """Gets the name of this V1ResourceAttributes. # noqa: E501 + + Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. # noqa: E501 + + :return: The name of this V1ResourceAttributes. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1ResourceAttributes. + + Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. # noqa: E501 + + :param name: The name of this V1ResourceAttributes. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this V1ResourceAttributes. # noqa: E501 + + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview # noqa: E501 + + :return: The namespace of this V1ResourceAttributes. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this V1ResourceAttributes. + + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview # noqa: E501 + + :param namespace: The namespace of this V1ResourceAttributes. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + @property + def resource(self): + """Gets the resource of this V1ResourceAttributes. # noqa: E501 + + Resource is one of the existing resource types. \"*\" means all. # noqa: E501 + + :return: The resource of this V1ResourceAttributes. # noqa: E501 + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """Sets the resource of this V1ResourceAttributes. + + Resource is one of the existing resource types. \"*\" means all. # noqa: E501 + + :param resource: The resource of this V1ResourceAttributes. # noqa: E501 + :type: str + """ + + self._resource = resource + + @property + def subresource(self): + """Gets the subresource of this V1ResourceAttributes. # noqa: E501 + + Subresource is one of the existing resource types. \"\" means none. # noqa: E501 + + :return: The subresource of this V1ResourceAttributes. # noqa: E501 + :rtype: str + """ + return self._subresource + + @subresource.setter + def subresource(self, subresource): + """Sets the subresource of this V1ResourceAttributes. + + Subresource is one of the existing resource types. \"\" means none. # noqa: E501 + + :param subresource: The subresource of this V1ResourceAttributes. # noqa: E501 + :type: str + """ + + self._subresource = subresource + + @property + def verb(self): + """Gets the verb of this V1ResourceAttributes. # noqa: E501 + + Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 + + :return: The verb of this V1ResourceAttributes. # noqa: E501 + :rtype: str + """ + return self._verb + + @verb.setter + def verb(self, verb): + """Sets the verb of this V1ResourceAttributes. + + Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 + + :param verb: The verb of this V1ResourceAttributes. # noqa: E501 + :type: str + """ + + self._verb = verb + + @property + def version(self): + """Gets the version of this V1ResourceAttributes. # noqa: E501 + + Version is the API Version of the Resource. \"*\" means all. # noqa: E501 + + :return: The version of this V1ResourceAttributes. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this V1ResourceAttributes. + + Version is the API Version of the Resource. \"*\" means all. # noqa: E501 + + :param version: The version of this V1ResourceAttributes. # noqa: E501 + :type: str + """ + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceAttributes): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceAttributes): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_consumer_reference.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_consumer_reference.py new file mode 100644 index 0000000000000000000000000000000000000000..735ce977191cf367ab3174c98b5a3977406d49b6 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_consumer_reference.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceClaimConsumerReference(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_group': 'str', + 'name': 'str', + 'resource': 'str', + 'uid': 'str' + } + + attribute_map = { + 'api_group': 'apiGroup', + 'name': 'name', + 'resource': 'resource', + 'uid': 'uid' + } + + def __init__(self, api_group=None, name=None, resource=None, uid=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceClaimConsumerReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_group = None + self._name = None + self._resource = None + self._uid = None + self.discriminator = None + + if api_group is not None: + self.api_group = api_group + self.name = name + self.resource = resource + self.uid = uid + + @property + def api_group(self): + """Gets the api_group of this V1ResourceClaimConsumerReference. # noqa: E501 + + APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. # noqa: E501 + + :return: The api_group of this V1ResourceClaimConsumerReference. # noqa: E501 + :rtype: str + """ + return self._api_group + + @api_group.setter + def api_group(self, api_group): + """Sets the api_group of this V1ResourceClaimConsumerReference. + + APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. # noqa: E501 + + :param api_group: The api_group of this V1ResourceClaimConsumerReference. # noqa: E501 + :type: str + """ + + self._api_group = api_group + + @property + def name(self): + """Gets the name of this V1ResourceClaimConsumerReference. # noqa: E501 + + Name is the name of resource being referenced. # noqa: E501 + + :return: The name of this V1ResourceClaimConsumerReference. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1ResourceClaimConsumerReference. + + Name is the name of resource being referenced. # noqa: E501 + + :param name: The name of this V1ResourceClaimConsumerReference. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def resource(self): + """Gets the resource of this V1ResourceClaimConsumerReference. # noqa: E501 + + Resource is the type of resource being referenced, for example \"pods\". # noqa: E501 + + :return: The resource of this V1ResourceClaimConsumerReference. # noqa: E501 + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """Sets the resource of this V1ResourceClaimConsumerReference. + + Resource is the type of resource being referenced, for example \"pods\". # noqa: E501 + + :param resource: The resource of this V1ResourceClaimConsumerReference. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and resource is None: # noqa: E501 + raise ValueError("Invalid value for `resource`, must not be `None`") # noqa: E501 + + self._resource = resource + + @property + def uid(self): + """Gets the uid of this V1ResourceClaimConsumerReference. # noqa: E501 + + UID identifies exactly one incarnation of the resource. # noqa: E501 + + :return: The uid of this V1ResourceClaimConsumerReference. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this V1ResourceClaimConsumerReference. + + UID identifies exactly one incarnation of the resource. # noqa: E501 + + :param uid: The uid of this V1ResourceClaimConsumerReference. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and uid is None: # noqa: E501 + raise ValueError("Invalid value for `uid`, must not be `None`") # noqa: E501 + + self._uid = uid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceClaimConsumerReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceClaimConsumerReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_list.py new file mode 100644 index 0000000000000000000000000000000000000000..0ff16d79b63ef77527c7d750a152c0d651d226e4 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceClaimList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[ResourceV1ResourceClaim]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceClaimList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1ResourceClaimList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ResourceClaimList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ResourceClaimList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ResourceClaimList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1ResourceClaimList. # noqa: E501 + + Items is the list of resource claims. # noqa: E501 + + :return: The items of this V1ResourceClaimList. # noqa: E501 + :rtype: list[ResourceV1ResourceClaim] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1ResourceClaimList. + + Items is the list of resource claims. # noqa: E501 + + :param items: The items of this V1ResourceClaimList. # noqa: E501 + :type: list[ResourceV1ResourceClaim] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1ResourceClaimList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ResourceClaimList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ResourceClaimList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ResourceClaimList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ResourceClaimList. # noqa: E501 + + + :return: The metadata of this V1ResourceClaimList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ResourceClaimList. + + + :param metadata: The metadata of this V1ResourceClaimList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceClaimList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceClaimList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..2d5d844b46e169c8aca9f7788b52307441be10e2 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_spec.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceClaimSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'devices': 'V1DeviceClaim' + } + + attribute_map = { + 'devices': 'devices' + } + + def __init__(self, devices=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceClaimSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._devices = None + self.discriminator = None + + if devices is not None: + self.devices = devices + + @property + def devices(self): + """Gets the devices of this V1ResourceClaimSpec. # noqa: E501 + + + :return: The devices of this V1ResourceClaimSpec. # noqa: E501 + :rtype: V1DeviceClaim + """ + return self._devices + + @devices.setter + def devices(self, devices): + """Sets the devices of this V1ResourceClaimSpec. + + + :param devices: The devices of this V1ResourceClaimSpec. # noqa: E501 + :type: V1DeviceClaim + """ + + self._devices = devices + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceClaimSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceClaimSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_status.py new file mode 100644 index 0000000000000000000000000000000000000000..4b57b6b84191c2db23ea69435ad746af1f213e69 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_status.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceClaimStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'allocation': 'V1AllocationResult', + 'devices': 'list[V1AllocatedDeviceStatus]', + 'reserved_for': 'list[V1ResourceClaimConsumerReference]' + } + + attribute_map = { + 'allocation': 'allocation', + 'devices': 'devices', + 'reserved_for': 'reservedFor' + } + + def __init__(self, allocation=None, devices=None, reserved_for=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceClaimStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._allocation = None + self._devices = None + self._reserved_for = None + self.discriminator = None + + if allocation is not None: + self.allocation = allocation + if devices is not None: + self.devices = devices + if reserved_for is not None: + self.reserved_for = reserved_for + + @property + def allocation(self): + """Gets the allocation of this V1ResourceClaimStatus. # noqa: E501 + + + :return: The allocation of this V1ResourceClaimStatus. # noqa: E501 + :rtype: V1AllocationResult + """ + return self._allocation + + @allocation.setter + def allocation(self, allocation): + """Sets the allocation of this V1ResourceClaimStatus. + + + :param allocation: The allocation of this V1ResourceClaimStatus. # noqa: E501 + :type: V1AllocationResult + """ + + self._allocation = allocation + + @property + def devices(self): + """Gets the devices of this V1ResourceClaimStatus. # noqa: E501 + + Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers. # noqa: E501 + + :return: The devices of this V1ResourceClaimStatus. # noqa: E501 + :rtype: list[V1AllocatedDeviceStatus] + """ + return self._devices + + @devices.setter + def devices(self, devices): + """Sets the devices of this V1ResourceClaimStatus. + + Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers. # noqa: E501 + + :param devices: The devices of this V1ResourceClaimStatus. # noqa: E501 + :type: list[V1AllocatedDeviceStatus] + """ + + self._devices = devices + + @property + def reserved_for(self): + """Gets the reserved_for of this V1ResourceClaimStatus. # noqa: E501 + + ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 256 such reservations. This may get increased in the future, but not reduced. # noqa: E501 + + :return: The reserved_for of this V1ResourceClaimStatus. # noqa: E501 + :rtype: list[V1ResourceClaimConsumerReference] + """ + return self._reserved_for + + @reserved_for.setter + def reserved_for(self, reserved_for): + """Sets the reserved_for of this V1ResourceClaimStatus. + + ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 256 such reservations. This may get increased in the future, but not reduced. # noqa: E501 + + :param reserved_for: The reserved_for of this V1ResourceClaimStatus. # noqa: E501 + :type: list[V1ResourceClaimConsumerReference] + """ + + self._reserved_for = reserved_for + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceClaimStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceClaimStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_template.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_template.py new file mode 100644 index 0000000000000000000000000000000000000000..3db5e91b53d108a529bbfc2a7779c5d13f1aff03 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_template.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceClaimTemplate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ResourceClaimTemplateSpec' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceClaimTemplate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + + @property + def api_version(self): + """Gets the api_version of this V1ResourceClaimTemplate. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ResourceClaimTemplate. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ResourceClaimTemplate. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ResourceClaimTemplate. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1ResourceClaimTemplate. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ResourceClaimTemplate. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ResourceClaimTemplate. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ResourceClaimTemplate. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ResourceClaimTemplate. # noqa: E501 + + + :return: The metadata of this V1ResourceClaimTemplate. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ResourceClaimTemplate. + + + :param metadata: The metadata of this V1ResourceClaimTemplate. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1ResourceClaimTemplate. # noqa: E501 + + + :return: The spec of this V1ResourceClaimTemplate. # noqa: E501 + :rtype: V1ResourceClaimTemplateSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1ResourceClaimTemplate. + + + :param spec: The spec of this V1ResourceClaimTemplate. # noqa: E501 + :type: V1ResourceClaimTemplateSpec + """ + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceClaimTemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceClaimTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_template_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_template_list.py new file mode 100644 index 0000000000000000000000000000000000000000..d1da37df219c58f54d7b758beafa21679ee8ef8e --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_template_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceClaimTemplateList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1ResourceClaimTemplate]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceClaimTemplateList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1ResourceClaimTemplateList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ResourceClaimTemplateList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ResourceClaimTemplateList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ResourceClaimTemplateList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1ResourceClaimTemplateList. # noqa: E501 + + Items is the list of resource claim templates. # noqa: E501 + + :return: The items of this V1ResourceClaimTemplateList. # noqa: E501 + :rtype: list[V1ResourceClaimTemplate] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1ResourceClaimTemplateList. + + Items is the list of resource claim templates. # noqa: E501 + + :param items: The items of this V1ResourceClaimTemplateList. # noqa: E501 + :type: list[V1ResourceClaimTemplate] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1ResourceClaimTemplateList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ResourceClaimTemplateList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ResourceClaimTemplateList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ResourceClaimTemplateList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ResourceClaimTemplateList. # noqa: E501 + + + :return: The metadata of this V1ResourceClaimTemplateList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ResourceClaimTemplateList. + + + :param metadata: The metadata of this V1ResourceClaimTemplateList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceClaimTemplateList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceClaimTemplateList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_template_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_template_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..130912386d6245a092d852dad933411c065e3626 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_claim_template_spec.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceClaimTemplateSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ResourceClaimSpec' + } + + attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceClaimTemplateSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._metadata = None + self._spec = None + self.discriminator = None + + if metadata is not None: + self.metadata = metadata + self.spec = spec + + @property + def metadata(self): + """Gets the metadata of this V1ResourceClaimTemplateSpec. # noqa: E501 + + + :return: The metadata of this V1ResourceClaimTemplateSpec. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ResourceClaimTemplateSpec. + + + :param metadata: The metadata of this V1ResourceClaimTemplateSpec. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1ResourceClaimTemplateSpec. # noqa: E501 + + + :return: The spec of this V1ResourceClaimTemplateSpec. # noqa: E501 + :rtype: V1ResourceClaimSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1ResourceClaimTemplateSpec. + + + :param spec: The spec of this V1ResourceClaimTemplateSpec. # noqa: E501 + :type: V1ResourceClaimSpec + """ + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceClaimTemplateSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceClaimTemplateSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_field_selector.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_field_selector.py new file mode 100644 index 0000000000000000000000000000000000000000..dbea0778398e3af5cb45203ef353eaeff7af4df1 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_field_selector.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceFieldSelector(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'container_name': 'str', + 'divisor': 'str', + 'resource': 'str' + } + + attribute_map = { + 'container_name': 'containerName', + 'divisor': 'divisor', + 'resource': 'resource' + } + + def __init__(self, container_name=None, divisor=None, resource=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceFieldSelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._container_name = None + self._divisor = None + self._resource = None + self.discriminator = None + + if container_name is not None: + self.container_name = container_name + if divisor is not None: + self.divisor = divisor + self.resource = resource + + @property + def container_name(self): + """Gets the container_name of this V1ResourceFieldSelector. # noqa: E501 + + Container name: required for volumes, optional for env vars # noqa: E501 + + :return: The container_name of this V1ResourceFieldSelector. # noqa: E501 + :rtype: str + """ + return self._container_name + + @container_name.setter + def container_name(self, container_name): + """Sets the container_name of this V1ResourceFieldSelector. + + Container name: required for volumes, optional for env vars # noqa: E501 + + :param container_name: The container_name of this V1ResourceFieldSelector. # noqa: E501 + :type: str + """ + + self._container_name = container_name + + @property + def divisor(self): + """Gets the divisor of this V1ResourceFieldSelector. # noqa: E501 + + Specifies the output format of the exposed resources, defaults to \"1\" # noqa: E501 + + :return: The divisor of this V1ResourceFieldSelector. # noqa: E501 + :rtype: str + """ + return self._divisor + + @divisor.setter + def divisor(self, divisor): + """Sets the divisor of this V1ResourceFieldSelector. + + Specifies the output format of the exposed resources, defaults to \"1\" # noqa: E501 + + :param divisor: The divisor of this V1ResourceFieldSelector. # noqa: E501 + :type: str + """ + + self._divisor = divisor + + @property + def resource(self): + """Gets the resource of this V1ResourceFieldSelector. # noqa: E501 + + Required: resource to select # noqa: E501 + + :return: The resource of this V1ResourceFieldSelector. # noqa: E501 + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """Sets the resource of this V1ResourceFieldSelector. + + Required: resource to select # noqa: E501 + + :param resource: The resource of this V1ResourceFieldSelector. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and resource is None: # noqa: E501 + raise ValueError("Invalid value for `resource`, must not be `None`") # noqa: E501 + + self._resource = resource + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceFieldSelector): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceFieldSelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_health.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_health.py new file mode 100644 index 0000000000000000000000000000000000000000..1f87440dc3e1f85c78b0d592bddd709a55d2c63e --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_health.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceHealth(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'health': 'str', + 'resource_id': 'str' + } + + attribute_map = { + 'health': 'health', + 'resource_id': 'resourceID' + } + + def __init__(self, health=None, resource_id=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceHealth - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._health = None + self._resource_id = None + self.discriminator = None + + if health is not None: + self.health = health + self.resource_id = resource_id + + @property + def health(self): + """Gets the health of this V1ResourceHealth. # noqa: E501 + + Health of the resource. can be one of: - Healthy: operates as normal - Unhealthy: reported unhealthy. We consider this a temporary health issue since we do not have a mechanism today to distinguish temporary and permanent issues. - Unknown: The status cannot be determined. For example, Device Plugin got unregistered and hasn't been re-registered since. In future we may want to introduce the PermanentlyUnhealthy Status. # noqa: E501 + + :return: The health of this V1ResourceHealth. # noqa: E501 + :rtype: str + """ + return self._health + + @health.setter + def health(self, health): + """Sets the health of this V1ResourceHealth. + + Health of the resource. can be one of: - Healthy: operates as normal - Unhealthy: reported unhealthy. We consider this a temporary health issue since we do not have a mechanism today to distinguish temporary and permanent issues. - Unknown: The status cannot be determined. For example, Device Plugin got unregistered and hasn't been re-registered since. In future we may want to introduce the PermanentlyUnhealthy Status. # noqa: E501 + + :param health: The health of this V1ResourceHealth. # noqa: E501 + :type: str + """ + + self._health = health + + @property + def resource_id(self): + """Gets the resource_id of this V1ResourceHealth. # noqa: E501 + + ResourceID is the unique identifier of the resource. See the ResourceID type for more information. # noqa: E501 + + :return: The resource_id of this V1ResourceHealth. # noqa: E501 + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this V1ResourceHealth. + + ResourceID is the unique identifier of the resource. See the ResourceID type for more information. # noqa: E501 + + :param resource_id: The resource_id of this V1ResourceHealth. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and resource_id is None: # noqa: E501 + raise ValueError("Invalid value for `resource_id`, must not be `None`") # noqa: E501 + + self._resource_id = resource_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceHealth): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceHealth): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_policy_rule.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_policy_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..8cfce35fe861e51d233d75cea50831981068a82f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_policy_rule.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourcePolicyRule(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_groups': 'list[str]', + 'cluster_scope': 'bool', + 'namespaces': 'list[str]', + 'resources': 'list[str]', + 'verbs': 'list[str]' + } + + attribute_map = { + 'api_groups': 'apiGroups', + 'cluster_scope': 'clusterScope', + 'namespaces': 'namespaces', + 'resources': 'resources', + 'verbs': 'verbs' + } + + def __init__(self, api_groups=None, cluster_scope=None, namespaces=None, resources=None, verbs=None, local_vars_configuration=None): # noqa: E501 + """V1ResourcePolicyRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_groups = None + self._cluster_scope = None + self._namespaces = None + self._resources = None + self._verbs = None + self.discriminator = None + + self.api_groups = api_groups + if cluster_scope is not None: + self.cluster_scope = cluster_scope + if namespaces is not None: + self.namespaces = namespaces + self.resources = resources + self.verbs = verbs + + @property + def api_groups(self): + """Gets the api_groups of this V1ResourcePolicyRule. # noqa: E501 + + `apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required. # noqa: E501 + + :return: The api_groups of this V1ResourcePolicyRule. # noqa: E501 + :rtype: list[str] + """ + return self._api_groups + + @api_groups.setter + def api_groups(self, api_groups): + """Sets the api_groups of this V1ResourcePolicyRule. + + `apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required. # noqa: E501 + + :param api_groups: The api_groups of this V1ResourcePolicyRule. # noqa: E501 + :type: list[str] + """ + if self.local_vars_configuration.client_side_validation and api_groups is None: # noqa: E501 + raise ValueError("Invalid value for `api_groups`, must not be `None`") # noqa: E501 + + self._api_groups = api_groups + + @property + def cluster_scope(self): + """Gets the cluster_scope of this V1ResourcePolicyRule. # noqa: E501 + + `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. # noqa: E501 + + :return: The cluster_scope of this V1ResourcePolicyRule. # noqa: E501 + :rtype: bool + """ + return self._cluster_scope + + @cluster_scope.setter + def cluster_scope(self, cluster_scope): + """Sets the cluster_scope of this V1ResourcePolicyRule. + + `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. # noqa: E501 + + :param cluster_scope: The cluster_scope of this V1ResourcePolicyRule. # noqa: E501 + :type: bool + """ + + self._cluster_scope = cluster_scope + + @property + def namespaces(self): + """Gets the namespaces of this V1ResourcePolicyRule. # noqa: E501 + + `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. # noqa: E501 + + :return: The namespaces of this V1ResourcePolicyRule. # noqa: E501 + :rtype: list[str] + """ + return self._namespaces + + @namespaces.setter + def namespaces(self, namespaces): + """Sets the namespaces of this V1ResourcePolicyRule. + + `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. # noqa: E501 + + :param namespaces: The namespaces of this V1ResourcePolicyRule. # noqa: E501 + :type: list[str] + """ + + self._namespaces = namespaces + + @property + def resources(self): + """Gets the resources of this V1ResourcePolicyRule. # noqa: E501 + + `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required. # noqa: E501 + + :return: The resources of this V1ResourcePolicyRule. # noqa: E501 + :rtype: list[str] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1ResourcePolicyRule. + + `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required. # noqa: E501 + + :param resources: The resources of this V1ResourcePolicyRule. # noqa: E501 + :type: list[str] + """ + if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 + raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 + + self._resources = resources + + @property + def verbs(self): + """Gets the verbs of this V1ResourcePolicyRule. # noqa: E501 + + `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required. # noqa: E501 + + :return: The verbs of this V1ResourcePolicyRule. # noqa: E501 + :rtype: list[str] + """ + return self._verbs + + @verbs.setter + def verbs(self, verbs): + """Sets the verbs of this V1ResourcePolicyRule. + + `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required. # noqa: E501 + + :param verbs: The verbs of this V1ResourcePolicyRule. # noqa: E501 + :type: list[str] + """ + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 + + self._verbs = verbs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourcePolicyRule): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourcePolicyRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_pool.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_pool.py new file mode 100644 index 0000000000000000000000000000000000000000..daa34f7dfd079e14f94087a52f9f64210236603d --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_pool.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourcePool(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'generation': 'int', + 'name': 'str', + 'resource_slice_count': 'int' + } + + attribute_map = { + 'generation': 'generation', + 'name': 'name', + 'resource_slice_count': 'resourceSliceCount' + } + + def __init__(self, generation=None, name=None, resource_slice_count=None, local_vars_configuration=None): # noqa: E501 + """V1ResourcePool - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._generation = None + self._name = None + self._resource_slice_count = None + self.discriminator = None + + self.generation = generation + self.name = name + self.resource_slice_count = resource_slice_count + + @property + def generation(self): + """Gets the generation of this V1ResourcePool. # noqa: E501 + + Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted. Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state. # noqa: E501 + + :return: The generation of this V1ResourcePool. # noqa: E501 + :rtype: int + """ + return self._generation + + @generation.setter + def generation(self, generation): + """Sets the generation of this V1ResourcePool. + + Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted. Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state. # noqa: E501 + + :param generation: The generation of this V1ResourcePool. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and generation is None: # noqa: E501 + raise ValueError("Invalid value for `generation`, must not be `None`") # noqa: E501 + + self._generation = generation + + @property + def name(self): + """Gets the name of this V1ResourcePool. # noqa: E501 + + Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable. # noqa: E501 + + :return: The name of this V1ResourcePool. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1ResourcePool. + + Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable. # noqa: E501 + + :param name: The name of this V1ResourcePool. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def resource_slice_count(self): + """Gets the resource_slice_count of this V1ResourcePool. # noqa: E501 + + ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero. Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool. # noqa: E501 + + :return: The resource_slice_count of this V1ResourcePool. # noqa: E501 + :rtype: int + """ + return self._resource_slice_count + + @resource_slice_count.setter + def resource_slice_count(self, resource_slice_count): + """Sets the resource_slice_count of this V1ResourcePool. + + ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero. Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool. # noqa: E501 + + :param resource_slice_count: The resource_slice_count of this V1ResourcePool. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and resource_slice_count is None: # noqa: E501 + raise ValueError("Invalid value for `resource_slice_count`, must not be `None`") # noqa: E501 + + self._resource_slice_count = resource_slice_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourcePool): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourcePool): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota.py new file mode 100644 index 0000000000000000000000000000000000000000..e9b71201842bbc927de66a6195b776df54a1ab11 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceQuota(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ResourceQuotaSpec', + 'status': 'V1ResourceQuotaStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceQuota - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1ResourceQuota. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ResourceQuota. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ResourceQuota. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ResourceQuota. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1ResourceQuota. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ResourceQuota. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ResourceQuota. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ResourceQuota. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ResourceQuota. # noqa: E501 + + + :return: The metadata of this V1ResourceQuota. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ResourceQuota. + + + :param metadata: The metadata of this V1ResourceQuota. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1ResourceQuota. # noqa: E501 + + + :return: The spec of this V1ResourceQuota. # noqa: E501 + :rtype: V1ResourceQuotaSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1ResourceQuota. + + + :param spec: The spec of this V1ResourceQuota. # noqa: E501 + :type: V1ResourceQuotaSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1ResourceQuota. # noqa: E501 + + + :return: The status of this V1ResourceQuota. # noqa: E501 + :rtype: V1ResourceQuotaStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1ResourceQuota. + + + :param status: The status of this V1ResourceQuota. # noqa: E501 + :type: V1ResourceQuotaStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceQuota): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceQuota): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota_list.py new file mode 100644 index 0000000000000000000000000000000000000000..015102e22acc48f523a7c4a98a5530bee08e748b --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceQuotaList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1ResourceQuota]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceQuotaList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1ResourceQuotaList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ResourceQuotaList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ResourceQuotaList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ResourceQuotaList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1ResourceQuotaList. # noqa: E501 + + Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 + + :return: The items of this V1ResourceQuotaList. # noqa: E501 + :rtype: list[V1ResourceQuota] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1ResourceQuotaList. + + Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 + + :param items: The items of this V1ResourceQuotaList. # noqa: E501 + :type: list[V1ResourceQuota] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1ResourceQuotaList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ResourceQuotaList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ResourceQuotaList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ResourceQuotaList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ResourceQuotaList. # noqa: E501 + + + :return: The metadata of this V1ResourceQuotaList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ResourceQuotaList. + + + :param metadata: The metadata of this V1ResourceQuotaList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceQuotaList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceQuotaList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..fe66c0b87ae3ec18aeea3b754b34f96a55de55fe --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota_spec.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceQuotaSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'hard': 'dict(str, str)', + 'scope_selector': 'V1ScopeSelector', + 'scopes': 'list[str]' + } + + attribute_map = { + 'hard': 'hard', + 'scope_selector': 'scopeSelector', + 'scopes': 'scopes' + } + + def __init__(self, hard=None, scope_selector=None, scopes=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceQuotaSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._hard = None + self._scope_selector = None + self._scopes = None + self.discriminator = None + + if hard is not None: + self.hard = hard + if scope_selector is not None: + self.scope_selector = scope_selector + if scopes is not None: + self.scopes = scopes + + @property + def hard(self): + """Gets the hard of this V1ResourceQuotaSpec. # noqa: E501 + + hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 + + :return: The hard of this V1ResourceQuotaSpec. # noqa: E501 + :rtype: dict(str, str) + """ + return self._hard + + @hard.setter + def hard(self, hard): + """Sets the hard of this V1ResourceQuotaSpec. + + hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 + + :param hard: The hard of this V1ResourceQuotaSpec. # noqa: E501 + :type: dict(str, str) + """ + + self._hard = hard + + @property + def scope_selector(self): + """Gets the scope_selector of this V1ResourceQuotaSpec. # noqa: E501 + + + :return: The scope_selector of this V1ResourceQuotaSpec. # noqa: E501 + :rtype: V1ScopeSelector + """ + return self._scope_selector + + @scope_selector.setter + def scope_selector(self, scope_selector): + """Sets the scope_selector of this V1ResourceQuotaSpec. + + + :param scope_selector: The scope_selector of this V1ResourceQuotaSpec. # noqa: E501 + :type: V1ScopeSelector + """ + + self._scope_selector = scope_selector + + @property + def scopes(self): + """Gets the scopes of this V1ResourceQuotaSpec. # noqa: E501 + + A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. # noqa: E501 + + :return: The scopes of this V1ResourceQuotaSpec. # noqa: E501 + :rtype: list[str] + """ + return self._scopes + + @scopes.setter + def scopes(self, scopes): + """Sets the scopes of this V1ResourceQuotaSpec. + + A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. # noqa: E501 + + :param scopes: The scopes of this V1ResourceQuotaSpec. # noqa: E501 + :type: list[str] + """ + + self._scopes = scopes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceQuotaSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceQuotaSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota_status.py new file mode 100644 index 0000000000000000000000000000000000000000..03fa17d91e96a0a5dd5f876c18a000b912432ac8 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_quota_status.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceQuotaStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'hard': 'dict(str, str)', + 'used': 'dict(str, str)' + } + + attribute_map = { + 'hard': 'hard', + 'used': 'used' + } + + def __init__(self, hard=None, used=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceQuotaStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._hard = None + self._used = None + self.discriminator = None + + if hard is not None: + self.hard = hard + if used is not None: + self.used = used + + @property + def hard(self): + """Gets the hard of this V1ResourceQuotaStatus. # noqa: E501 + + Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 + + :return: The hard of this V1ResourceQuotaStatus. # noqa: E501 + :rtype: dict(str, str) + """ + return self._hard + + @hard.setter + def hard(self, hard): + """Sets the hard of this V1ResourceQuotaStatus. + + Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 + + :param hard: The hard of this V1ResourceQuotaStatus. # noqa: E501 + :type: dict(str, str) + """ + + self._hard = hard + + @property + def used(self): + """Gets the used of this V1ResourceQuotaStatus. # noqa: E501 + + Used is the current observed total usage of the resource in the namespace. # noqa: E501 + + :return: The used of this V1ResourceQuotaStatus. # noqa: E501 + :rtype: dict(str, str) + """ + return self._used + + @used.setter + def used(self, used): + """Sets the used of this V1ResourceQuotaStatus. + + Used is the current observed total usage of the resource in the namespace. # noqa: E501 + + :param used: The used of this V1ResourceQuotaStatus. # noqa: E501 + :type: dict(str, str) + """ + + self._used = used + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceQuotaStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceQuotaStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_requirements.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_requirements.py new file mode 100644 index 0000000000000000000000000000000000000000..35e4221db86d726b0cfce15971a53f6f8c5f7ede --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_requirements.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceRequirements(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'claims': 'list[CoreV1ResourceClaim]', + 'limits': 'dict(str, str)', + 'requests': 'dict(str, str)' + } + + attribute_map = { + 'claims': 'claims', + 'limits': 'limits', + 'requests': 'requests' + } + + def __init__(self, claims=None, limits=None, requests=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceRequirements - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._claims = None + self._limits = None + self._requests = None + self.discriminator = None + + if claims is not None: + self.claims = claims + if limits is not None: + self.limits = limits + if requests is not None: + self.requests = requests + + @property + def claims(self): + """Gets the claims of this V1ResourceRequirements. # noqa: E501 + + Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This field depends on the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. # noqa: E501 + + :return: The claims of this V1ResourceRequirements. # noqa: E501 + :rtype: list[CoreV1ResourceClaim] + """ + return self._claims + + @claims.setter + def claims(self, claims): + """Sets the claims of this V1ResourceRequirements. + + Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This field depends on the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. # noqa: E501 + + :param claims: The claims of this V1ResourceRequirements. # noqa: E501 + :type: list[CoreV1ResourceClaim] + """ + + self._claims = claims + + @property + def limits(self): + """Gets the limits of this V1ResourceRequirements. # noqa: E501 + + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ # noqa: E501 + + :return: The limits of this V1ResourceRequirements. # noqa: E501 + :rtype: dict(str, str) + """ + return self._limits + + @limits.setter + def limits(self, limits): + """Sets the limits of this V1ResourceRequirements. + + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ # noqa: E501 + + :param limits: The limits of this V1ResourceRequirements. # noqa: E501 + :type: dict(str, str) + """ + + self._limits = limits + + @property + def requests(self): + """Gets the requests of this V1ResourceRequirements. # noqa: E501 + + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ # noqa: E501 + + :return: The requests of this V1ResourceRequirements. # noqa: E501 + :rtype: dict(str, str) + """ + return self._requests + + @requests.setter + def requests(self, requests): + """Sets the requests of this V1ResourceRequirements. + + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ # noqa: E501 + + :param requests: The requests of this V1ResourceRequirements. # noqa: E501 + :type: dict(str, str) + """ + + self._requests = requests + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceRequirements): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceRequirements): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_rule.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_rule.py new file mode 100644 index 0000000000000000000000000000000000000000..b715102d2bddae54e4ac696b664265e3b5bdfbe0 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_rule.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceRule(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_groups': 'list[str]', + 'resource_names': 'list[str]', + 'resources': 'list[str]', + 'verbs': 'list[str]' + } + + attribute_map = { + 'api_groups': 'apiGroups', + 'resource_names': 'resourceNames', + 'resources': 'resources', + 'verbs': 'verbs' + } + + def __init__(self, api_groups=None, resource_names=None, resources=None, verbs=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_groups = None + self._resource_names = None + self._resources = None + self._verbs = None + self.discriminator = None + + if api_groups is not None: + self.api_groups = api_groups + if resource_names is not None: + self.resource_names = resource_names + if resources is not None: + self.resources = resources + self.verbs = verbs + + @property + def api_groups(self): + """Gets the api_groups of this V1ResourceRule. # noqa: E501 + + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. # noqa: E501 + + :return: The api_groups of this V1ResourceRule. # noqa: E501 + :rtype: list[str] + """ + return self._api_groups + + @api_groups.setter + def api_groups(self, api_groups): + """Sets the api_groups of this V1ResourceRule. + + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. # noqa: E501 + + :param api_groups: The api_groups of this V1ResourceRule. # noqa: E501 + :type: list[str] + """ + + self._api_groups = api_groups + + @property + def resource_names(self): + """Gets the resource_names of this V1ResourceRule. # noqa: E501 + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. # noqa: E501 + + :return: The resource_names of this V1ResourceRule. # noqa: E501 + :rtype: list[str] + """ + return self._resource_names + + @resource_names.setter + def resource_names(self, resource_names): + """Sets the resource_names of this V1ResourceRule. + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. # noqa: E501 + + :param resource_names: The resource_names of this V1ResourceRule. # noqa: E501 + :type: list[str] + """ + + self._resource_names = resource_names + + @property + def resources(self): + """Gets the resources of this V1ResourceRule. # noqa: E501 + + Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. # noqa: E501 + + :return: The resources of this V1ResourceRule. # noqa: E501 + :rtype: list[str] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1ResourceRule. + + Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. # noqa: E501 + + :param resources: The resources of this V1ResourceRule. # noqa: E501 + :type: list[str] + """ + + self._resources = resources + + @property + def verbs(self): + """Gets the verbs of this V1ResourceRule. # noqa: E501 + + Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 + + :return: The verbs of this V1ResourceRule. # noqa: E501 + :rtype: list[str] + """ + return self._verbs + + @verbs.setter + def verbs(self, verbs): + """Sets the verbs of this V1ResourceRule. + + Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 + + :param verbs: The verbs of this V1ResourceRule. # noqa: E501 + :type: list[str] + """ + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 + + self._verbs = verbs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceRule): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_slice.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_slice.py new file mode 100644 index 0000000000000000000000000000000000000000..d29d17bee298347b7dc9be9e482ff6712804813e --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_slice.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceSlice(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ResourceSliceSpec' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceSlice - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + + @property + def api_version(self): + """Gets the api_version of this V1ResourceSlice. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ResourceSlice. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ResourceSlice. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ResourceSlice. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1ResourceSlice. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ResourceSlice. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ResourceSlice. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ResourceSlice. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ResourceSlice. # noqa: E501 + + + :return: The metadata of this V1ResourceSlice. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ResourceSlice. + + + :param metadata: The metadata of this V1ResourceSlice. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1ResourceSlice. # noqa: E501 + + + :return: The spec of this V1ResourceSlice. # noqa: E501 + :rtype: V1ResourceSliceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1ResourceSlice. + + + :param spec: The spec of this V1ResourceSlice. # noqa: E501 + :type: V1ResourceSliceSpec + """ + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceSlice): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceSlice): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_slice_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_slice_list.py new file mode 100644 index 0000000000000000000000000000000000000000..efe92fa557a7352aab00816febd4e3591100832d --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_slice_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceSliceList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1ResourceSlice]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceSliceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1ResourceSliceList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ResourceSliceList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ResourceSliceList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ResourceSliceList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1ResourceSliceList. # noqa: E501 + + Items is the list of resource ResourceSlices. # noqa: E501 + + :return: The items of this V1ResourceSliceList. # noqa: E501 + :rtype: list[V1ResourceSlice] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1ResourceSliceList. + + Items is the list of resource ResourceSlices. # noqa: E501 + + :param items: The items of this V1ResourceSliceList. # noqa: E501 + :type: list[V1ResourceSlice] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1ResourceSliceList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ResourceSliceList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ResourceSliceList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ResourceSliceList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ResourceSliceList. # noqa: E501 + + + :return: The metadata of this V1ResourceSliceList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ResourceSliceList. + + + :param metadata: The metadata of this V1ResourceSliceList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceSliceList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceSliceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_slice_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_slice_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..ef6fc5afb5f5a052e0e537d2e1b79ecb770c475d --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_slice_spec.py @@ -0,0 +1,316 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceSliceSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'all_nodes': 'bool', + 'devices': 'list[V1Device]', + 'driver': 'str', + 'node_name': 'str', + 'node_selector': 'V1NodeSelector', + 'per_device_node_selection': 'bool', + 'pool': 'V1ResourcePool', + 'shared_counters': 'list[V1CounterSet]' + } + + attribute_map = { + 'all_nodes': 'allNodes', + 'devices': 'devices', + 'driver': 'driver', + 'node_name': 'nodeName', + 'node_selector': 'nodeSelector', + 'per_device_node_selection': 'perDeviceNodeSelection', + 'pool': 'pool', + 'shared_counters': 'sharedCounters' + } + + def __init__(self, all_nodes=None, devices=None, driver=None, node_name=None, node_selector=None, per_device_node_selection=None, pool=None, shared_counters=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceSliceSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._all_nodes = None + self._devices = None + self._driver = None + self._node_name = None + self._node_selector = None + self._per_device_node_selection = None + self._pool = None + self._shared_counters = None + self.discriminator = None + + if all_nodes is not None: + self.all_nodes = all_nodes + if devices is not None: + self.devices = devices + self.driver = driver + if node_name is not None: + self.node_name = node_name + if node_selector is not None: + self.node_selector = node_selector + if per_device_node_selection is not None: + self.per_device_node_selection = per_device_node_selection + self.pool = pool + if shared_counters is not None: + self.shared_counters = shared_counters + + @property + def all_nodes(self): + """Gets the all_nodes of this V1ResourceSliceSpec. # noqa: E501 + + AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. # noqa: E501 + + :return: The all_nodes of this V1ResourceSliceSpec. # noqa: E501 + :rtype: bool + """ + return self._all_nodes + + @all_nodes.setter + def all_nodes(self, all_nodes): + """Sets the all_nodes of this V1ResourceSliceSpec. + + AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. # noqa: E501 + + :param all_nodes: The all_nodes of this V1ResourceSliceSpec. # noqa: E501 + :type: bool + """ + + self._all_nodes = all_nodes + + @property + def devices(self): + """Gets the devices of this V1ResourceSliceSpec. # noqa: E501 + + Devices lists some or all of the devices in this pool. Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64. Only one of Devices and SharedCounters can be set in a ResourceSlice. # noqa: E501 + + :return: The devices of this V1ResourceSliceSpec. # noqa: E501 + :rtype: list[V1Device] + """ + return self._devices + + @devices.setter + def devices(self, devices): + """Sets the devices of this V1ResourceSliceSpec. + + Devices lists some or all of the devices in this pool. Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64. Only one of Devices and SharedCounters can be set in a ResourceSlice. # noqa: E501 + + :param devices: The devices of this V1ResourceSliceSpec. # noqa: E501 + :type: list[V1Device] + """ + + self._devices = devices + + @property + def driver(self): + """Gets the driver of this V1ResourceSliceSpec. # noqa: E501 + + Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. This field is immutable. # noqa: E501 + + :return: The driver of this V1ResourceSliceSpec. # noqa: E501 + :rtype: str + """ + return self._driver + + @driver.setter + def driver(self, driver): + """Sets the driver of this V1ResourceSliceSpec. + + Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. This field is immutable. # noqa: E501 + + :param driver: The driver of this V1ResourceSliceSpec. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501 + raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 + + self._driver = driver + + @property + def node_name(self): + """Gets the node_name of this V1ResourceSliceSpec. # noqa: E501 + + NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. # noqa: E501 + + :return: The node_name of this V1ResourceSliceSpec. # noqa: E501 + :rtype: str + """ + return self._node_name + + @node_name.setter + def node_name(self, node_name): + """Sets the node_name of this V1ResourceSliceSpec. + + NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. # noqa: E501 + + :param node_name: The node_name of this V1ResourceSliceSpec. # noqa: E501 + :type: str + """ + + self._node_name = node_name + + @property + def node_selector(self): + """Gets the node_selector of this V1ResourceSliceSpec. # noqa: E501 + + + :return: The node_selector of this V1ResourceSliceSpec. # noqa: E501 + :rtype: V1NodeSelector + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """Sets the node_selector of this V1ResourceSliceSpec. + + + :param node_selector: The node_selector of this V1ResourceSliceSpec. # noqa: E501 + :type: V1NodeSelector + """ + + self._node_selector = node_selector + + @property + def per_device_node_selection(self): + """Gets the per_device_node_selection of this V1ResourceSliceSpec. # noqa: E501 + + PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. # noqa: E501 + + :return: The per_device_node_selection of this V1ResourceSliceSpec. # noqa: E501 + :rtype: bool + """ + return self._per_device_node_selection + + @per_device_node_selection.setter + def per_device_node_selection(self, per_device_node_selection): + """Sets the per_device_node_selection of this V1ResourceSliceSpec. + + PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. # noqa: E501 + + :param per_device_node_selection: The per_device_node_selection of this V1ResourceSliceSpec. # noqa: E501 + :type: bool + """ + + self._per_device_node_selection = per_device_node_selection + + @property + def pool(self): + """Gets the pool of this V1ResourceSliceSpec. # noqa: E501 + + + :return: The pool of this V1ResourceSliceSpec. # noqa: E501 + :rtype: V1ResourcePool + """ + return self._pool + + @pool.setter + def pool(self, pool): + """Sets the pool of this V1ResourceSliceSpec. + + + :param pool: The pool of this V1ResourceSliceSpec. # noqa: E501 + :type: V1ResourcePool + """ + if self.local_vars_configuration.client_side_validation and pool is None: # noqa: E501 + raise ValueError("Invalid value for `pool`, must not be `None`") # noqa: E501 + + self._pool = pool + + @property + def shared_counters(self): + """Gets the shared_counters of this V1ResourceSliceSpec. # noqa: E501 + + SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the counter sets must be unique in the ResourcePool. Only one of Devices and SharedCounters can be set in a ResourceSlice. The maximum number of counter sets is 8. # noqa: E501 + + :return: The shared_counters of this V1ResourceSliceSpec. # noqa: E501 + :rtype: list[V1CounterSet] + """ + return self._shared_counters + + @shared_counters.setter + def shared_counters(self, shared_counters): + """Sets the shared_counters of this V1ResourceSliceSpec. + + SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the counter sets must be unique in the ResourcePool. Only one of Devices and SharedCounters can be set in a ResourceSlice. The maximum number of counter sets is 8. # noqa: E501 + + :param shared_counters: The shared_counters of this V1ResourceSliceSpec. # noqa: E501 + :type: list[V1CounterSet] + """ + + self._shared_counters = shared_counters + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceSliceSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceSliceSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_status.py new file mode 100644 index 0000000000000000000000000000000000000000..81dd7d7f00430c17aba540ea813e0b27bbf8a856 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_resource_status.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ResourceStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str', + 'resources': 'list[V1ResourceHealth]' + } + + attribute_map = { + 'name': 'name', + 'resources': 'resources' + } + + def __init__(self, name=None, resources=None, local_vars_configuration=None): # noqa: E501 + """V1ResourceStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self._resources = None + self.discriminator = None + + self.name = name + if resources is not None: + self.resources = resources + + @property + def name(self): + """Gets the name of this V1ResourceStatus. # noqa: E501 + + Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container. # noqa: E501 + + :return: The name of this V1ResourceStatus. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1ResourceStatus. + + Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container. # noqa: E501 + + :param name: The name of this V1ResourceStatus. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def resources(self): + """Gets the resources of this V1ResourceStatus. # noqa: E501 + + List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. # noqa: E501 + + :return: The resources of this V1ResourceStatus. # noqa: E501 + :rtype: list[V1ResourceHealth] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1ResourceStatus. + + List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases. # noqa: E501 + + :param resources: The resources of this V1ResourceStatus. # noqa: E501 + :type: list[V1ResourceHealth] + """ + + self._resources = resources + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ResourceStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role.py new file mode 100644 index 0000000000000000000000000000000000000000..412c2b3a12333ade52db8405740a331da86f8f43 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Role(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'rules': 'list[V1PolicyRule]' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'rules': 'rules' + } + + def __init__(self, api_version=None, kind=None, metadata=None, rules=None, local_vars_configuration=None): # noqa: E501 + """V1Role - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._rules = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if rules is not None: + self.rules = rules + + @property + def api_version(self): + """Gets the api_version of this V1Role. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Role. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1Role. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Role. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1Role. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1Role. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1Role. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1Role. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1Role. # noqa: E501 + + + :return: The metadata of this V1Role. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1Role. + + + :param metadata: The metadata of this V1Role. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def rules(self): + """Gets the rules of this V1Role. # noqa: E501 + + Rules holds all the PolicyRules for this Role # noqa: E501 + + :return: The rules of this V1Role. # noqa: E501 + :rtype: list[V1PolicyRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """Sets the rules of this V1Role. + + Rules holds all the PolicyRules for this Role # noqa: E501 + + :param rules: The rules of this V1Role. # noqa: E501 + :type: list[V1PolicyRule] + """ + + self._rules = rules + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Role): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Role): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_binding.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_binding.py new file mode 100644 index 0000000000000000000000000000000000000000..a8865bc5fd83f8deb1dc88096cac3c07a034b0ae --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_binding.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RoleBinding(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'role_ref': 'V1RoleRef', + 'subjects': 'list[RbacV1Subject]' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'role_ref': 'roleRef', + 'subjects': 'subjects' + } + + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, local_vars_configuration=None): # noqa: E501 + """V1RoleBinding - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._role_ref = None + self._subjects = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.role_ref = role_ref + if subjects is not None: + self.subjects = subjects + + @property + def api_version(self): + """Gets the api_version of this V1RoleBinding. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1RoleBinding. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1RoleBinding. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1RoleBinding. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1RoleBinding. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1RoleBinding. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1RoleBinding. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1RoleBinding. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1RoleBinding. # noqa: E501 + + + :return: The metadata of this V1RoleBinding. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1RoleBinding. + + + :param metadata: The metadata of this V1RoleBinding. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def role_ref(self): + """Gets the role_ref of this V1RoleBinding. # noqa: E501 + + + :return: The role_ref of this V1RoleBinding. # noqa: E501 + :rtype: V1RoleRef + """ + return self._role_ref + + @role_ref.setter + def role_ref(self, role_ref): + """Sets the role_ref of this V1RoleBinding. + + + :param role_ref: The role_ref of this V1RoleBinding. # noqa: E501 + :type: V1RoleRef + """ + if self.local_vars_configuration.client_side_validation and role_ref is None: # noqa: E501 + raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 + + self._role_ref = role_ref + + @property + def subjects(self): + """Gets the subjects of this V1RoleBinding. # noqa: E501 + + Subjects holds references to the objects the role applies to. # noqa: E501 + + :return: The subjects of this V1RoleBinding. # noqa: E501 + :rtype: list[RbacV1Subject] + """ + return self._subjects + + @subjects.setter + def subjects(self, subjects): + """Sets the subjects of this V1RoleBinding. + + Subjects holds references to the objects the role applies to. # noqa: E501 + + :param subjects: The subjects of this V1RoleBinding. # noqa: E501 + :type: list[RbacV1Subject] + """ + + self._subjects = subjects + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RoleBinding): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RoleBinding): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_binding_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_binding_list.py new file mode 100644 index 0000000000000000000000000000000000000000..cb6bbe2f6c08dc946dfd37980302e80fbf012689 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_binding_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RoleBindingList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1RoleBinding]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1RoleBindingList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1RoleBindingList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1RoleBindingList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1RoleBindingList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1RoleBindingList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1RoleBindingList. # noqa: E501 + + Items is a list of RoleBindings # noqa: E501 + + :return: The items of this V1RoleBindingList. # noqa: E501 + :rtype: list[V1RoleBinding] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1RoleBindingList. + + Items is a list of RoleBindings # noqa: E501 + + :param items: The items of this V1RoleBindingList. # noqa: E501 + :type: list[V1RoleBinding] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1RoleBindingList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1RoleBindingList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1RoleBindingList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1RoleBindingList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1RoleBindingList. # noqa: E501 + + + :return: The metadata of this V1RoleBindingList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1RoleBindingList. + + + :param metadata: The metadata of this V1RoleBindingList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RoleBindingList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RoleBindingList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_list.py new file mode 100644 index 0000000000000000000000000000000000000000..a6ac0fd38940545ea06850ed4ec57113dd111314 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RoleList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1Role]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1RoleList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1RoleList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1RoleList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1RoleList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1RoleList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1RoleList. # noqa: E501 + + Items is a list of Roles # noqa: E501 + + :return: The items of this V1RoleList. # noqa: E501 + :rtype: list[V1Role] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1RoleList. + + Items is a list of Roles # noqa: E501 + + :param items: The items of this V1RoleList. # noqa: E501 + :type: list[V1Role] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1RoleList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1RoleList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1RoleList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1RoleList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1RoleList. # noqa: E501 + + + :return: The metadata of this V1RoleList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1RoleList. + + + :param metadata: The metadata of this V1RoleList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RoleList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RoleList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_ref.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_ref.py new file mode 100644 index 0000000000000000000000000000000000000000..3dffbd77c8815ba171d89c24e19867cc804e4781 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_role_ref.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RoleRef(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_group': 'str', + 'kind': 'str', + 'name': 'str' + } + + attribute_map = { + 'api_group': 'apiGroup', + 'kind': 'kind', + 'name': 'name' + } + + def __init__(self, api_group=None, kind=None, name=None, local_vars_configuration=None): # noqa: E501 + """V1RoleRef - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_group = None + self._kind = None + self._name = None + self.discriminator = None + + self.api_group = api_group + self.kind = kind + self.name = name + + @property + def api_group(self): + """Gets the api_group of this V1RoleRef. # noqa: E501 + + APIGroup is the group for the resource being referenced # noqa: E501 + + :return: The api_group of this V1RoleRef. # noqa: E501 + :rtype: str + """ + return self._api_group + + @api_group.setter + def api_group(self, api_group): + """Sets the api_group of this V1RoleRef. + + APIGroup is the group for the resource being referenced # noqa: E501 + + :param api_group: The api_group of this V1RoleRef. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and api_group is None: # noqa: E501 + raise ValueError("Invalid value for `api_group`, must not be `None`") # noqa: E501 + + self._api_group = api_group + + @property + def kind(self): + """Gets the kind of this V1RoleRef. # noqa: E501 + + Kind is the type of resource being referenced # noqa: E501 + + :return: The kind of this V1RoleRef. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1RoleRef. + + Kind is the type of resource being referenced # noqa: E501 + + :param kind: The kind of this V1RoleRef. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 + + self._kind = kind + + @property + def name(self): + """Gets the name of this V1RoleRef. # noqa: E501 + + Name is the name of resource being referenced # noqa: E501 + + :return: The name of this V1RoleRef. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1RoleRef. + + Name is the name of resource being referenced # noqa: E501 + + :param name: The name of this V1RoleRef. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RoleRef): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RoleRef): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rolling_update_daemon_set.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rolling_update_daemon_set.py new file mode 100644 index 0000000000000000000000000000000000000000..c7cabefc231e1b6b0c0af2d9777bcb9fa6f21c68 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rolling_update_daemon_set.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RollingUpdateDaemonSet(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'max_surge': 'object', + 'max_unavailable': 'object' + } + + attribute_map = { + 'max_surge': 'maxSurge', + 'max_unavailable': 'maxUnavailable' + } + + def __init__(self, max_surge=None, max_unavailable=None, local_vars_configuration=None): # noqa: E501 + """V1RollingUpdateDaemonSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._max_surge = None + self._max_unavailable = None + self.discriminator = None + + if max_surge is not None: + self.max_surge = max_surge + if max_unavailable is not None: + self.max_unavailable = max_unavailable + + @property + def max_surge(self): + """Gets the max_surge of this V1RollingUpdateDaemonSet. # noqa: E501 + + The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. # noqa: E501 + + :return: The max_surge of this V1RollingUpdateDaemonSet. # noqa: E501 + :rtype: object + """ + return self._max_surge + + @max_surge.setter + def max_surge(self, max_surge): + """Sets the max_surge of this V1RollingUpdateDaemonSet. + + The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. # noqa: E501 + + :param max_surge: The max_surge of this V1RollingUpdateDaemonSet. # noqa: E501 + :type: object + """ + + self._max_surge = max_surge + + @property + def max_unavailable(self): + """Gets the max_unavailable of this V1RollingUpdateDaemonSet. # noqa: E501 + + The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. # noqa: E501 + + :return: The max_unavailable of this V1RollingUpdateDaemonSet. # noqa: E501 + :rtype: object + """ + return self._max_unavailable + + @max_unavailable.setter + def max_unavailable(self, max_unavailable): + """Sets the max_unavailable of this V1RollingUpdateDaemonSet. + + The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. # noqa: E501 + + :param max_unavailable: The max_unavailable of this V1RollingUpdateDaemonSet. # noqa: E501 + :type: object + """ + + self._max_unavailable = max_unavailable + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RollingUpdateDaemonSet): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RollingUpdateDaemonSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rolling_update_deployment.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rolling_update_deployment.py new file mode 100644 index 0000000000000000000000000000000000000000..b839d2755fbc5b16e9c785629cc51cfccb8f7b46 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rolling_update_deployment.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RollingUpdateDeployment(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'max_surge': 'object', + 'max_unavailable': 'object' + } + + attribute_map = { + 'max_surge': 'maxSurge', + 'max_unavailable': 'maxUnavailable' + } + + def __init__(self, max_surge=None, max_unavailable=None, local_vars_configuration=None): # noqa: E501 + """V1RollingUpdateDeployment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._max_surge = None + self._max_unavailable = None + self.discriminator = None + + if max_surge is not None: + self.max_surge = max_surge + if max_unavailable is not None: + self.max_unavailable = max_unavailable + + @property + def max_surge(self): + """Gets the max_surge of this V1RollingUpdateDeployment. # noqa: E501 + + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. # noqa: E501 + + :return: The max_surge of this V1RollingUpdateDeployment. # noqa: E501 + :rtype: object + """ + return self._max_surge + + @max_surge.setter + def max_surge(self, max_surge): + """Sets the max_surge of this V1RollingUpdateDeployment. + + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. # noqa: E501 + + :param max_surge: The max_surge of this V1RollingUpdateDeployment. # noqa: E501 + :type: object + """ + + self._max_surge = max_surge + + @property + def max_unavailable(self): + """Gets the max_unavailable of this V1RollingUpdateDeployment. # noqa: E501 + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. # noqa: E501 + + :return: The max_unavailable of this V1RollingUpdateDeployment. # noqa: E501 + :rtype: object + """ + return self._max_unavailable + + @max_unavailable.setter + def max_unavailable(self, max_unavailable): + """Sets the max_unavailable of this V1RollingUpdateDeployment. + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. # noqa: E501 + + :param max_unavailable: The max_unavailable of this V1RollingUpdateDeployment. # noqa: E501 + :type: object + """ + + self._max_unavailable = max_unavailable + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RollingUpdateDeployment): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RollingUpdateDeployment): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py new file mode 100644 index 0000000000000000000000000000000000000000..b99433bb4669c1103ff89b85165aba8cb875600e --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RollingUpdateStatefulSetStrategy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'max_unavailable': 'object', + 'partition': 'int' + } + + attribute_map = { + 'max_unavailable': 'maxUnavailable', + 'partition': 'partition' + } + + def __init__(self, max_unavailable=None, partition=None, local_vars_configuration=None): # noqa: E501 + """V1RollingUpdateStatefulSetStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._max_unavailable = None + self._partition = None + self.discriminator = None + + if max_unavailable is not None: + self.max_unavailable = max_unavailable + if partition is not None: + self.partition = partition + + @property + def max_unavailable(self): + """Gets the max_unavailable of this V1RollingUpdateStatefulSetStrategy. # noqa: E501 + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is beta-level and is enabled by default. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. This setting might not be effective for the OrderedReady podManagementPolicy. That policy ensures pods are created and become ready one at a time. # noqa: E501 + + :return: The max_unavailable of this V1RollingUpdateStatefulSetStrategy. # noqa: E501 + :rtype: object + """ + return self._max_unavailable + + @max_unavailable.setter + def max_unavailable(self, max_unavailable): + """Sets the max_unavailable of this V1RollingUpdateStatefulSetStrategy. + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is beta-level and is enabled by default. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. This setting might not be effective for the OrderedReady podManagementPolicy. That policy ensures pods are created and become ready one at a time. # noqa: E501 + + :param max_unavailable: The max_unavailable of this V1RollingUpdateStatefulSetStrategy. # noqa: E501 + :type: object + """ + + self._max_unavailable = max_unavailable + + @property + def partition(self): + """Gets the partition of this V1RollingUpdateStatefulSetStrategy. # noqa: E501 + + Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0. # noqa: E501 + + :return: The partition of this V1RollingUpdateStatefulSetStrategy. # noqa: E501 + :rtype: int + """ + return self._partition + + @partition.setter + def partition(self, partition): + """Sets the partition of this V1RollingUpdateStatefulSetStrategy. + + Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0. # noqa: E501 + + :param partition: The partition of this V1RollingUpdateStatefulSetStrategy. # noqa: E501 + :type: int + """ + + self._partition = partition + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RollingUpdateStatefulSetStrategy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RollingUpdateStatefulSetStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rule_with_operations.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rule_with_operations.py new file mode 100644 index 0000000000000000000000000000000000000000..aba7dc99376e26c0bed911104251b1a2e994eaa0 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_rule_with_operations.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RuleWithOperations(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_groups': 'list[str]', + 'api_versions': 'list[str]', + 'operations': 'list[str]', + 'resources': 'list[str]', + 'scope': 'str' + } + + attribute_map = { + 'api_groups': 'apiGroups', + 'api_versions': 'apiVersions', + 'operations': 'operations', + 'resources': 'resources', + 'scope': 'scope' + } + + def __init__(self, api_groups=None, api_versions=None, operations=None, resources=None, scope=None, local_vars_configuration=None): # noqa: E501 + """V1RuleWithOperations - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_groups = None + self._api_versions = None + self._operations = None + self._resources = None + self._scope = None + self.discriminator = None + + if api_groups is not None: + self.api_groups = api_groups + if api_versions is not None: + self.api_versions = api_versions + if operations is not None: + self.operations = operations + if resources is not None: + self.resources = resources + if scope is not None: + self.scope = scope + + @property + def api_groups(self): + """Gets the api_groups of this V1RuleWithOperations. # noqa: E501 + + APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :return: The api_groups of this V1RuleWithOperations. # noqa: E501 + :rtype: list[str] + """ + return self._api_groups + + @api_groups.setter + def api_groups(self, api_groups): + """Sets the api_groups of this V1RuleWithOperations. + + APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :param api_groups: The api_groups of this V1RuleWithOperations. # noqa: E501 + :type: list[str] + """ + + self._api_groups = api_groups + + @property + def api_versions(self): + """Gets the api_versions of this V1RuleWithOperations. # noqa: E501 + + APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :return: The api_versions of this V1RuleWithOperations. # noqa: E501 + :rtype: list[str] + """ + return self._api_versions + + @api_versions.setter + def api_versions(self, api_versions): + """Sets the api_versions of this V1RuleWithOperations. + + APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :param api_versions: The api_versions of this V1RuleWithOperations. # noqa: E501 + :type: list[str] + """ + + self._api_versions = api_versions + + @property + def operations(self): + """Gets the operations of this V1RuleWithOperations. # noqa: E501 + + Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :return: The operations of this V1RuleWithOperations. # noqa: E501 + :rtype: list[str] + """ + return self._operations + + @operations.setter + def operations(self, operations): + """Sets the operations of this V1RuleWithOperations. + + Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :param operations: The operations of this V1RuleWithOperations. # noqa: E501 + :type: list[str] + """ + + self._operations = operations + + @property + def resources(self): + """Gets the resources of this V1RuleWithOperations. # noqa: E501 + + Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. # noqa: E501 + + :return: The resources of this V1RuleWithOperations. # noqa: E501 + :rtype: list[str] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1RuleWithOperations. + + Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. # noqa: E501 + + :param resources: The resources of this V1RuleWithOperations. # noqa: E501 + :type: list[str] + """ + + self._resources = resources + + @property + def scope(self): + """Gets the scope of this V1RuleWithOperations. # noqa: E501 + + scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". # noqa: E501 + + :return: The scope of this V1RuleWithOperations. # noqa: E501 + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """Sets the scope of this V1RuleWithOperations. + + scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". # noqa: E501 + + :param scope: The scope of this V1RuleWithOperations. # noqa: E501 + :type: str + """ + + self._scope = scope + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RuleWithOperations): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RuleWithOperations): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_runtime_class.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_runtime_class.py new file mode 100644 index 0000000000000000000000000000000000000000..b5a36c05c102583af2a128f06ab1467089cf5447 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_runtime_class.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RuntimeClass(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'handler': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'overhead': 'V1Overhead', + 'scheduling': 'V1Scheduling' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'handler': 'handler', + 'kind': 'kind', + 'metadata': 'metadata', + 'overhead': 'overhead', + 'scheduling': 'scheduling' + } + + def __init__(self, api_version=None, handler=None, kind=None, metadata=None, overhead=None, scheduling=None, local_vars_configuration=None): # noqa: E501 + """V1RuntimeClass - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._handler = None + self._kind = None + self._metadata = None + self._overhead = None + self._scheduling = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.handler = handler + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if overhead is not None: + self.overhead = overhead + if scheduling is not None: + self.scheduling = scheduling + + @property + def api_version(self): + """Gets the api_version of this V1RuntimeClass. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1RuntimeClass. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1RuntimeClass. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1RuntimeClass. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def handler(self): + """Gets the handler of this V1RuntimeClass. # noqa: E501 + + handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. # noqa: E501 + + :return: The handler of this V1RuntimeClass. # noqa: E501 + :rtype: str + """ + return self._handler + + @handler.setter + def handler(self, handler): + """Sets the handler of this V1RuntimeClass. + + handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. # noqa: E501 + + :param handler: The handler of this V1RuntimeClass. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 + raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 + + self._handler = handler + + @property + def kind(self): + """Gets the kind of this V1RuntimeClass. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1RuntimeClass. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1RuntimeClass. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1RuntimeClass. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1RuntimeClass. # noqa: E501 + + + :return: The metadata of this V1RuntimeClass. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1RuntimeClass. + + + :param metadata: The metadata of this V1RuntimeClass. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def overhead(self): + """Gets the overhead of this V1RuntimeClass. # noqa: E501 + + + :return: The overhead of this V1RuntimeClass. # noqa: E501 + :rtype: V1Overhead + """ + return self._overhead + + @overhead.setter + def overhead(self, overhead): + """Sets the overhead of this V1RuntimeClass. + + + :param overhead: The overhead of this V1RuntimeClass. # noqa: E501 + :type: V1Overhead + """ + + self._overhead = overhead + + @property + def scheduling(self): + """Gets the scheduling of this V1RuntimeClass. # noqa: E501 + + + :return: The scheduling of this V1RuntimeClass. # noqa: E501 + :rtype: V1Scheduling + """ + return self._scheduling + + @scheduling.setter + def scheduling(self, scheduling): + """Sets the scheduling of this V1RuntimeClass. + + + :param scheduling: The scheduling of this V1RuntimeClass. # noqa: E501 + :type: V1Scheduling + """ + + self._scheduling = scheduling + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RuntimeClass): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RuntimeClass): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_runtime_class_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_runtime_class_list.py new file mode 100644 index 0000000000000000000000000000000000000000..23de26a48df0266a638038c32bee32132d504c9a --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_runtime_class_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1RuntimeClassList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1RuntimeClass]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1RuntimeClassList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1RuntimeClassList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1RuntimeClassList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1RuntimeClassList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1RuntimeClassList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1RuntimeClassList. # noqa: E501 + + items is a list of schema objects. # noqa: E501 + + :return: The items of this V1RuntimeClassList. # noqa: E501 + :rtype: list[V1RuntimeClass] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1RuntimeClassList. + + items is a list of schema objects. # noqa: E501 + + :param items: The items of this V1RuntimeClassList. # noqa: E501 + :type: list[V1RuntimeClass] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1RuntimeClassList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1RuntimeClassList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1RuntimeClassList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1RuntimeClassList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1RuntimeClassList. # noqa: E501 + + + :return: The metadata of this V1RuntimeClassList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1RuntimeClassList. + + + :param metadata: The metadata of this V1RuntimeClassList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RuntimeClassList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1RuntimeClassList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale.py new file mode 100644 index 0000000000000000000000000000000000000000..ff314e036d8ec9c79078d6436b92040701533862 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Scale(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ScaleSpec', + 'status': 'V1ScaleStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1Scale - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1Scale. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Scale. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1Scale. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Scale. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1Scale. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1Scale. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1Scale. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1Scale. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1Scale. # noqa: E501 + + + :return: The metadata of this V1Scale. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1Scale. + + + :param metadata: The metadata of this V1Scale. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1Scale. # noqa: E501 + + + :return: The spec of this V1Scale. # noqa: E501 + :rtype: V1ScaleSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1Scale. + + + :param spec: The spec of this V1Scale. # noqa: E501 + :type: V1ScaleSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1Scale. # noqa: E501 + + + :return: The status of this V1Scale. # noqa: E501 + :rtype: V1ScaleStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1Scale. + + + :param status: The status of this V1Scale. # noqa: E501 + :type: V1ScaleStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Scale): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Scale): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_io_persistent_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_io_persistent_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..a05c2a684b777bc14a35a1cd8c8061a5b0d5ff5c --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_io_persistent_volume_source.py @@ -0,0 +1,375 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ScaleIOPersistentVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'fs_type': 'str', + 'gateway': 'str', + 'protection_domain': 'str', + 'read_only': 'bool', + 'secret_ref': 'V1SecretReference', + 'ssl_enabled': 'bool', + 'storage_mode': 'str', + 'storage_pool': 'str', + 'system': 'str', + 'volume_name': 'str' + } + + attribute_map = { + 'fs_type': 'fsType', + 'gateway': 'gateway', + 'protection_domain': 'protectionDomain', + 'read_only': 'readOnly', + 'secret_ref': 'secretRef', + 'ssl_enabled': 'sslEnabled', + 'storage_mode': 'storageMode', + 'storage_pool': 'storagePool', + 'system': 'system', + 'volume_name': 'volumeName' + } + + def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None, local_vars_configuration=None): # noqa: E501 + """V1ScaleIOPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._fs_type = None + self._gateway = None + self._protection_domain = None + self._read_only = None + self._secret_ref = None + self._ssl_enabled = None + self._storage_mode = None + self._storage_pool = None + self._system = None + self._volume_name = None + self.discriminator = None + + if fs_type is not None: + self.fs_type = fs_type + self.gateway = gateway + if protection_domain is not None: + self.protection_domain = protection_domain + if read_only is not None: + self.read_only = read_only + self.secret_ref = secret_ref + if ssl_enabled is not None: + self.ssl_enabled = ssl_enabled + if storage_mode is not None: + self.storage_mode = storage_mode + if storage_pool is not None: + self.storage_pool = storage_pool + self.system = system + if volume_name is not None: + self.volume_name = volume_name + + @property + def fs_type(self): + """Gets the fs_type of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\" # noqa: E501 + + :return: The fs_type of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """Sets the fs_type of this V1ScaleIOPersistentVolumeSource. + + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\" # noqa: E501 + + :param fs_type: The fs_type of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._fs_type = fs_type + + @property + def gateway(self): + """Gets the gateway of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + gateway is the host address of the ScaleIO API Gateway. # noqa: E501 + + :return: The gateway of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._gateway + + @gateway.setter + def gateway(self, gateway): + """Sets the gateway of this V1ScaleIOPersistentVolumeSource. + + gateway is the host address of the ScaleIO API Gateway. # noqa: E501 + + :param gateway: The gateway of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and gateway is None: # noqa: E501 + raise ValueError("Invalid value for `gateway`, must not be `None`") # noqa: E501 + + self._gateway = gateway + + @property + def protection_domain(self): + """Gets the protection_domain of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. # noqa: E501 + + :return: The protection_domain of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._protection_domain + + @protection_domain.setter + def protection_domain(self, protection_domain): + """Sets the protection_domain of this V1ScaleIOPersistentVolumeSource. + + protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. # noqa: E501 + + :param protection_domain: The protection_domain of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._protection_domain = protection_domain + + @property + def read_only(self): + """Gets the read_only of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :return: The read_only of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """Sets the read_only of this V1ScaleIOPersistentVolumeSource. + + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :param read_only: The read_only of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :type: bool + """ + + self._read_only = read_only + + @property + def secret_ref(self): + """Gets the secret_ref of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + + :return: The secret_ref of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :rtype: V1SecretReference + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """Sets the secret_ref of this V1ScaleIOPersistentVolumeSource. + + + :param secret_ref: The secret_ref of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :type: V1SecretReference + """ + if self.local_vars_configuration.client_side_validation and secret_ref is None: # noqa: E501 + raise ValueError("Invalid value for `secret_ref`, must not be `None`") # noqa: E501 + + self._secret_ref = secret_ref + + @property + def ssl_enabled(self): + """Gets the ssl_enabled of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + sslEnabled is the flag to enable/disable SSL communication with Gateway, default false # noqa: E501 + + :return: The ssl_enabled of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._ssl_enabled + + @ssl_enabled.setter + def ssl_enabled(self, ssl_enabled): + """Sets the ssl_enabled of this V1ScaleIOPersistentVolumeSource. + + sslEnabled is the flag to enable/disable SSL communication with Gateway, default false # noqa: E501 + + :param ssl_enabled: The ssl_enabled of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :type: bool + """ + + self._ssl_enabled = ssl_enabled + + @property + def storage_mode(self): + """Gets the storage_mode of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. # noqa: E501 + + :return: The storage_mode of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._storage_mode + + @storage_mode.setter + def storage_mode(self, storage_mode): + """Sets the storage_mode of this V1ScaleIOPersistentVolumeSource. + + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. # noqa: E501 + + :param storage_mode: The storage_mode of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._storage_mode = storage_mode + + @property + def storage_pool(self): + """Gets the storage_pool of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + storagePool is the ScaleIO Storage Pool associated with the protection domain. # noqa: E501 + + :return: The storage_pool of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._storage_pool + + @storage_pool.setter + def storage_pool(self, storage_pool): + """Sets the storage_pool of this V1ScaleIOPersistentVolumeSource. + + storagePool is the ScaleIO Storage Pool associated with the protection domain. # noqa: E501 + + :param storage_pool: The storage_pool of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._storage_pool = storage_pool + + @property + def system(self): + """Gets the system of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + system is the name of the storage system as configured in ScaleIO. # noqa: E501 + + :return: The system of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._system + + @system.setter + def system(self, system): + """Sets the system of this V1ScaleIOPersistentVolumeSource. + + system is the name of the storage system as configured in ScaleIO. # noqa: E501 + + :param system: The system of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and system is None: # noqa: E501 + raise ValueError("Invalid value for `system`, must not be `None`") # noqa: E501 + + self._system = system + + @property + def volume_name(self): + """Gets the volume_name of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 + + :return: The volume_name of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """Sets the volume_name of this V1ScaleIOPersistentVolumeSource. + + volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 + + :param volume_name: The volume_name of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._volume_name = volume_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ScaleIOPersistentVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ScaleIOPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_io_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_io_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..7828ae657627b5dc97f0d6bbadaf9be6a7898b51 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_io_volume_source.py @@ -0,0 +1,375 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ScaleIOVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'fs_type': 'str', + 'gateway': 'str', + 'protection_domain': 'str', + 'read_only': 'bool', + 'secret_ref': 'V1LocalObjectReference', + 'ssl_enabled': 'bool', + 'storage_mode': 'str', + 'storage_pool': 'str', + 'system': 'str', + 'volume_name': 'str' + } + + attribute_map = { + 'fs_type': 'fsType', + 'gateway': 'gateway', + 'protection_domain': 'protectionDomain', + 'read_only': 'readOnly', + 'secret_ref': 'secretRef', + 'ssl_enabled': 'sslEnabled', + 'storage_mode': 'storageMode', + 'storage_pool': 'storagePool', + 'system': 'system', + 'volume_name': 'volumeName' + } + + def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None, local_vars_configuration=None): # noqa: E501 + """V1ScaleIOVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._fs_type = None + self._gateway = None + self._protection_domain = None + self._read_only = None + self._secret_ref = None + self._ssl_enabled = None + self._storage_mode = None + self._storage_pool = None + self._system = None + self._volume_name = None + self.discriminator = None + + if fs_type is not None: + self.fs_type = fs_type + self.gateway = gateway + if protection_domain is not None: + self.protection_domain = protection_domain + if read_only is not None: + self.read_only = read_only + self.secret_ref = secret_ref + if ssl_enabled is not None: + self.ssl_enabled = ssl_enabled + if storage_mode is not None: + self.storage_mode = storage_mode + if storage_pool is not None: + self.storage_pool = storage_pool + self.system = system + if volume_name is not None: + self.volume_name = volume_name + + @property + def fs_type(self): + """Gets the fs_type of this V1ScaleIOVolumeSource. # noqa: E501 + + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". # noqa: E501 + + :return: The fs_type of this V1ScaleIOVolumeSource. # noqa: E501 + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """Sets the fs_type of this V1ScaleIOVolumeSource. + + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". # noqa: E501 + + :param fs_type: The fs_type of this V1ScaleIOVolumeSource. # noqa: E501 + :type: str + """ + + self._fs_type = fs_type + + @property + def gateway(self): + """Gets the gateway of this V1ScaleIOVolumeSource. # noqa: E501 + + gateway is the host address of the ScaleIO API Gateway. # noqa: E501 + + :return: The gateway of this V1ScaleIOVolumeSource. # noqa: E501 + :rtype: str + """ + return self._gateway + + @gateway.setter + def gateway(self, gateway): + """Sets the gateway of this V1ScaleIOVolumeSource. + + gateway is the host address of the ScaleIO API Gateway. # noqa: E501 + + :param gateway: The gateway of this V1ScaleIOVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and gateway is None: # noqa: E501 + raise ValueError("Invalid value for `gateway`, must not be `None`") # noqa: E501 + + self._gateway = gateway + + @property + def protection_domain(self): + """Gets the protection_domain of this V1ScaleIOVolumeSource. # noqa: E501 + + protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. # noqa: E501 + + :return: The protection_domain of this V1ScaleIOVolumeSource. # noqa: E501 + :rtype: str + """ + return self._protection_domain + + @protection_domain.setter + def protection_domain(self, protection_domain): + """Sets the protection_domain of this V1ScaleIOVolumeSource. + + protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. # noqa: E501 + + :param protection_domain: The protection_domain of this V1ScaleIOVolumeSource. # noqa: E501 + :type: str + """ + + self._protection_domain = protection_domain + + @property + def read_only(self): + """Gets the read_only of this V1ScaleIOVolumeSource. # noqa: E501 + + readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :return: The read_only of this V1ScaleIOVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """Sets the read_only of this V1ScaleIOVolumeSource. + + readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :param read_only: The read_only of this V1ScaleIOVolumeSource. # noqa: E501 + :type: bool + """ + + self._read_only = read_only + + @property + def secret_ref(self): + """Gets the secret_ref of this V1ScaleIOVolumeSource. # noqa: E501 + + + :return: The secret_ref of this V1ScaleIOVolumeSource. # noqa: E501 + :rtype: V1LocalObjectReference + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """Sets the secret_ref of this V1ScaleIOVolumeSource. + + + :param secret_ref: The secret_ref of this V1ScaleIOVolumeSource. # noqa: E501 + :type: V1LocalObjectReference + """ + if self.local_vars_configuration.client_side_validation and secret_ref is None: # noqa: E501 + raise ValueError("Invalid value for `secret_ref`, must not be `None`") # noqa: E501 + + self._secret_ref = secret_ref + + @property + def ssl_enabled(self): + """Gets the ssl_enabled of this V1ScaleIOVolumeSource. # noqa: E501 + + sslEnabled Flag enable/disable SSL communication with Gateway, default false # noqa: E501 + + :return: The ssl_enabled of this V1ScaleIOVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._ssl_enabled + + @ssl_enabled.setter + def ssl_enabled(self, ssl_enabled): + """Sets the ssl_enabled of this V1ScaleIOVolumeSource. + + sslEnabled Flag enable/disable SSL communication with Gateway, default false # noqa: E501 + + :param ssl_enabled: The ssl_enabled of this V1ScaleIOVolumeSource. # noqa: E501 + :type: bool + """ + + self._ssl_enabled = ssl_enabled + + @property + def storage_mode(self): + """Gets the storage_mode of this V1ScaleIOVolumeSource. # noqa: E501 + + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. # noqa: E501 + + :return: The storage_mode of this V1ScaleIOVolumeSource. # noqa: E501 + :rtype: str + """ + return self._storage_mode + + @storage_mode.setter + def storage_mode(self, storage_mode): + """Sets the storage_mode of this V1ScaleIOVolumeSource. + + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. # noqa: E501 + + :param storage_mode: The storage_mode of this V1ScaleIOVolumeSource. # noqa: E501 + :type: str + """ + + self._storage_mode = storage_mode + + @property + def storage_pool(self): + """Gets the storage_pool of this V1ScaleIOVolumeSource. # noqa: E501 + + storagePool is the ScaleIO Storage Pool associated with the protection domain. # noqa: E501 + + :return: The storage_pool of this V1ScaleIOVolumeSource. # noqa: E501 + :rtype: str + """ + return self._storage_pool + + @storage_pool.setter + def storage_pool(self, storage_pool): + """Sets the storage_pool of this V1ScaleIOVolumeSource. + + storagePool is the ScaleIO Storage Pool associated with the protection domain. # noqa: E501 + + :param storage_pool: The storage_pool of this V1ScaleIOVolumeSource. # noqa: E501 + :type: str + """ + + self._storage_pool = storage_pool + + @property + def system(self): + """Gets the system of this V1ScaleIOVolumeSource. # noqa: E501 + + system is the name of the storage system as configured in ScaleIO. # noqa: E501 + + :return: The system of this V1ScaleIOVolumeSource. # noqa: E501 + :rtype: str + """ + return self._system + + @system.setter + def system(self, system): + """Sets the system of this V1ScaleIOVolumeSource. + + system is the name of the storage system as configured in ScaleIO. # noqa: E501 + + :param system: The system of this V1ScaleIOVolumeSource. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and system is None: # noqa: E501 + raise ValueError("Invalid value for `system`, must not be `None`") # noqa: E501 + + self._system = system + + @property + def volume_name(self): + """Gets the volume_name of this V1ScaleIOVolumeSource. # noqa: E501 + + volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 + + :return: The volume_name of this V1ScaleIOVolumeSource. # noqa: E501 + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """Sets the volume_name of this V1ScaleIOVolumeSource. + + volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 + + :param volume_name: The volume_name of this V1ScaleIOVolumeSource. # noqa: E501 + :type: str + """ + + self._volume_name = volume_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ScaleIOVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ScaleIOVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..5ff512dbbf93e4918669d8a9de73a132cc8a436a --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_spec.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ScaleSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'replicas': 'int' + } + + attribute_map = { + 'replicas': 'replicas' + } + + def __init__(self, replicas=None, local_vars_configuration=None): # noqa: E501 + """V1ScaleSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._replicas = None + self.discriminator = None + + if replicas is not None: + self.replicas = replicas + + @property + def replicas(self): + """Gets the replicas of this V1ScaleSpec. # noqa: E501 + + replicas is the desired number of instances for the scaled object. # noqa: E501 + + :return: The replicas of this V1ScaleSpec. # noqa: E501 + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """Sets the replicas of this V1ScaleSpec. + + replicas is the desired number of instances for the scaled object. # noqa: E501 + + :param replicas: The replicas of this V1ScaleSpec. # noqa: E501 + :type: int + """ + + self._replicas = replicas + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ScaleSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ScaleSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_status.py new file mode 100644 index 0000000000000000000000000000000000000000..e3e71dab390275bda77518a110ac8e8f1271bcfa --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scale_status.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ScaleStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'replicas': 'int', + 'selector': 'str' + } + + attribute_map = { + 'replicas': 'replicas', + 'selector': 'selector' + } + + def __init__(self, replicas=None, selector=None, local_vars_configuration=None): # noqa: E501 + """V1ScaleStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._replicas = None + self._selector = None + self.discriminator = None + + self.replicas = replicas + if selector is not None: + self.selector = selector + + @property + def replicas(self): + """Gets the replicas of this V1ScaleStatus. # noqa: E501 + + replicas is the actual number of observed instances of the scaled object. # noqa: E501 + + :return: The replicas of this V1ScaleStatus. # noqa: E501 + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """Sets the replicas of this V1ScaleStatus. + + replicas is the actual number of observed instances of the scaled object. # noqa: E501 + + :param replicas: The replicas of this V1ScaleStatus. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 + + self._replicas = replicas + + @property + def selector(self): + """Gets the selector of this V1ScaleStatus. # noqa: E501 + + selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ # noqa: E501 + + :return: The selector of this V1ScaleStatus. # noqa: E501 + :rtype: str + """ + return self._selector + + @selector.setter + def selector(self, selector): + """Sets the selector of this V1ScaleStatus. + + selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ # noqa: E501 + + :param selector: The selector of this V1ScaleStatus. # noqa: E501 + :type: str + """ + + self._selector = selector + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ScaleStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ScaleStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scheduling.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scheduling.py new file mode 100644 index 0000000000000000000000000000000000000000..67bd6d46cd47209a940f8c0cd239b0b9ba806812 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scheduling.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Scheduling(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'node_selector': 'dict(str, str)', + 'tolerations': 'list[V1Toleration]' + } + + attribute_map = { + 'node_selector': 'nodeSelector', + 'tolerations': 'tolerations' + } + + def __init__(self, node_selector=None, tolerations=None, local_vars_configuration=None): # noqa: E501 + """V1Scheduling - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._node_selector = None + self._tolerations = None + self.discriminator = None + + if node_selector is not None: + self.node_selector = node_selector + if tolerations is not None: + self.tolerations = tolerations + + @property + def node_selector(self): + """Gets the node_selector of this V1Scheduling. # noqa: E501 + + nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. # noqa: E501 + + :return: The node_selector of this V1Scheduling. # noqa: E501 + :rtype: dict(str, str) + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """Sets the node_selector of this V1Scheduling. + + nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. # noqa: E501 + + :param node_selector: The node_selector of this V1Scheduling. # noqa: E501 + :type: dict(str, str) + """ + + self._node_selector = node_selector + + @property + def tolerations(self): + """Gets the tolerations of this V1Scheduling. # noqa: E501 + + tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. # noqa: E501 + + :return: The tolerations of this V1Scheduling. # noqa: E501 + :rtype: list[V1Toleration] + """ + return self._tolerations + + @tolerations.setter + def tolerations(self, tolerations): + """Sets the tolerations of this V1Scheduling. + + tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. # noqa: E501 + + :param tolerations: The tolerations of this V1Scheduling. # noqa: E501 + :type: list[V1Toleration] + """ + + self._tolerations = tolerations + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Scheduling): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Scheduling): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scope_selector.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scope_selector.py new file mode 100644 index 0000000000000000000000000000000000000000..f1562c4ec1681070af706636d96bb0ba6e09a6d1 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scope_selector.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ScopeSelector(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'match_expressions': 'list[V1ScopedResourceSelectorRequirement]' + } + + attribute_map = { + 'match_expressions': 'matchExpressions' + } + + def __init__(self, match_expressions=None, local_vars_configuration=None): # noqa: E501 + """V1ScopeSelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._match_expressions = None + self.discriminator = None + + if match_expressions is not None: + self.match_expressions = match_expressions + + @property + def match_expressions(self): + """Gets the match_expressions of this V1ScopeSelector. # noqa: E501 + + A list of scope selector requirements by scope of the resources. # noqa: E501 + + :return: The match_expressions of this V1ScopeSelector. # noqa: E501 + :rtype: list[V1ScopedResourceSelectorRequirement] + """ + return self._match_expressions + + @match_expressions.setter + def match_expressions(self, match_expressions): + """Sets the match_expressions of this V1ScopeSelector. + + A list of scope selector requirements by scope of the resources. # noqa: E501 + + :param match_expressions: The match_expressions of this V1ScopeSelector. # noqa: E501 + :type: list[V1ScopedResourceSelectorRequirement] + """ + + self._match_expressions = match_expressions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ScopeSelector): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ScopeSelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scoped_resource_selector_requirement.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scoped_resource_selector_requirement.py new file mode 100644 index 0000000000000000000000000000000000000000..c0c61ff832a5e4e091425dd6803cce838a08f140 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_scoped_resource_selector_requirement.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ScopedResourceSelectorRequirement(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'operator': 'str', + 'scope_name': 'str', + 'values': 'list[str]' + } + + attribute_map = { + 'operator': 'operator', + 'scope_name': 'scopeName', + 'values': 'values' + } + + def __init__(self, operator=None, scope_name=None, values=None, local_vars_configuration=None): # noqa: E501 + """V1ScopedResourceSelectorRequirement - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._operator = None + self._scope_name = None + self._values = None + self.discriminator = None + + self.operator = operator + self.scope_name = scope_name + if values is not None: + self.values = values + + @property + def operator(self): + """Gets the operator of this V1ScopedResourceSelectorRequirement. # noqa: E501 + + Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. # noqa: E501 + + :return: The operator of this V1ScopedResourceSelectorRequirement. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this V1ScopedResourceSelectorRequirement. + + Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. # noqa: E501 + + :param operator: The operator of this V1ScopedResourceSelectorRequirement. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + + @property + def scope_name(self): + """Gets the scope_name of this V1ScopedResourceSelectorRequirement. # noqa: E501 + + The name of the scope that the selector applies to. # noqa: E501 + + :return: The scope_name of this V1ScopedResourceSelectorRequirement. # noqa: E501 + :rtype: str + """ + return self._scope_name + + @scope_name.setter + def scope_name(self, scope_name): + """Sets the scope_name of this V1ScopedResourceSelectorRequirement. + + The name of the scope that the selector applies to. # noqa: E501 + + :param scope_name: The scope_name of this V1ScopedResourceSelectorRequirement. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and scope_name is None: # noqa: E501 + raise ValueError("Invalid value for `scope_name`, must not be `None`") # noqa: E501 + + self._scope_name = scope_name + + @property + def values(self): + """Gets the values of this V1ScopedResourceSelectorRequirement. # noqa: E501 + + An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. # noqa: E501 + + :return: The values of this V1ScopedResourceSelectorRequirement. # noqa: E501 + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this V1ScopedResourceSelectorRequirement. + + An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. # noqa: E501 + + :param values: The values of this V1ScopedResourceSelectorRequirement. # noqa: E501 + :type: list[str] + """ + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ScopedResourceSelectorRequirement): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ScopedResourceSelectorRequirement): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_se_linux_options.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_se_linux_options.py new file mode 100644 index 0000000000000000000000000000000000000000..9351f5970ae4c5f488989207c294a9d6ab9711b0 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_se_linux_options.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SELinuxOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'level': 'str', + 'role': 'str', + 'type': 'str', + 'user': 'str' + } + + attribute_map = { + 'level': 'level', + 'role': 'role', + 'type': 'type', + 'user': 'user' + } + + def __init__(self, level=None, role=None, type=None, user=None, local_vars_configuration=None): # noqa: E501 + """V1SELinuxOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._level = None + self._role = None + self._type = None + self._user = None + self.discriminator = None + + if level is not None: + self.level = level + if role is not None: + self.role = role + if type is not None: + self.type = type + if user is not None: + self.user = user + + @property + def level(self): + """Gets the level of this V1SELinuxOptions. # noqa: E501 + + Level is SELinux level label that applies to the container. # noqa: E501 + + :return: The level of this V1SELinuxOptions. # noqa: E501 + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this V1SELinuxOptions. + + Level is SELinux level label that applies to the container. # noqa: E501 + + :param level: The level of this V1SELinuxOptions. # noqa: E501 + :type: str + """ + + self._level = level + + @property + def role(self): + """Gets the role of this V1SELinuxOptions. # noqa: E501 + + Role is a SELinux role label that applies to the container. # noqa: E501 + + :return: The role of this V1SELinuxOptions. # noqa: E501 + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """Sets the role of this V1SELinuxOptions. + + Role is a SELinux role label that applies to the container. # noqa: E501 + + :param role: The role of this V1SELinuxOptions. # noqa: E501 + :type: str + """ + + self._role = role + + @property + def type(self): + """Gets the type of this V1SELinuxOptions. # noqa: E501 + + Type is a SELinux type label that applies to the container. # noqa: E501 + + :return: The type of this V1SELinuxOptions. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1SELinuxOptions. + + Type is a SELinux type label that applies to the container. # noqa: E501 + + :param type: The type of this V1SELinuxOptions. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def user(self): + """Gets the user of this V1SELinuxOptions. # noqa: E501 + + User is a SELinux user label that applies to the container. # noqa: E501 + + :return: The user of this V1SELinuxOptions. # noqa: E501 + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this V1SELinuxOptions. + + User is a SELinux user label that applies to the container. # noqa: E501 + + :param user: The user of this V1SELinuxOptions. # noqa: E501 + :type: str + """ + + self._user = user + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SELinuxOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SELinuxOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_seccomp_profile.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_seccomp_profile.py new file mode 100644 index 0000000000000000000000000000000000000000..afcb0a6157f1108aee78df7ebd38c661784ca2c4 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_seccomp_profile.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SeccompProfile(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'localhost_profile': 'str', + 'type': 'str' + } + + attribute_map = { + 'localhost_profile': 'localhostProfile', + 'type': 'type' + } + + def __init__(self, localhost_profile=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1SeccompProfile - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._localhost_profile = None + self._type = None + self.discriminator = None + + if localhost_profile is not None: + self.localhost_profile = localhost_profile + self.type = type + + @property + def localhost_profile(self): + """Gets the localhost_profile of this V1SeccompProfile. # noqa: E501 + + localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type. # noqa: E501 + + :return: The localhost_profile of this V1SeccompProfile. # noqa: E501 + :rtype: str + """ + return self._localhost_profile + + @localhost_profile.setter + def localhost_profile(self, localhost_profile): + """Sets the localhost_profile of this V1SeccompProfile. + + localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type. # noqa: E501 + + :param localhost_profile: The localhost_profile of this V1SeccompProfile. # noqa: E501 + :type: str + """ + + self._localhost_profile = localhost_profile + + @property + def type(self): + """Gets the type of this V1SeccompProfile. # noqa: E501 + + type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. # noqa: E501 + + :return: The type of this V1SeccompProfile. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1SeccompProfile. + + type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. # noqa: E501 + + :param type: The type of this V1SeccompProfile. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SeccompProfile): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SeccompProfile): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret.py new file mode 100644 index 0000000000000000000000000000000000000000..59ec6c8f93a07d14a24d14c3c140954be0e7a47e --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Secret(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'data': 'dict(str, str)', + 'immutable': 'bool', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'string_data': 'dict(str, str)', + 'type': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'data': 'data', + 'immutable': 'immutable', + 'kind': 'kind', + 'metadata': 'metadata', + 'string_data': 'stringData', + 'type': 'type' + } + + def __init__(self, api_version=None, data=None, immutable=None, kind=None, metadata=None, string_data=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1Secret - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._data = None + self._immutable = None + self._kind = None + self._metadata = None + self._string_data = None + self._type = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if data is not None: + self.data = data + if immutable is not None: + self.immutable = immutable + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if string_data is not None: + self.string_data = string_data + if type is not None: + self.type = type + + @property + def api_version(self): + """Gets the api_version of this V1Secret. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Secret. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1Secret. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Secret. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def data(self): + """Gets the data of this V1Secret. # noqa: E501 + + Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 # noqa: E501 + + :return: The data of this V1Secret. # noqa: E501 + :rtype: dict(str, str) + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this V1Secret. + + Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 # noqa: E501 + + :param data: The data of this V1Secret. # noqa: E501 + :type: dict(str, str) + """ + + self._data = data + + @property + def immutable(self): + """Gets the immutable of this V1Secret. # noqa: E501 + + Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. # noqa: E501 + + :return: The immutable of this V1Secret. # noqa: E501 + :rtype: bool + """ + return self._immutable + + @immutable.setter + def immutable(self, immutable): + """Sets the immutable of this V1Secret. + + Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. # noqa: E501 + + :param immutable: The immutable of this V1Secret. # noqa: E501 + :type: bool + """ + + self._immutable = immutable + + @property + def kind(self): + """Gets the kind of this V1Secret. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1Secret. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1Secret. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1Secret. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1Secret. # noqa: E501 + + + :return: The metadata of this V1Secret. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1Secret. + + + :param metadata: The metadata of this V1Secret. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def string_data(self): + """Gets the string_data of this V1Secret. # noqa: E501 + + stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. # noqa: E501 + + :return: The string_data of this V1Secret. # noqa: E501 + :rtype: dict(str, str) + """ + return self._string_data + + @string_data.setter + def string_data(self, string_data): + """Sets the string_data of this V1Secret. + + stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. # noqa: E501 + + :param string_data: The string_data of this V1Secret. # noqa: E501 + :type: dict(str, str) + """ + + self._string_data = string_data + + @property + def type(self): + """Gets the type of this V1Secret. # noqa: E501 + + Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types # noqa: E501 + + :return: The type of this V1Secret. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1Secret. + + Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types # noqa: E501 + + :param type: The type of this V1Secret. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Secret): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Secret): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_env_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_env_source.py new file mode 100644 index 0000000000000000000000000000000000000000..c13f8b7d1679d6acdfe48416a7d5cbfc976d1dfe --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_env_source.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SecretEnvSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str', + 'optional': 'bool' + } + + attribute_map = { + 'name': 'name', + 'optional': 'optional' + } + + def __init__(self, name=None, optional=None, local_vars_configuration=None): # noqa: E501 + """V1SecretEnvSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self._optional = None + self.discriminator = None + + if name is not None: + self.name = name + if optional is not None: + self.optional = optional + + @property + def name(self): + """Gets the name of this V1SecretEnvSource. # noqa: E501 + + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :return: The name of this V1SecretEnvSource. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1SecretEnvSource. + + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :param name: The name of this V1SecretEnvSource. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def optional(self): + """Gets the optional of this V1SecretEnvSource. # noqa: E501 + + Specify whether the Secret must be defined # noqa: E501 + + :return: The optional of this V1SecretEnvSource. # noqa: E501 + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """Sets the optional of this V1SecretEnvSource. + + Specify whether the Secret must be defined # noqa: E501 + + :param optional: The optional of this V1SecretEnvSource. # noqa: E501 + :type: bool + """ + + self._optional = optional + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SecretEnvSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SecretEnvSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_key_selector.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_key_selector.py new file mode 100644 index 0000000000000000000000000000000000000000..667900878682bc2ba3462d82ab1619944aa14c56 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_key_selector.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SecretKeySelector(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'key': 'str', + 'name': 'str', + 'optional': 'bool' + } + + attribute_map = { + 'key': 'key', + 'name': 'name', + 'optional': 'optional' + } + + def __init__(self, key=None, name=None, optional=None, local_vars_configuration=None): # noqa: E501 + """V1SecretKeySelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._key = None + self._name = None + self._optional = None + self.discriminator = None + + self.key = key + if name is not None: + self.name = name + if optional is not None: + self.optional = optional + + @property + def key(self): + """Gets the key of this V1SecretKeySelector. # noqa: E501 + + The key of the secret to select from. Must be a valid secret key. # noqa: E501 + + :return: The key of this V1SecretKeySelector. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this V1SecretKeySelector. + + The key of the secret to select from. Must be a valid secret key. # noqa: E501 + + :param key: The key of this V1SecretKeySelector. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 + + self._key = key + + @property + def name(self): + """Gets the name of this V1SecretKeySelector. # noqa: E501 + + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :return: The name of this V1SecretKeySelector. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1SecretKeySelector. + + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :param name: The name of this V1SecretKeySelector. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def optional(self): + """Gets the optional of this V1SecretKeySelector. # noqa: E501 + + Specify whether the Secret or its key must be defined # noqa: E501 + + :return: The optional of this V1SecretKeySelector. # noqa: E501 + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """Sets the optional of this V1SecretKeySelector. + + Specify whether the Secret or its key must be defined # noqa: E501 + + :param optional: The optional of this V1SecretKeySelector. # noqa: E501 + :type: bool + """ + + self._optional = optional + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SecretKeySelector): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SecretKeySelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_list.py new file mode 100644 index 0000000000000000000000000000000000000000..99d6912c57eaf9dfeac9cc5d79fe05b2b6b31350 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SecretList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1Secret]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1SecretList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1SecretList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1SecretList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1SecretList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1SecretList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1SecretList. # noqa: E501 + + Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret # noqa: E501 + + :return: The items of this V1SecretList. # noqa: E501 + :rtype: list[V1Secret] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1SecretList. + + Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret # noqa: E501 + + :param items: The items of this V1SecretList. # noqa: E501 + :type: list[V1Secret] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1SecretList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1SecretList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1SecretList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1SecretList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1SecretList. # noqa: E501 + + + :return: The metadata of this V1SecretList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1SecretList. + + + :param metadata: The metadata of this V1SecretList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SecretList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SecretList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_projection.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_projection.py new file mode 100644 index 0000000000000000000000000000000000000000..d124a2f3c503535dac4335a5fe219317abf96895 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_projection.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SecretProjection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'items': 'list[V1KeyToPath]', + 'name': 'str', + 'optional': 'bool' + } + + attribute_map = { + 'items': 'items', + 'name': 'name', + 'optional': 'optional' + } + + def __init__(self, items=None, name=None, optional=None, local_vars_configuration=None): # noqa: E501 + """V1SecretProjection - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._items = None + self._name = None + self._optional = None + self.discriminator = None + + if items is not None: + self.items = items + if name is not None: + self.name = name + if optional is not None: + self.optional = optional + + @property + def items(self): + """Gets the items of this V1SecretProjection. # noqa: E501 + + items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 + + :return: The items of this V1SecretProjection. # noqa: E501 + :rtype: list[V1KeyToPath] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1SecretProjection. + + items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 + + :param items: The items of this V1SecretProjection. # noqa: E501 + :type: list[V1KeyToPath] + """ + + self._items = items + + @property + def name(self): + """Gets the name of this V1SecretProjection. # noqa: E501 + + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :return: The name of this V1SecretProjection. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1SecretProjection. + + Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :param name: The name of this V1SecretProjection. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def optional(self): + """Gets the optional of this V1SecretProjection. # noqa: E501 + + optional field specify whether the Secret or its key must be defined # noqa: E501 + + :return: The optional of this V1SecretProjection. # noqa: E501 + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """Sets the optional of this V1SecretProjection. + + optional field specify whether the Secret or its key must be defined # noqa: E501 + + :param optional: The optional of this V1SecretProjection. # noqa: E501 + :type: bool + """ + + self._optional = optional + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SecretProjection): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SecretProjection): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_reference.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_reference.py new file mode 100644 index 0000000000000000000000000000000000000000..0ab955e3c19cdc65b71fe59492bd648d5c3496ed --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_reference.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SecretReference(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str', + 'namespace': 'str' + } + + attribute_map = { + 'name': 'name', + 'namespace': 'namespace' + } + + def __init__(self, name=None, namespace=None, local_vars_configuration=None): # noqa: E501 + """V1SecretReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self._namespace = None + self.discriminator = None + + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + + @property + def name(self): + """Gets the name of this V1SecretReference. # noqa: E501 + + name is unique within a namespace to reference a secret resource. # noqa: E501 + + :return: The name of this V1SecretReference. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1SecretReference. + + name is unique within a namespace to reference a secret resource. # noqa: E501 + + :param name: The name of this V1SecretReference. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this V1SecretReference. # noqa: E501 + + namespace defines the space within which the secret name must be unique. # noqa: E501 + + :return: The namespace of this V1SecretReference. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this V1SecretReference. + + namespace defines the space within which the secret name must be unique. # noqa: E501 + + :param namespace: The namespace of this V1SecretReference. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SecretReference): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SecretReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..8fd96fdf18402341d846816cf7526c2183c0bf29 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_secret_volume_source.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SecretVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'default_mode': 'int', + 'items': 'list[V1KeyToPath]', + 'optional': 'bool', + 'secret_name': 'str' + } + + attribute_map = { + 'default_mode': 'defaultMode', + 'items': 'items', + 'optional': 'optional', + 'secret_name': 'secretName' + } + + def __init__(self, default_mode=None, items=None, optional=None, secret_name=None, local_vars_configuration=None): # noqa: E501 + """V1SecretVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._default_mode = None + self._items = None + self._optional = None + self._secret_name = None + self.discriminator = None + + if default_mode is not None: + self.default_mode = default_mode + if items is not None: + self.items = items + if optional is not None: + self.optional = optional + if secret_name is not None: + self.secret_name = secret_name + + @property + def default_mode(self): + """Gets the default_mode of this V1SecretVolumeSource. # noqa: E501 + + defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 + + :return: The default_mode of this V1SecretVolumeSource. # noqa: E501 + :rtype: int + """ + return self._default_mode + + @default_mode.setter + def default_mode(self, default_mode): + """Sets the default_mode of this V1SecretVolumeSource. + + defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 + + :param default_mode: The default_mode of this V1SecretVolumeSource. # noqa: E501 + :type: int + """ + + self._default_mode = default_mode + + @property + def items(self): + """Gets the items of this V1SecretVolumeSource. # noqa: E501 + + items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 + + :return: The items of this V1SecretVolumeSource. # noqa: E501 + :rtype: list[V1KeyToPath] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1SecretVolumeSource. + + items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 + + :param items: The items of this V1SecretVolumeSource. # noqa: E501 + :type: list[V1KeyToPath] + """ + + self._items = items + + @property + def optional(self): + """Gets the optional of this V1SecretVolumeSource. # noqa: E501 + + optional field specify whether the Secret or its keys must be defined # noqa: E501 + + :return: The optional of this V1SecretVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._optional + + @optional.setter + def optional(self, optional): + """Sets the optional of this V1SecretVolumeSource. + + optional field specify whether the Secret or its keys must be defined # noqa: E501 + + :param optional: The optional of this V1SecretVolumeSource. # noqa: E501 + :type: bool + """ + + self._optional = optional + + @property + def secret_name(self): + """Gets the secret_name of this V1SecretVolumeSource. # noqa: E501 + + secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret # noqa: E501 + + :return: The secret_name of this V1SecretVolumeSource. # noqa: E501 + :rtype: str + """ + return self._secret_name + + @secret_name.setter + def secret_name(self, secret_name): + """Sets the secret_name of this V1SecretVolumeSource. + + secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret # noqa: E501 + + :param secret_name: The secret_name of this V1SecretVolumeSource. # noqa: E501 + :type: str + """ + + self._secret_name = secret_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SecretVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SecretVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_security_context.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_security_context.py new file mode 100644 index 0000000000000000000000000000000000000000..d15bbf49195d1d4a33162ae76ea661965af6178c --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_security_context.py @@ -0,0 +1,420 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SecurityContext(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'allow_privilege_escalation': 'bool', + 'app_armor_profile': 'V1AppArmorProfile', + 'capabilities': 'V1Capabilities', + 'privileged': 'bool', + 'proc_mount': 'str', + 'read_only_root_filesystem': 'bool', + 'run_as_group': 'int', + 'run_as_non_root': 'bool', + 'run_as_user': 'int', + 'se_linux_options': 'V1SELinuxOptions', + 'seccomp_profile': 'V1SeccompProfile', + 'windows_options': 'V1WindowsSecurityContextOptions' + } + + attribute_map = { + 'allow_privilege_escalation': 'allowPrivilegeEscalation', + 'app_armor_profile': 'appArmorProfile', + 'capabilities': 'capabilities', + 'privileged': 'privileged', + 'proc_mount': 'procMount', + 'read_only_root_filesystem': 'readOnlyRootFilesystem', + 'run_as_group': 'runAsGroup', + 'run_as_non_root': 'runAsNonRoot', + 'run_as_user': 'runAsUser', + 'se_linux_options': 'seLinuxOptions', + 'seccomp_profile': 'seccompProfile', + 'windows_options': 'windowsOptions' + } + + def __init__(self, allow_privilege_escalation=None, app_armor_profile=None, capabilities=None, privileged=None, proc_mount=None, read_only_root_filesystem=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None, seccomp_profile=None, windows_options=None, local_vars_configuration=None): # noqa: E501 + """V1SecurityContext - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._allow_privilege_escalation = None + self._app_armor_profile = None + self._capabilities = None + self._privileged = None + self._proc_mount = None + self._read_only_root_filesystem = None + self._run_as_group = None + self._run_as_non_root = None + self._run_as_user = None + self._se_linux_options = None + self._seccomp_profile = None + self._windows_options = None + self.discriminator = None + + if allow_privilege_escalation is not None: + self.allow_privilege_escalation = allow_privilege_escalation + if app_armor_profile is not None: + self.app_armor_profile = app_armor_profile + if capabilities is not None: + self.capabilities = capabilities + if privileged is not None: + self.privileged = privileged + if proc_mount is not None: + self.proc_mount = proc_mount + if read_only_root_filesystem is not None: + self.read_only_root_filesystem = read_only_root_filesystem + if run_as_group is not None: + self.run_as_group = run_as_group + if run_as_non_root is not None: + self.run_as_non_root = run_as_non_root + if run_as_user is not None: + self.run_as_user = run_as_user + if se_linux_options is not None: + self.se_linux_options = se_linux_options + if seccomp_profile is not None: + self.seccomp_profile = seccomp_profile + if windows_options is not None: + self.windows_options = windows_options + + @property + def allow_privilege_escalation(self): + """Gets the allow_privilege_escalation of this V1SecurityContext. # noqa: E501 + + AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The allow_privilege_escalation of this V1SecurityContext. # noqa: E501 + :rtype: bool + """ + return self._allow_privilege_escalation + + @allow_privilege_escalation.setter + def allow_privilege_escalation(self, allow_privilege_escalation): + """Sets the allow_privilege_escalation of this V1SecurityContext. + + AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param allow_privilege_escalation: The allow_privilege_escalation of this V1SecurityContext. # noqa: E501 + :type: bool + """ + + self._allow_privilege_escalation = allow_privilege_escalation + + @property + def app_armor_profile(self): + """Gets the app_armor_profile of this V1SecurityContext. # noqa: E501 + + + :return: The app_armor_profile of this V1SecurityContext. # noqa: E501 + :rtype: V1AppArmorProfile + """ + return self._app_armor_profile + + @app_armor_profile.setter + def app_armor_profile(self, app_armor_profile): + """Sets the app_armor_profile of this V1SecurityContext. + + + :param app_armor_profile: The app_armor_profile of this V1SecurityContext. # noqa: E501 + :type: V1AppArmorProfile + """ + + self._app_armor_profile = app_armor_profile + + @property + def capabilities(self): + """Gets the capabilities of this V1SecurityContext. # noqa: E501 + + + :return: The capabilities of this V1SecurityContext. # noqa: E501 + :rtype: V1Capabilities + """ + return self._capabilities + + @capabilities.setter + def capabilities(self, capabilities): + """Sets the capabilities of this V1SecurityContext. + + + :param capabilities: The capabilities of this V1SecurityContext. # noqa: E501 + :type: V1Capabilities + """ + + self._capabilities = capabilities + + @property + def privileged(self): + """Gets the privileged of this V1SecurityContext. # noqa: E501 + + Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The privileged of this V1SecurityContext. # noqa: E501 + :rtype: bool + """ + return self._privileged + + @privileged.setter + def privileged(self, privileged): + """Sets the privileged of this V1SecurityContext. + + Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param privileged: The privileged of this V1SecurityContext. # noqa: E501 + :type: bool + """ + + self._privileged = privileged + + @property + def proc_mount(self): + """Gets the proc_mount of this V1SecurityContext. # noqa: E501 + + procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The proc_mount of this V1SecurityContext. # noqa: E501 + :rtype: str + """ + return self._proc_mount + + @proc_mount.setter + def proc_mount(self, proc_mount): + """Sets the proc_mount of this V1SecurityContext. + + procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param proc_mount: The proc_mount of this V1SecurityContext. # noqa: E501 + :type: str + """ + + self._proc_mount = proc_mount + + @property + def read_only_root_filesystem(self): + """Gets the read_only_root_filesystem of this V1SecurityContext. # noqa: E501 + + Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The read_only_root_filesystem of this V1SecurityContext. # noqa: E501 + :rtype: bool + """ + return self._read_only_root_filesystem + + @read_only_root_filesystem.setter + def read_only_root_filesystem(self, read_only_root_filesystem): + """Sets the read_only_root_filesystem of this V1SecurityContext. + + Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param read_only_root_filesystem: The read_only_root_filesystem of this V1SecurityContext. # noqa: E501 + :type: bool + """ + + self._read_only_root_filesystem = read_only_root_filesystem + + @property + def run_as_group(self): + """Gets the run_as_group of this V1SecurityContext. # noqa: E501 + + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The run_as_group of this V1SecurityContext. # noqa: E501 + :rtype: int + """ + return self._run_as_group + + @run_as_group.setter + def run_as_group(self, run_as_group): + """Sets the run_as_group of this V1SecurityContext. + + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param run_as_group: The run_as_group of this V1SecurityContext. # noqa: E501 + :type: int + """ + + self._run_as_group = run_as_group + + @property + def run_as_non_root(self): + """Gets the run_as_non_root of this V1SecurityContext. # noqa: E501 + + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 + + :return: The run_as_non_root of this V1SecurityContext. # noqa: E501 + :rtype: bool + """ + return self._run_as_non_root + + @run_as_non_root.setter + def run_as_non_root(self, run_as_non_root): + """Sets the run_as_non_root of this V1SecurityContext. + + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 + + :param run_as_non_root: The run_as_non_root of this V1SecurityContext. # noqa: E501 + :type: bool + """ + + self._run_as_non_root = run_as_non_root + + @property + def run_as_user(self): + """Gets the run_as_user of this V1SecurityContext. # noqa: E501 + + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :return: The run_as_user of this V1SecurityContext. # noqa: E501 + :rtype: int + """ + return self._run_as_user + + @run_as_user.setter + def run_as_user(self, run_as_user): + """Sets the run_as_user of this V1SecurityContext. + + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. # noqa: E501 + + :param run_as_user: The run_as_user of this V1SecurityContext. # noqa: E501 + :type: int + """ + + self._run_as_user = run_as_user + + @property + def se_linux_options(self): + """Gets the se_linux_options of this V1SecurityContext. # noqa: E501 + + + :return: The se_linux_options of this V1SecurityContext. # noqa: E501 + :rtype: V1SELinuxOptions + """ + return self._se_linux_options + + @se_linux_options.setter + def se_linux_options(self, se_linux_options): + """Sets the se_linux_options of this V1SecurityContext. + + + :param se_linux_options: The se_linux_options of this V1SecurityContext. # noqa: E501 + :type: V1SELinuxOptions + """ + + self._se_linux_options = se_linux_options + + @property + def seccomp_profile(self): + """Gets the seccomp_profile of this V1SecurityContext. # noqa: E501 + + + :return: The seccomp_profile of this V1SecurityContext. # noqa: E501 + :rtype: V1SeccompProfile + """ + return self._seccomp_profile + + @seccomp_profile.setter + def seccomp_profile(self, seccomp_profile): + """Sets the seccomp_profile of this V1SecurityContext. + + + :param seccomp_profile: The seccomp_profile of this V1SecurityContext. # noqa: E501 + :type: V1SeccompProfile + """ + + self._seccomp_profile = seccomp_profile + + @property + def windows_options(self): + """Gets the windows_options of this V1SecurityContext. # noqa: E501 + + + :return: The windows_options of this V1SecurityContext. # noqa: E501 + :rtype: V1WindowsSecurityContextOptions + """ + return self._windows_options + + @windows_options.setter + def windows_options(self, windows_options): + """Sets the windows_options of this V1SecurityContext. + + + :param windows_options: The windows_options of this V1SecurityContext. # noqa: E501 + :type: V1WindowsSecurityContextOptions + """ + + self._windows_options = windows_options + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SecurityContext): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SecurityContext): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_selectable_field.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_selectable_field.py new file mode 100644 index 0000000000000000000000000000000000000000..376d7570d6b201c23d46726f352ecdc5ac904317 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_selectable_field.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SelectableField(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'json_path': 'str' + } + + attribute_map = { + 'json_path': 'jsonPath' + } + + def __init__(self, json_path=None, local_vars_configuration=None): # noqa: E501 + """V1SelectableField - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._json_path = None + self.discriminator = None + + self.json_path = json_path + + @property + def json_path(self): + """Gets the json_path of this V1SelectableField. # noqa: E501 + + jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required. # noqa: E501 + + :return: The json_path of this V1SelectableField. # noqa: E501 + :rtype: str + """ + return self._json_path + + @json_path.setter + def json_path(self, json_path): + """Sets the json_path of this V1SelectableField. + + jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required. # noqa: E501 + + :param json_path: The json_path of this V1SelectableField. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and json_path is None: # noqa: E501 + raise ValueError("Invalid value for `json_path`, must not be `None`") # noqa: E501 + + self._json_path = json_path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SelectableField): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SelectableField): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_access_review.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_access_review.py new file mode 100644 index 0000000000000000000000000000000000000000..e274a3148fe06788abc1b87dc5e888d0d938f627 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_access_review.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SelfSubjectAccessReview(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1SelfSubjectAccessReviewSpec', + 'status': 'V1SubjectAccessReviewStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1SelfSubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1SelfSubjectAccessReview. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1SelfSubjectAccessReview. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1SelfSubjectAccessReview. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1SelfSubjectAccessReview. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1SelfSubjectAccessReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1SelfSubjectAccessReview. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1SelfSubjectAccessReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1SelfSubjectAccessReview. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1SelfSubjectAccessReview. # noqa: E501 + + + :return: The metadata of this V1SelfSubjectAccessReview. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1SelfSubjectAccessReview. + + + :param metadata: The metadata of this V1SelfSubjectAccessReview. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1SelfSubjectAccessReview. # noqa: E501 + + + :return: The spec of this V1SelfSubjectAccessReview. # noqa: E501 + :rtype: V1SelfSubjectAccessReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1SelfSubjectAccessReview. + + + :param spec: The spec of this V1SelfSubjectAccessReview. # noqa: E501 + :type: V1SelfSubjectAccessReviewSpec + """ + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1SelfSubjectAccessReview. # noqa: E501 + + + :return: The status of this V1SelfSubjectAccessReview. # noqa: E501 + :rtype: V1SubjectAccessReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1SelfSubjectAccessReview. + + + :param status: The status of this V1SelfSubjectAccessReview. # noqa: E501 + :type: V1SubjectAccessReviewStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SelfSubjectAccessReview): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SelfSubjectAccessReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_access_review_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_access_review_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..133659a30d223ee811329f26a905a2abb0d36fa0 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_access_review_spec.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SelfSubjectAccessReviewSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'non_resource_attributes': 'V1NonResourceAttributes', + 'resource_attributes': 'V1ResourceAttributes' + } + + attribute_map = { + 'non_resource_attributes': 'nonResourceAttributes', + 'resource_attributes': 'resourceAttributes' + } + + def __init__(self, non_resource_attributes=None, resource_attributes=None, local_vars_configuration=None): # noqa: E501 + """V1SelfSubjectAccessReviewSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._non_resource_attributes = None + self._resource_attributes = None + self.discriminator = None + + if non_resource_attributes is not None: + self.non_resource_attributes = non_resource_attributes + if resource_attributes is not None: + self.resource_attributes = resource_attributes + + @property + def non_resource_attributes(self): + """Gets the non_resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 + + + :return: The non_resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 + :rtype: V1NonResourceAttributes + """ + return self._non_resource_attributes + + @non_resource_attributes.setter + def non_resource_attributes(self, non_resource_attributes): + """Sets the non_resource_attributes of this V1SelfSubjectAccessReviewSpec. + + + :param non_resource_attributes: The non_resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 + :type: V1NonResourceAttributes + """ + + self._non_resource_attributes = non_resource_attributes + + @property + def resource_attributes(self): + """Gets the resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 + + + :return: The resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 + :rtype: V1ResourceAttributes + """ + return self._resource_attributes + + @resource_attributes.setter + def resource_attributes(self, resource_attributes): + """Sets the resource_attributes of this V1SelfSubjectAccessReviewSpec. + + + :param resource_attributes: The resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 + :type: V1ResourceAttributes + """ + + self._resource_attributes = resource_attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SelfSubjectAccessReviewSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SelfSubjectAccessReviewSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_review.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_review.py new file mode 100644 index 0000000000000000000000000000000000000000..bb933759731b5b377060f1b622c8b7f40f18b75e --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_review.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SelfSubjectReview(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'status': 'V1SelfSubjectReviewStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1SelfSubjectReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1SelfSubjectReview. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1SelfSubjectReview. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1SelfSubjectReview. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1SelfSubjectReview. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1SelfSubjectReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1SelfSubjectReview. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1SelfSubjectReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1SelfSubjectReview. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1SelfSubjectReview. # noqa: E501 + + + :return: The metadata of this V1SelfSubjectReview. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1SelfSubjectReview. + + + :param metadata: The metadata of this V1SelfSubjectReview. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def status(self): + """Gets the status of this V1SelfSubjectReview. # noqa: E501 + + + :return: The status of this V1SelfSubjectReview. # noqa: E501 + :rtype: V1SelfSubjectReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1SelfSubjectReview. + + + :param status: The status of this V1SelfSubjectReview. # noqa: E501 + :type: V1SelfSubjectReviewStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SelfSubjectReview): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SelfSubjectReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_review_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_review_status.py new file mode 100644 index 0000000000000000000000000000000000000000..07a34de87f0a762bdec85729c33de006773fe28d --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_review_status.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SelfSubjectReviewStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'user_info': 'V1UserInfo' + } + + attribute_map = { + 'user_info': 'userInfo' + } + + def __init__(self, user_info=None, local_vars_configuration=None): # noqa: E501 + """V1SelfSubjectReviewStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._user_info = None + self.discriminator = None + + if user_info is not None: + self.user_info = user_info + + @property + def user_info(self): + """Gets the user_info of this V1SelfSubjectReviewStatus. # noqa: E501 + + + :return: The user_info of this V1SelfSubjectReviewStatus. # noqa: E501 + :rtype: V1UserInfo + """ + return self._user_info + + @user_info.setter + def user_info(self, user_info): + """Sets the user_info of this V1SelfSubjectReviewStatus. + + + :param user_info: The user_info of this V1SelfSubjectReviewStatus. # noqa: E501 + :type: V1UserInfo + """ + + self._user_info = user_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SelfSubjectReviewStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SelfSubjectReviewStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_rules_review.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_rules_review.py new file mode 100644 index 0000000000000000000000000000000000000000..2bc905473b5e1039d76e49aec255cd77901170a4 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_rules_review.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SelfSubjectRulesReview(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1SelfSubjectRulesReviewSpec', + 'status': 'V1SubjectRulesReviewStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1SelfSubjectRulesReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1SelfSubjectRulesReview. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1SelfSubjectRulesReview. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1SelfSubjectRulesReview. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1SelfSubjectRulesReview. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1SelfSubjectRulesReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1SelfSubjectRulesReview. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1SelfSubjectRulesReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1SelfSubjectRulesReview. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1SelfSubjectRulesReview. # noqa: E501 + + + :return: The metadata of this V1SelfSubjectRulesReview. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1SelfSubjectRulesReview. + + + :param metadata: The metadata of this V1SelfSubjectRulesReview. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1SelfSubjectRulesReview. # noqa: E501 + + + :return: The spec of this V1SelfSubjectRulesReview. # noqa: E501 + :rtype: V1SelfSubjectRulesReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1SelfSubjectRulesReview. + + + :param spec: The spec of this V1SelfSubjectRulesReview. # noqa: E501 + :type: V1SelfSubjectRulesReviewSpec + """ + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1SelfSubjectRulesReview. # noqa: E501 + + + :return: The status of this V1SelfSubjectRulesReview. # noqa: E501 + :rtype: V1SubjectRulesReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1SelfSubjectRulesReview. + + + :param status: The status of this V1SelfSubjectRulesReview. # noqa: E501 + :type: V1SubjectRulesReviewStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SelfSubjectRulesReview): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SelfSubjectRulesReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_rules_review_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_rules_review_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..de24b42431ba39ad98a95611cea4a91556324b71 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_self_subject_rules_review_spec.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SelfSubjectRulesReviewSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'namespace': 'str' + } + + attribute_map = { + 'namespace': 'namespace' + } + + def __init__(self, namespace=None, local_vars_configuration=None): # noqa: E501 + """V1SelfSubjectRulesReviewSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._namespace = None + self.discriminator = None + + if namespace is not None: + self.namespace = namespace + + @property + def namespace(self): + """Gets the namespace of this V1SelfSubjectRulesReviewSpec. # noqa: E501 + + Namespace to evaluate rules for. Required. # noqa: E501 + + :return: The namespace of this V1SelfSubjectRulesReviewSpec. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this V1SelfSubjectRulesReviewSpec. + + Namespace to evaluate rules for. Required. # noqa: E501 + + :param namespace: The namespace of this V1SelfSubjectRulesReviewSpec. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SelfSubjectRulesReviewSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SelfSubjectRulesReviewSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_server_address_by_client_cidr.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_server_address_by_client_cidr.py new file mode 100644 index 0000000000000000000000000000000000000000..9955f64c8a9d099317e9264788ba27b48e08ac34 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_server_address_by_client_cidr.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServerAddressByClientCIDR(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'client_cidr': 'str', + 'server_address': 'str' + } + + attribute_map = { + 'client_cidr': 'clientCIDR', + 'server_address': 'serverAddress' + } + + def __init__(self, client_cidr=None, server_address=None, local_vars_configuration=None): # noqa: E501 + """V1ServerAddressByClientCIDR - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._client_cidr = None + self._server_address = None + self.discriminator = None + + self.client_cidr = client_cidr + self.server_address = server_address + + @property + def client_cidr(self): + """Gets the client_cidr of this V1ServerAddressByClientCIDR. # noqa: E501 + + The CIDR with which clients can match their IP to figure out the server address that they should use. # noqa: E501 + + :return: The client_cidr of this V1ServerAddressByClientCIDR. # noqa: E501 + :rtype: str + """ + return self._client_cidr + + @client_cidr.setter + def client_cidr(self, client_cidr): + """Sets the client_cidr of this V1ServerAddressByClientCIDR. + + The CIDR with which clients can match their IP to figure out the server address that they should use. # noqa: E501 + + :param client_cidr: The client_cidr of this V1ServerAddressByClientCIDR. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and client_cidr is None: # noqa: E501 + raise ValueError("Invalid value for `client_cidr`, must not be `None`") # noqa: E501 + + self._client_cidr = client_cidr + + @property + def server_address(self): + """Gets the server_address of this V1ServerAddressByClientCIDR. # noqa: E501 + + Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. # noqa: E501 + + :return: The server_address of this V1ServerAddressByClientCIDR. # noqa: E501 + :rtype: str + """ + return self._server_address + + @server_address.setter + def server_address(self, server_address): + """Sets the server_address of this V1ServerAddressByClientCIDR. + + Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. # noqa: E501 + + :param server_address: The server_address of this V1ServerAddressByClientCIDR. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and server_address is None: # noqa: E501 + raise ValueError("Invalid value for `server_address`, must not be `None`") # noqa: E501 + + self._server_address = server_address + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServerAddressByClientCIDR): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServerAddressByClientCIDR): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service.py new file mode 100644 index 0000000000000000000000000000000000000000..dbea23abeb156848cfbf5b9bc7290f086d9d91e4 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Service(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ServiceSpec', + 'status': 'V1ServiceStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1Service - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1Service. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Service. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1Service. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Service. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1Service. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1Service. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1Service. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1Service. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1Service. # noqa: E501 + + + :return: The metadata of this V1Service. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1Service. + + + :param metadata: The metadata of this V1Service. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1Service. # noqa: E501 + + + :return: The spec of this V1Service. # noqa: E501 + :rtype: V1ServiceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1Service. + + + :param spec: The spec of this V1Service. # noqa: E501 + :type: V1ServiceSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1Service. # noqa: E501 + + + :return: The status of this V1Service. # noqa: E501 + :rtype: V1ServiceStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1Service. + + + :param status: The status of this V1Service. # noqa: E501 + :type: V1ServiceStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Service): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Service): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account.py new file mode 100644 index 0000000000000000000000000000000000000000..f7bfaeea9950944f677d39a731d21de19a2c59eb --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceAccount(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'automount_service_account_token': 'bool', + 'image_pull_secrets': 'list[V1LocalObjectReference]', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'secrets': 'list[V1ObjectReference]' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'automount_service_account_token': 'automountServiceAccountToken', + 'image_pull_secrets': 'imagePullSecrets', + 'kind': 'kind', + 'metadata': 'metadata', + 'secrets': 'secrets' + } + + def __init__(self, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceAccount - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._automount_service_account_token = None + self._image_pull_secrets = None + self._kind = None + self._metadata = None + self._secrets = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if automount_service_account_token is not None: + self.automount_service_account_token = automount_service_account_token + if image_pull_secrets is not None: + self.image_pull_secrets = image_pull_secrets + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if secrets is not None: + self.secrets = secrets + + @property + def api_version(self): + """Gets the api_version of this V1ServiceAccount. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ServiceAccount. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ServiceAccount. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ServiceAccount. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def automount_service_account_token(self): + """Gets the automount_service_account_token of this V1ServiceAccount. # noqa: E501 + + AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. # noqa: E501 + + :return: The automount_service_account_token of this V1ServiceAccount. # noqa: E501 + :rtype: bool + """ + return self._automount_service_account_token + + @automount_service_account_token.setter + def automount_service_account_token(self, automount_service_account_token): + """Sets the automount_service_account_token of this V1ServiceAccount. + + AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. # noqa: E501 + + :param automount_service_account_token: The automount_service_account_token of this V1ServiceAccount. # noqa: E501 + :type: bool + """ + + self._automount_service_account_token = automount_service_account_token + + @property + def image_pull_secrets(self): + """Gets the image_pull_secrets of this V1ServiceAccount. # noqa: E501 + + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod # noqa: E501 + + :return: The image_pull_secrets of this V1ServiceAccount. # noqa: E501 + :rtype: list[V1LocalObjectReference] + """ + return self._image_pull_secrets + + @image_pull_secrets.setter + def image_pull_secrets(self, image_pull_secrets): + """Sets the image_pull_secrets of this V1ServiceAccount. + + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod # noqa: E501 + + :param image_pull_secrets: The image_pull_secrets of this V1ServiceAccount. # noqa: E501 + :type: list[V1LocalObjectReference] + """ + + self._image_pull_secrets = image_pull_secrets + + @property + def kind(self): + """Gets the kind of this V1ServiceAccount. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ServiceAccount. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ServiceAccount. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ServiceAccount. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ServiceAccount. # noqa: E501 + + + :return: The metadata of this V1ServiceAccount. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ServiceAccount. + + + :param metadata: The metadata of this V1ServiceAccount. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def secrets(self): + """Gets the secrets of this V1ServiceAccount. # noqa: E501 + + Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret # noqa: E501 + + :return: The secrets of this V1ServiceAccount. # noqa: E501 + :rtype: list[V1ObjectReference] + """ + return self._secrets + + @secrets.setter + def secrets(self, secrets): + """Sets the secrets of this V1ServiceAccount. + + Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret # noqa: E501 + + :param secrets: The secrets of this V1ServiceAccount. # noqa: E501 + :type: list[V1ObjectReference] + """ + + self._secrets = secrets + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceAccount): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceAccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account_list.py new file mode 100644 index 0000000000000000000000000000000000000000..db0d2d319c76d332619c3b0bd7b58b6243c07b87 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceAccountList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1ServiceAccount]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceAccountList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1ServiceAccountList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ServiceAccountList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ServiceAccountList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ServiceAccountList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1ServiceAccountList. # noqa: E501 + + List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501 + + :return: The items of this V1ServiceAccountList. # noqa: E501 + :rtype: list[V1ServiceAccount] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1ServiceAccountList. + + List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501 + + :param items: The items of this V1ServiceAccountList. # noqa: E501 + :type: list[V1ServiceAccount] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1ServiceAccountList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ServiceAccountList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ServiceAccountList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ServiceAccountList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ServiceAccountList. # noqa: E501 + + + :return: The metadata of this V1ServiceAccountList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ServiceAccountList. + + + :param metadata: The metadata of this V1ServiceAccountList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceAccountList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceAccountList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account_subject.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account_subject.py new file mode 100644 index 0000000000000000000000000000000000000000..b56c5c6e3d96c830073f4a37b0249c9ef0fa8eba --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account_subject.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceAccountSubject(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str', + 'namespace': 'str' + } + + attribute_map = { + 'name': 'name', + 'namespace': 'namespace' + } + + def __init__(self, name=None, namespace=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceAccountSubject - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self._namespace = None + self.discriminator = None + + self.name = name + self.namespace = namespace + + @property + def name(self): + """Gets the name of this V1ServiceAccountSubject. # noqa: E501 + + `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. # noqa: E501 + + :return: The name of this V1ServiceAccountSubject. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1ServiceAccountSubject. + + `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. # noqa: E501 + + :param name: The name of this V1ServiceAccountSubject. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this V1ServiceAccountSubject. # noqa: E501 + + `namespace` is the namespace of matching ServiceAccount objects. Required. # noqa: E501 + + :return: The namespace of this V1ServiceAccountSubject. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this V1ServiceAccountSubject. + + `namespace` is the namespace of matching ServiceAccount objects. Required. # noqa: E501 + + :param namespace: The namespace of this V1ServiceAccountSubject. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501 + raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 + + self._namespace = namespace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceAccountSubject): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceAccountSubject): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account_token_projection.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account_token_projection.py new file mode 100644 index 0000000000000000000000000000000000000000..70f6b1a6315330c1f21ab5ef0bd2f9653098610f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_account_token_projection.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceAccountTokenProjection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'audience': 'str', + 'expiration_seconds': 'int', + 'path': 'str' + } + + attribute_map = { + 'audience': 'audience', + 'expiration_seconds': 'expirationSeconds', + 'path': 'path' + } + + def __init__(self, audience=None, expiration_seconds=None, path=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceAccountTokenProjection - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._audience = None + self._expiration_seconds = None + self._path = None + self.discriminator = None + + if audience is not None: + self.audience = audience + if expiration_seconds is not None: + self.expiration_seconds = expiration_seconds + self.path = path + + @property + def audience(self): + """Gets the audience of this V1ServiceAccountTokenProjection. # noqa: E501 + + audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. # noqa: E501 + + :return: The audience of this V1ServiceAccountTokenProjection. # noqa: E501 + :rtype: str + """ + return self._audience + + @audience.setter + def audience(self, audience): + """Sets the audience of this V1ServiceAccountTokenProjection. + + audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. # noqa: E501 + + :param audience: The audience of this V1ServiceAccountTokenProjection. # noqa: E501 + :type: str + """ + + self._audience = audience + + @property + def expiration_seconds(self): + """Gets the expiration_seconds of this V1ServiceAccountTokenProjection. # noqa: E501 + + expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. # noqa: E501 + + :return: The expiration_seconds of this V1ServiceAccountTokenProjection. # noqa: E501 + :rtype: int + """ + return self._expiration_seconds + + @expiration_seconds.setter + def expiration_seconds(self, expiration_seconds): + """Sets the expiration_seconds of this V1ServiceAccountTokenProjection. + + expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. # noqa: E501 + + :param expiration_seconds: The expiration_seconds of this V1ServiceAccountTokenProjection. # noqa: E501 + :type: int + """ + + self._expiration_seconds = expiration_seconds + + @property + def path(self): + """Gets the path of this V1ServiceAccountTokenProjection. # noqa: E501 + + path is the path relative to the mount point of the file to project the token into. # noqa: E501 + + :return: The path of this V1ServiceAccountTokenProjection. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this V1ServiceAccountTokenProjection. + + path is the path relative to the mount point of the file to project the token into. # noqa: E501 + + :param path: The path of this V1ServiceAccountTokenProjection. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceAccountTokenProjection): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceAccountTokenProjection): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_backend_port.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_backend_port.py new file mode 100644 index 0000000000000000000000000000000000000000..b493d262b8dff12adde9106bb245b059042befbe --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_backend_port.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceBackendPort(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'name': 'str', + 'number': 'int' + } + + attribute_map = { + 'name': 'name', + 'number': 'number' + } + + def __init__(self, name=None, number=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceBackendPort - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._name = None + self._number = None + self.discriminator = None + + if name is not None: + self.name = name + if number is not None: + self.number = number + + @property + def name(self): + """Gets the name of this V1ServiceBackendPort. # noqa: E501 + + name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\". # noqa: E501 + + :return: The name of this V1ServiceBackendPort. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1ServiceBackendPort. + + name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\". # noqa: E501 + + :param name: The name of this V1ServiceBackendPort. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def number(self): + """Gets the number of this V1ServiceBackendPort. # noqa: E501 + + number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\". # noqa: E501 + + :return: The number of this V1ServiceBackendPort. # noqa: E501 + :rtype: int + """ + return self._number + + @number.setter + def number(self, number): + """Sets the number of this V1ServiceBackendPort. + + number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\". # noqa: E501 + + :param number: The number of this V1ServiceBackendPort. # noqa: E501 + :type: int + """ + + self._number = number + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceBackendPort): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceBackendPort): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr.py new file mode 100644 index 0000000000000000000000000000000000000000..9d545e09ac9c7946ffd0f56f880ed0fd39c9df53 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceCIDR(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1ServiceCIDRSpec', + 'status': 'V1ServiceCIDRStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceCIDR - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1ServiceCIDR. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ServiceCIDR. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ServiceCIDR. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ServiceCIDR. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1ServiceCIDR. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ServiceCIDR. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ServiceCIDR. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ServiceCIDR. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ServiceCIDR. # noqa: E501 + + + :return: The metadata of this V1ServiceCIDR. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ServiceCIDR. + + + :param metadata: The metadata of this V1ServiceCIDR. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1ServiceCIDR. # noqa: E501 + + + :return: The spec of this V1ServiceCIDR. # noqa: E501 + :rtype: V1ServiceCIDRSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1ServiceCIDR. + + + :param spec: The spec of this V1ServiceCIDR. # noqa: E501 + :type: V1ServiceCIDRSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1ServiceCIDR. # noqa: E501 + + + :return: The status of this V1ServiceCIDR. # noqa: E501 + :rtype: V1ServiceCIDRStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1ServiceCIDR. + + + :param status: The status of this V1ServiceCIDR. # noqa: E501 + :type: V1ServiceCIDRStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceCIDR): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceCIDR): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr_list.py new file mode 100644 index 0000000000000000000000000000000000000000..6cf60989ab1ee0d66aa9a73d95c9889f995f5275 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceCIDRList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1ServiceCIDR]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceCIDRList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1ServiceCIDRList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ServiceCIDRList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ServiceCIDRList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ServiceCIDRList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1ServiceCIDRList. # noqa: E501 + + items is the list of ServiceCIDRs. # noqa: E501 + + :return: The items of this V1ServiceCIDRList. # noqa: E501 + :rtype: list[V1ServiceCIDR] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1ServiceCIDRList. + + items is the list of ServiceCIDRs. # noqa: E501 + + :param items: The items of this V1ServiceCIDRList. # noqa: E501 + :type: list[V1ServiceCIDR] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1ServiceCIDRList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ServiceCIDRList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ServiceCIDRList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ServiceCIDRList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ServiceCIDRList. # noqa: E501 + + + :return: The metadata of this V1ServiceCIDRList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ServiceCIDRList. + + + :param metadata: The metadata of this V1ServiceCIDRList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceCIDRList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceCIDRList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..ecbb80311e6b672c00f0e01d97658ef266af2b7f --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr_spec.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceCIDRSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'cidrs': 'list[str]' + } + + attribute_map = { + 'cidrs': 'cidrs' + } + + def __init__(self, cidrs=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceCIDRSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._cidrs = None + self.discriminator = None + + if cidrs is not None: + self.cidrs = cidrs + + @property + def cidrs(self): + """Gets the cidrs of this V1ServiceCIDRSpec. # noqa: E501 + + CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. # noqa: E501 + + :return: The cidrs of this V1ServiceCIDRSpec. # noqa: E501 + :rtype: list[str] + """ + return self._cidrs + + @cidrs.setter + def cidrs(self, cidrs): + """Sets the cidrs of this V1ServiceCIDRSpec. + + CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. # noqa: E501 + + :param cidrs: The cidrs of this V1ServiceCIDRSpec. # noqa: E501 + :type: list[str] + """ + + self._cidrs = cidrs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceCIDRSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceCIDRSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr_status.py new file mode 100644 index 0000000000000000000000000000000000000000..ec7aa76297fee93c71d94be4860a272e9f8510ea --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_cidr_status.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceCIDRStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'conditions': 'list[V1Condition]' + } + + attribute_map = { + 'conditions': 'conditions' + } + + def __init__(self, conditions=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceCIDRStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._conditions = None + self.discriminator = None + + if conditions is not None: + self.conditions = conditions + + @property + def conditions(self): + """Gets the conditions of this V1ServiceCIDRStatus. # noqa: E501 + + conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state # noqa: E501 + + :return: The conditions of this V1ServiceCIDRStatus. # noqa: E501 + :rtype: list[V1Condition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this V1ServiceCIDRStatus. + + conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state # noqa: E501 + + :param conditions: The conditions of this V1ServiceCIDRStatus. # noqa: E501 + :type: list[V1Condition] + """ + + self._conditions = conditions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceCIDRStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceCIDRStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_list.py new file mode 100644 index 0000000000000000000000000000000000000000..7d26ab89e95952c65f74064a678bd7fb183f4b40 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1Service]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1ServiceList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ServiceList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1ServiceList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ServiceList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1ServiceList. # noqa: E501 + + List of services # noqa: E501 + + :return: The items of this V1ServiceList. # noqa: E501 + :rtype: list[V1Service] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1ServiceList. + + List of services # noqa: E501 + + :param items: The items of this V1ServiceList. # noqa: E501 + :type: list[V1Service] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1ServiceList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1ServiceList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1ServiceList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ServiceList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1ServiceList. # noqa: E501 + + + :return: The metadata of this V1ServiceList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1ServiceList. + + + :param metadata: The metadata of this V1ServiceList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_port.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_port.py new file mode 100644 index 0000000000000000000000000000000000000000..532e6ffbec0688784fe55fbd957ac49742551a2a --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_port.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServicePort(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'app_protocol': 'str', + 'name': 'str', + 'node_port': 'int', + 'port': 'int', + 'protocol': 'str', + 'target_port': 'object' + } + + attribute_map = { + 'app_protocol': 'appProtocol', + 'name': 'name', + 'node_port': 'nodePort', + 'port': 'port', + 'protocol': 'protocol', + 'target_port': 'targetPort' + } + + def __init__(self, app_protocol=None, name=None, node_port=None, port=None, protocol=None, target_port=None, local_vars_configuration=None): # noqa: E501 + """V1ServicePort - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._app_protocol = None + self._name = None + self._node_port = None + self._port = None + self._protocol = None + self._target_port = None + self.discriminator = None + + if app_protocol is not None: + self.app_protocol = app_protocol + if name is not None: + self.name = name + if node_port is not None: + self.node_port = node_port + self.port = port + if protocol is not None: + self.protocol = protocol + if target_port is not None: + self.target_port = target_port + + @property + def app_protocol(self): + """Gets the app_protocol of this V1ServicePort. # noqa: E501 + + The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. # noqa: E501 + + :return: The app_protocol of this V1ServicePort. # noqa: E501 + :rtype: str + """ + return self._app_protocol + + @app_protocol.setter + def app_protocol(self, app_protocol): + """Sets the app_protocol of this V1ServicePort. + + The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. # noqa: E501 + + :param app_protocol: The app_protocol of this V1ServicePort. # noqa: E501 + :type: str + """ + + self._app_protocol = app_protocol + + @property + def name(self): + """Gets the name of this V1ServicePort. # noqa: E501 + + The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. # noqa: E501 + + :return: The name of this V1ServicePort. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1ServicePort. + + The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. # noqa: E501 + + :param name: The name of this V1ServicePort. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def node_port(self): + """Gets the node_port of this V1ServicePort. # noqa: E501 + + The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport # noqa: E501 + + :return: The node_port of this V1ServicePort. # noqa: E501 + :rtype: int + """ + return self._node_port + + @node_port.setter + def node_port(self, node_port): + """Sets the node_port of this V1ServicePort. + + The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport # noqa: E501 + + :param node_port: The node_port of this V1ServicePort. # noqa: E501 + :type: int + """ + + self._node_port = node_port + + @property + def port(self): + """Gets the port of this V1ServicePort. # noqa: E501 + + The port that will be exposed by this service. # noqa: E501 + + :return: The port of this V1ServicePort. # noqa: E501 + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this V1ServicePort. + + The port that will be exposed by this service. # noqa: E501 + + :param port: The port of this V1ServicePort. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501 + raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 + + self._port = port + + @property + def protocol(self): + """Gets the protocol of this V1ServicePort. # noqa: E501 + + The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP. # noqa: E501 + + :return: The protocol of this V1ServicePort. # noqa: E501 + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this V1ServicePort. + + The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP. # noqa: E501 + + :param protocol: The protocol of this V1ServicePort. # noqa: E501 + :type: str + """ + + self._protocol = protocol + + @property + def target_port(self): + """Gets the target_port of this V1ServicePort. # noqa: E501 + + Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service # noqa: E501 + + :return: The target_port of this V1ServicePort. # noqa: E501 + :rtype: object + """ + return self._target_port + + @target_port.setter + def target_port(self, target_port): + """Sets the target_port of this V1ServicePort. + + Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service # noqa: E501 + + :param target_port: The target_port of this V1ServicePort. # noqa: E501 + :type: object + """ + + self._target_port = target_port + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServicePort): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServicePort): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..4c086c9ce504167de8980daac009d1bac4f4f073 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_spec.py @@ -0,0 +1,652 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'allocate_load_balancer_node_ports': 'bool', + 'cluster_ip': 'str', + 'cluster_i_ps': 'list[str]', + 'external_i_ps': 'list[str]', + 'external_name': 'str', + 'external_traffic_policy': 'str', + 'health_check_node_port': 'int', + 'internal_traffic_policy': 'str', + 'ip_families': 'list[str]', + 'ip_family_policy': 'str', + 'load_balancer_class': 'str', + 'load_balancer_ip': 'str', + 'load_balancer_source_ranges': 'list[str]', + 'ports': 'list[V1ServicePort]', + 'publish_not_ready_addresses': 'bool', + 'selector': 'dict(str, str)', + 'session_affinity': 'str', + 'session_affinity_config': 'V1SessionAffinityConfig', + 'traffic_distribution': 'str', + 'type': 'str' + } + + attribute_map = { + 'allocate_load_balancer_node_ports': 'allocateLoadBalancerNodePorts', + 'cluster_ip': 'clusterIP', + 'cluster_i_ps': 'clusterIPs', + 'external_i_ps': 'externalIPs', + 'external_name': 'externalName', + 'external_traffic_policy': 'externalTrafficPolicy', + 'health_check_node_port': 'healthCheckNodePort', + 'internal_traffic_policy': 'internalTrafficPolicy', + 'ip_families': 'ipFamilies', + 'ip_family_policy': 'ipFamilyPolicy', + 'load_balancer_class': 'loadBalancerClass', + 'load_balancer_ip': 'loadBalancerIP', + 'load_balancer_source_ranges': 'loadBalancerSourceRanges', + 'ports': 'ports', + 'publish_not_ready_addresses': 'publishNotReadyAddresses', + 'selector': 'selector', + 'session_affinity': 'sessionAffinity', + 'session_affinity_config': 'sessionAffinityConfig', + 'traffic_distribution': 'trafficDistribution', + 'type': 'type' + } + + def __init__(self, allocate_load_balancer_node_ports=None, cluster_ip=None, cluster_i_ps=None, external_i_ps=None, external_name=None, external_traffic_policy=None, health_check_node_port=None, internal_traffic_policy=None, ip_families=None, ip_family_policy=None, load_balancer_class=None, load_balancer_ip=None, load_balancer_source_ranges=None, ports=None, publish_not_ready_addresses=None, selector=None, session_affinity=None, session_affinity_config=None, traffic_distribution=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._allocate_load_balancer_node_ports = None + self._cluster_ip = None + self._cluster_i_ps = None + self._external_i_ps = None + self._external_name = None + self._external_traffic_policy = None + self._health_check_node_port = None + self._internal_traffic_policy = None + self._ip_families = None + self._ip_family_policy = None + self._load_balancer_class = None + self._load_balancer_ip = None + self._load_balancer_source_ranges = None + self._ports = None + self._publish_not_ready_addresses = None + self._selector = None + self._session_affinity = None + self._session_affinity_config = None + self._traffic_distribution = None + self._type = None + self.discriminator = None + + if allocate_load_balancer_node_ports is not None: + self.allocate_load_balancer_node_ports = allocate_load_balancer_node_ports + if cluster_ip is not None: + self.cluster_ip = cluster_ip + if cluster_i_ps is not None: + self.cluster_i_ps = cluster_i_ps + if external_i_ps is not None: + self.external_i_ps = external_i_ps + if external_name is not None: + self.external_name = external_name + if external_traffic_policy is not None: + self.external_traffic_policy = external_traffic_policy + if health_check_node_port is not None: + self.health_check_node_port = health_check_node_port + if internal_traffic_policy is not None: + self.internal_traffic_policy = internal_traffic_policy + if ip_families is not None: + self.ip_families = ip_families + if ip_family_policy is not None: + self.ip_family_policy = ip_family_policy + if load_balancer_class is not None: + self.load_balancer_class = load_balancer_class + if load_balancer_ip is not None: + self.load_balancer_ip = load_balancer_ip + if load_balancer_source_ranges is not None: + self.load_balancer_source_ranges = load_balancer_source_ranges + if ports is not None: + self.ports = ports + if publish_not_ready_addresses is not None: + self.publish_not_ready_addresses = publish_not_ready_addresses + if selector is not None: + self.selector = selector + if session_affinity is not None: + self.session_affinity = session_affinity + if session_affinity_config is not None: + self.session_affinity_config = session_affinity_config + if traffic_distribution is not None: + self.traffic_distribution = traffic_distribution + if type is not None: + self.type = type + + @property + def allocate_load_balancer_node_ports(self): + """Gets the allocate_load_balancer_node_ports of this V1ServiceSpec. # noqa: E501 + + allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. # noqa: E501 + + :return: The allocate_load_balancer_node_ports of this V1ServiceSpec. # noqa: E501 + :rtype: bool + """ + return self._allocate_load_balancer_node_ports + + @allocate_load_balancer_node_ports.setter + def allocate_load_balancer_node_ports(self, allocate_load_balancer_node_ports): + """Sets the allocate_load_balancer_node_ports of this V1ServiceSpec. + + allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. # noqa: E501 + + :param allocate_load_balancer_node_ports: The allocate_load_balancer_node_ports of this V1ServiceSpec. # noqa: E501 + :type: bool + """ + + self._allocate_load_balancer_node_ports = allocate_load_balancer_node_ports + + @property + def cluster_ip(self): + """Gets the cluster_ip of this V1ServiceSpec. # noqa: E501 + + clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :return: The cluster_ip of this V1ServiceSpec. # noqa: E501 + :rtype: str + """ + return self._cluster_ip + + @cluster_ip.setter + def cluster_ip(self, cluster_ip): + """Sets the cluster_ip of this V1ServiceSpec. + + clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :param cluster_ip: The cluster_ip of this V1ServiceSpec. # noqa: E501 + :type: str + """ + + self._cluster_ip = cluster_ip + + @property + def cluster_i_ps(self): + """Gets the cluster_i_ps of this V1ServiceSpec. # noqa: E501 + + ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :return: The cluster_i_ps of this V1ServiceSpec. # noqa: E501 + :rtype: list[str] + """ + return self._cluster_i_ps + + @cluster_i_ps.setter + def cluster_i_ps(self, cluster_i_ps): + """Sets the cluster_i_ps of this V1ServiceSpec. + + ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :param cluster_i_ps: The cluster_i_ps of this V1ServiceSpec. # noqa: E501 + :type: list[str] + """ + + self._cluster_i_ps = cluster_i_ps + + @property + def external_i_ps(self): + """Gets the external_i_ps of this V1ServiceSpec. # noqa: E501 + + externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. # noqa: E501 + + :return: The external_i_ps of this V1ServiceSpec. # noqa: E501 + :rtype: list[str] + """ + return self._external_i_ps + + @external_i_ps.setter + def external_i_ps(self, external_i_ps): + """Sets the external_i_ps of this V1ServiceSpec. + + externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. # noqa: E501 + + :param external_i_ps: The external_i_ps of this V1ServiceSpec. # noqa: E501 + :type: list[str] + """ + + self._external_i_ps = external_i_ps + + @property + def external_name(self): + """Gets the external_name of this V1ServiceSpec. # noqa: E501 + + externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\". # noqa: E501 + + :return: The external_name of this V1ServiceSpec. # noqa: E501 + :rtype: str + """ + return self._external_name + + @external_name.setter + def external_name(self, external_name): + """Sets the external_name of this V1ServiceSpec. + + externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\". # noqa: E501 + + :param external_name: The external_name of this V1ServiceSpec. # noqa: E501 + :type: str + """ + + self._external_name = external_name + + @property + def external_traffic_policy(self): + """Gets the external_traffic_policy of this V1ServiceSpec. # noqa: E501 + + externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. # noqa: E501 + + :return: The external_traffic_policy of this V1ServiceSpec. # noqa: E501 + :rtype: str + """ + return self._external_traffic_policy + + @external_traffic_policy.setter + def external_traffic_policy(self, external_traffic_policy): + """Sets the external_traffic_policy of this V1ServiceSpec. + + externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. # noqa: E501 + + :param external_traffic_policy: The external_traffic_policy of this V1ServiceSpec. # noqa: E501 + :type: str + """ + + self._external_traffic_policy = external_traffic_policy + + @property + def health_check_node_port(self): + """Gets the health_check_node_port of this V1ServiceSpec. # noqa: E501 + + healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. # noqa: E501 + + :return: The health_check_node_port of this V1ServiceSpec. # noqa: E501 + :rtype: int + """ + return self._health_check_node_port + + @health_check_node_port.setter + def health_check_node_port(self, health_check_node_port): + """Sets the health_check_node_port of this V1ServiceSpec. + + healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. # noqa: E501 + + :param health_check_node_port: The health_check_node_port of this V1ServiceSpec. # noqa: E501 + :type: int + """ + + self._health_check_node_port = health_check_node_port + + @property + def internal_traffic_policy(self): + """Gets the internal_traffic_policy of this V1ServiceSpec. # noqa: E501 + + InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). # noqa: E501 + + :return: The internal_traffic_policy of this V1ServiceSpec. # noqa: E501 + :rtype: str + """ + return self._internal_traffic_policy + + @internal_traffic_policy.setter + def internal_traffic_policy(self, internal_traffic_policy): + """Sets the internal_traffic_policy of this V1ServiceSpec. + + InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). # noqa: E501 + + :param internal_traffic_policy: The internal_traffic_policy of this V1ServiceSpec. # noqa: E501 + :type: str + """ + + self._internal_traffic_policy = internal_traffic_policy + + @property + def ip_families(self): + """Gets the ip_families of this V1ServiceSpec. # noqa: E501 + + IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. # noqa: E501 + + :return: The ip_families of this V1ServiceSpec. # noqa: E501 + :rtype: list[str] + """ + return self._ip_families + + @ip_families.setter + def ip_families(self, ip_families): + """Sets the ip_families of this V1ServiceSpec. + + IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. # noqa: E501 + + :param ip_families: The ip_families of this V1ServiceSpec. # noqa: E501 + :type: list[str] + """ + + self._ip_families = ip_families + + @property + def ip_family_policy(self): + """Gets the ip_family_policy of this V1ServiceSpec. # noqa: E501 + + IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. # noqa: E501 + + :return: The ip_family_policy of this V1ServiceSpec. # noqa: E501 + :rtype: str + """ + return self._ip_family_policy + + @ip_family_policy.setter + def ip_family_policy(self, ip_family_policy): + """Sets the ip_family_policy of this V1ServiceSpec. + + IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. # noqa: E501 + + :param ip_family_policy: The ip_family_policy of this V1ServiceSpec. # noqa: E501 + :type: str + """ + + self._ip_family_policy = ip_family_policy + + @property + def load_balancer_class(self): + """Gets the load_balancer_class of this V1ServiceSpec. # noqa: E501 + + loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. # noqa: E501 + + :return: The load_balancer_class of this V1ServiceSpec. # noqa: E501 + :rtype: str + """ + return self._load_balancer_class + + @load_balancer_class.setter + def load_balancer_class(self, load_balancer_class): + """Sets the load_balancer_class of this V1ServiceSpec. + + loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. # noqa: E501 + + :param load_balancer_class: The load_balancer_class of this V1ServiceSpec. # noqa: E501 + :type: str + """ + + self._load_balancer_class = load_balancer_class + + @property + def load_balancer_ip(self): + """Gets the load_balancer_ip of this V1ServiceSpec. # noqa: E501 + + Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available. # noqa: E501 + + :return: The load_balancer_ip of this V1ServiceSpec. # noqa: E501 + :rtype: str + """ + return self._load_balancer_ip + + @load_balancer_ip.setter + def load_balancer_ip(self, load_balancer_ip): + """Sets the load_balancer_ip of this V1ServiceSpec. + + Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available. # noqa: E501 + + :param load_balancer_ip: The load_balancer_ip of this V1ServiceSpec. # noqa: E501 + :type: str + """ + + self._load_balancer_ip = load_balancer_ip + + @property + def load_balancer_source_ranges(self): + """Gets the load_balancer_source_ranges of this V1ServiceSpec. # noqa: E501 + + If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ # noqa: E501 + + :return: The load_balancer_source_ranges of this V1ServiceSpec. # noqa: E501 + :rtype: list[str] + """ + return self._load_balancer_source_ranges + + @load_balancer_source_ranges.setter + def load_balancer_source_ranges(self, load_balancer_source_ranges): + """Sets the load_balancer_source_ranges of this V1ServiceSpec. + + If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ # noqa: E501 + + :param load_balancer_source_ranges: The load_balancer_source_ranges of this V1ServiceSpec. # noqa: E501 + :type: list[str] + """ + + self._load_balancer_source_ranges = load_balancer_source_ranges + + @property + def ports(self): + """Gets the ports of this V1ServiceSpec. # noqa: E501 + + The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :return: The ports of this V1ServiceSpec. # noqa: E501 + :rtype: list[V1ServicePort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """Sets the ports of this V1ServiceSpec. + + The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :param ports: The ports of this V1ServiceSpec. # noqa: E501 + :type: list[V1ServicePort] + """ + + self._ports = ports + + @property + def publish_not_ready_addresses(self): + """Gets the publish_not_ready_addresses of this V1ServiceSpec. # noqa: E501 + + publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. # noqa: E501 + + :return: The publish_not_ready_addresses of this V1ServiceSpec. # noqa: E501 + :rtype: bool + """ + return self._publish_not_ready_addresses + + @publish_not_ready_addresses.setter + def publish_not_ready_addresses(self, publish_not_ready_addresses): + """Sets the publish_not_ready_addresses of this V1ServiceSpec. + + publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. # noqa: E501 + + :param publish_not_ready_addresses: The publish_not_ready_addresses of this V1ServiceSpec. # noqa: E501 + :type: bool + """ + + self._publish_not_ready_addresses = publish_not_ready_addresses + + @property + def selector(self): + """Gets the selector of this V1ServiceSpec. # noqa: E501 + + Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ # noqa: E501 + + :return: The selector of this V1ServiceSpec. # noqa: E501 + :rtype: dict(str, str) + """ + return self._selector + + @selector.setter + def selector(self, selector): + """Sets the selector of this V1ServiceSpec. + + Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ # noqa: E501 + + :param selector: The selector of this V1ServiceSpec. # noqa: E501 + :type: dict(str, str) + """ + + self._selector = selector + + @property + def session_affinity(self): + """Gets the session_affinity of this V1ServiceSpec. # noqa: E501 + + Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :return: The session_affinity of this V1ServiceSpec. # noqa: E501 + :rtype: str + """ + return self._session_affinity + + @session_affinity.setter + def session_affinity(self, session_affinity): + """Sets the session_affinity of this V1ServiceSpec. + + Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :param session_affinity: The session_affinity of this V1ServiceSpec. # noqa: E501 + :type: str + """ + + self._session_affinity = session_affinity + + @property + def session_affinity_config(self): + """Gets the session_affinity_config of this V1ServiceSpec. # noqa: E501 + + + :return: The session_affinity_config of this V1ServiceSpec. # noqa: E501 + :rtype: V1SessionAffinityConfig + """ + return self._session_affinity_config + + @session_affinity_config.setter + def session_affinity_config(self, session_affinity_config): + """Sets the session_affinity_config of this V1ServiceSpec. + + + :param session_affinity_config: The session_affinity_config of this V1ServiceSpec. # noqa: E501 + :type: V1SessionAffinityConfig + """ + + self._session_affinity_config = session_affinity_config + + @property + def traffic_distribution(self): + """Gets the traffic_distribution of this V1ServiceSpec. # noqa: E501 + + TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are in the same zone. # noqa: E501 + + :return: The traffic_distribution of this V1ServiceSpec. # noqa: E501 + :rtype: str + """ + return self._traffic_distribution + + @traffic_distribution.setter + def traffic_distribution(self, traffic_distribution): + """Sets the traffic_distribution of this V1ServiceSpec. + + TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are in the same zone. # noqa: E501 + + :param traffic_distribution: The traffic_distribution of this V1ServiceSpec. # noqa: E501 + :type: str + """ + + self._traffic_distribution = traffic_distribution + + @property + def type(self): + """Gets the type of this V1ServiceSpec. # noqa: E501 + + type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types # noqa: E501 + + :return: The type of this V1ServiceSpec. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1ServiceSpec. + + type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types # noqa: E501 + + :param type: The type of this V1ServiceSpec. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_status.py new file mode 100644 index 0000000000000000000000000000000000000000..222fc66e6d57c27aa5a969ec46c8e195ff772d2d --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_service_status.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1ServiceStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'conditions': 'list[V1Condition]', + 'load_balancer': 'V1LoadBalancerStatus' + } + + attribute_map = { + 'conditions': 'conditions', + 'load_balancer': 'loadBalancer' + } + + def __init__(self, conditions=None, load_balancer=None, local_vars_configuration=None): # noqa: E501 + """V1ServiceStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._conditions = None + self._load_balancer = None + self.discriminator = None + + if conditions is not None: + self.conditions = conditions + if load_balancer is not None: + self.load_balancer = load_balancer + + @property + def conditions(self): + """Gets the conditions of this V1ServiceStatus. # noqa: E501 + + Current service state # noqa: E501 + + :return: The conditions of this V1ServiceStatus. # noqa: E501 + :rtype: list[V1Condition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this V1ServiceStatus. + + Current service state # noqa: E501 + + :param conditions: The conditions of this V1ServiceStatus. # noqa: E501 + :type: list[V1Condition] + """ + + self._conditions = conditions + + @property + def load_balancer(self): + """Gets the load_balancer of this V1ServiceStatus. # noqa: E501 + + + :return: The load_balancer of this V1ServiceStatus. # noqa: E501 + :rtype: V1LoadBalancerStatus + """ + return self._load_balancer + + @load_balancer.setter + def load_balancer(self, load_balancer): + """Sets the load_balancer of this V1ServiceStatus. + + + :param load_balancer: The load_balancer of this V1ServiceStatus. # noqa: E501 + :type: V1LoadBalancerStatus + """ + + self._load_balancer = load_balancer + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ServiceStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1ServiceStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_session_affinity_config.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_session_affinity_config.py new file mode 100644 index 0000000000000000000000000000000000000000..351723599ce7659ddb5e5028d32debfb3026ebb8 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_session_affinity_config.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SessionAffinityConfig(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'client_ip': 'V1ClientIPConfig' + } + + attribute_map = { + 'client_ip': 'clientIP' + } + + def __init__(self, client_ip=None, local_vars_configuration=None): # noqa: E501 + """V1SessionAffinityConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._client_ip = None + self.discriminator = None + + if client_ip is not None: + self.client_ip = client_ip + + @property + def client_ip(self): + """Gets the client_ip of this V1SessionAffinityConfig. # noqa: E501 + + + :return: The client_ip of this V1SessionAffinityConfig. # noqa: E501 + :rtype: V1ClientIPConfig + """ + return self._client_ip + + @client_ip.setter + def client_ip(self, client_ip): + """Sets the client_ip of this V1SessionAffinityConfig. + + + :param client_ip: The client_ip of this V1SessionAffinityConfig. # noqa: E501 + :type: V1ClientIPConfig + """ + + self._client_ip = client_ip + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SessionAffinityConfig): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SessionAffinityConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_sleep_action.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_sleep_action.py new file mode 100644 index 0000000000000000000000000000000000000000..3b565d468834857a602ea4947b8780beca746df3 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_sleep_action.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SleepAction(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'seconds': 'int' + } + + attribute_map = { + 'seconds': 'seconds' + } + + def __init__(self, seconds=None, local_vars_configuration=None): # noqa: E501 + """V1SleepAction - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._seconds = None + self.discriminator = None + + self.seconds = seconds + + @property + def seconds(self): + """Gets the seconds of this V1SleepAction. # noqa: E501 + + Seconds is the number of seconds to sleep. # noqa: E501 + + :return: The seconds of this V1SleepAction. # noqa: E501 + :rtype: int + """ + return self._seconds + + @seconds.setter + def seconds(self, seconds): + """Sets the seconds of this V1SleepAction. + + Seconds is the number of seconds to sleep. # noqa: E501 + + :param seconds: The seconds of this V1SleepAction. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and seconds is None: # noqa: E501 + raise ValueError("Invalid value for `seconds`, must not be `None`") # noqa: E501 + + self._seconds = seconds + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SleepAction): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SleepAction): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set.py new file mode 100644 index 0000000000000000000000000000000000000000..8ace0c7bb8e3d2184715c92039c3dee25d698894 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StatefulSet(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1StatefulSetSpec', + 'status': 'V1StatefulSetStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1StatefulSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1StatefulSet. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1StatefulSet. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1StatefulSet. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1StatefulSet. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1StatefulSet. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1StatefulSet. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1StatefulSet. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1StatefulSet. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1StatefulSet. # noqa: E501 + + + :return: The metadata of this V1StatefulSet. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1StatefulSet. + + + :param metadata: The metadata of this V1StatefulSet. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1StatefulSet. # noqa: E501 + + + :return: The spec of this V1StatefulSet. # noqa: E501 + :rtype: V1StatefulSetSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1StatefulSet. + + + :param spec: The spec of this V1StatefulSet. # noqa: E501 + :type: V1StatefulSetSpec + """ + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1StatefulSet. # noqa: E501 + + + :return: The status of this V1StatefulSet. # noqa: E501 + :rtype: V1StatefulSetStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1StatefulSet. + + + :param status: The status of this V1StatefulSet. # noqa: E501 + :type: V1StatefulSetStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StatefulSet): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StatefulSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_condition.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_condition.py new file mode 100644 index 0000000000000000000000000000000000000000..2cf64fb99a7a13b860f6cd20054fca6e32239be7 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_condition.py @@ -0,0 +1,236 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StatefulSetCondition(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'last_transition_time': 'datetime', + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' + } + + attribute_map = { + 'last_transition_time': 'lastTransitionTime', + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' + } + + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1StatefulSetCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._last_transition_time = None + self._message = None + self._reason = None + self._status = None + self._type = None + self.discriminator = None + + if last_transition_time is not None: + self.last_transition_time = last_transition_time + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type + + @property + def last_transition_time(self): + """Gets the last_transition_time of this V1StatefulSetCondition. # noqa: E501 + + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1StatefulSetCondition. # noqa: E501 + :rtype: datetime + """ + return self._last_transition_time + + @last_transition_time.setter + def last_transition_time(self, last_transition_time): + """Sets the last_transition_time of this V1StatefulSetCondition. + + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1StatefulSetCondition. # noqa: E501 + :type: datetime + """ + + self._last_transition_time = last_transition_time + + @property + def message(self): + """Gets the message of this V1StatefulSetCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 + + :return: The message of this V1StatefulSetCondition. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1StatefulSetCondition. + + A human readable message indicating details about the transition. # noqa: E501 + + :param message: The message of this V1StatefulSetCondition. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def reason(self): + """Gets the reason of this V1StatefulSetCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 + + :return: The reason of this V1StatefulSetCondition. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1StatefulSetCondition. + + The reason for the condition's last transition. # noqa: E501 + + :param reason: The reason of this V1StatefulSetCondition. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def status(self): + """Gets the status of this V1StatefulSetCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :return: The status of this V1StatefulSetCondition. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1StatefulSetCondition. + + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1StatefulSetCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def type(self): + """Gets the type of this V1StatefulSetCondition. # noqa: E501 + + Type of statefulset condition. # noqa: E501 + + :return: The type of this V1StatefulSetCondition. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1StatefulSetCondition. + + Type of statefulset condition. # noqa: E501 + + :param type: The type of this V1StatefulSetCondition. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StatefulSetCondition): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StatefulSetCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_list.py new file mode 100644 index 0000000000000000000000000000000000000000..a66c05b5a84827bd01cfdd0767456cfd8aeded9b --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StatefulSetList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1StatefulSet]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1StatefulSetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1StatefulSetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1StatefulSetList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1StatefulSetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1StatefulSetList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1StatefulSetList. # noqa: E501 + + Items is the list of stateful sets. # noqa: E501 + + :return: The items of this V1StatefulSetList. # noqa: E501 + :rtype: list[V1StatefulSet] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1StatefulSetList. + + Items is the list of stateful sets. # noqa: E501 + + :param items: The items of this V1StatefulSetList. # noqa: E501 + :type: list[V1StatefulSet] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1StatefulSetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1StatefulSetList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1StatefulSetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1StatefulSetList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1StatefulSetList. # noqa: E501 + + + :return: The metadata of this V1StatefulSetList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1StatefulSetList. + + + :param metadata: The metadata of this V1StatefulSetList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StatefulSetList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StatefulSetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_ordinals.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_ordinals.py new file mode 100644 index 0000000000000000000000000000000000000000..089cccfc5f7cdda0d83be603b028db11aa54eba9 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_ordinals.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StatefulSetOrdinals(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'start': 'int' + } + + attribute_map = { + 'start': 'start' + } + + def __init__(self, start=None, local_vars_configuration=None): # noqa: E501 + """V1StatefulSetOrdinals - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._start = None + self.discriminator = None + + if start is not None: + self.start = start + + @property + def start(self): + """Gets the start of this V1StatefulSetOrdinals. # noqa: E501 + + start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). If unset, defaults to 0. Replica indices will be in the range: [0, .spec.replicas). # noqa: E501 + + :return: The start of this V1StatefulSetOrdinals. # noqa: E501 + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this V1StatefulSetOrdinals. + + start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). If unset, defaults to 0. Replica indices will be in the range: [0, .spec.replicas). # noqa: E501 + + :param start: The start of this V1StatefulSetOrdinals. # noqa: E501 + :type: int + """ + + self._start = start + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StatefulSetOrdinals): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StatefulSetOrdinals): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py new file mode 100644 index 0000000000000000000000000000000000000000..8f2fb59e0aac6a631152da2059e9cd3570598704 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StatefulSetPersistentVolumeClaimRetentionPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'when_deleted': 'str', + 'when_scaled': 'str' + } + + attribute_map = { + 'when_deleted': 'whenDeleted', + 'when_scaled': 'whenScaled' + } + + def __init__(self, when_deleted=None, when_scaled=None, local_vars_configuration=None): # noqa: E501 + """V1StatefulSetPersistentVolumeClaimRetentionPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._when_deleted = None + self._when_scaled = None + self.discriminator = None + + if when_deleted is not None: + self.when_deleted = when_deleted + if when_scaled is not None: + self.when_scaled = when_scaled + + @property + def when_deleted(self): + """Gets the when_deleted of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. # noqa: E501 + + WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted. # noqa: E501 + + :return: The when_deleted of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. # noqa: E501 + :rtype: str + """ + return self._when_deleted + + @when_deleted.setter + def when_deleted(self, when_deleted): + """Sets the when_deleted of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. + + WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted. # noqa: E501 + + :param when_deleted: The when_deleted of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. # noqa: E501 + :type: str + """ + + self._when_deleted = when_deleted + + @property + def when_scaled(self): + """Gets the when_scaled of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. # noqa: E501 + + WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted. # noqa: E501 + + :return: The when_scaled of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. # noqa: E501 + :rtype: str + """ + return self._when_scaled + + @when_scaled.setter + def when_scaled(self, when_scaled): + """Sets the when_scaled of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. + + WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted. # noqa: E501 + + :param when_scaled: The when_scaled of this V1StatefulSetPersistentVolumeClaimRetentionPolicy. # noqa: E501 + :type: str + """ + + self._when_scaled = when_scaled + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StatefulSetPersistentVolumeClaimRetentionPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StatefulSetPersistentVolumeClaimRetentionPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_spec.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_spec.py new file mode 100644 index 0000000000000000000000000000000000000000..2d9c6b1f2d5132d66c77c4eb7f3c25f47dada9cb --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_spec.py @@ -0,0 +1,394 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StatefulSetSpec(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'min_ready_seconds': 'int', + 'ordinals': 'V1StatefulSetOrdinals', + 'persistent_volume_claim_retention_policy': 'V1StatefulSetPersistentVolumeClaimRetentionPolicy', + 'pod_management_policy': 'str', + 'replicas': 'int', + 'revision_history_limit': 'int', + 'selector': 'V1LabelSelector', + 'service_name': 'str', + 'template': 'V1PodTemplateSpec', + 'update_strategy': 'V1StatefulSetUpdateStrategy', + 'volume_claim_templates': 'list[V1PersistentVolumeClaim]' + } + + attribute_map = { + 'min_ready_seconds': 'minReadySeconds', + 'ordinals': 'ordinals', + 'persistent_volume_claim_retention_policy': 'persistentVolumeClaimRetentionPolicy', + 'pod_management_policy': 'podManagementPolicy', + 'replicas': 'replicas', + 'revision_history_limit': 'revisionHistoryLimit', + 'selector': 'selector', + 'service_name': 'serviceName', + 'template': 'template', + 'update_strategy': 'updateStrategy', + 'volume_claim_templates': 'volumeClaimTemplates' + } + + def __init__(self, min_ready_seconds=None, ordinals=None, persistent_volume_claim_retention_policy=None, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None, local_vars_configuration=None): # noqa: E501 + """V1StatefulSetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._min_ready_seconds = None + self._ordinals = None + self._persistent_volume_claim_retention_policy = None + self._pod_management_policy = None + self._replicas = None + self._revision_history_limit = None + self._selector = None + self._service_name = None + self._template = None + self._update_strategy = None + self._volume_claim_templates = None + self.discriminator = None + + if min_ready_seconds is not None: + self.min_ready_seconds = min_ready_seconds + if ordinals is not None: + self.ordinals = ordinals + if persistent_volume_claim_retention_policy is not None: + self.persistent_volume_claim_retention_policy = persistent_volume_claim_retention_policy + if pod_management_policy is not None: + self.pod_management_policy = pod_management_policy + if replicas is not None: + self.replicas = replicas + if revision_history_limit is not None: + self.revision_history_limit = revision_history_limit + self.selector = selector + if service_name is not None: + self.service_name = service_name + self.template = template + if update_strategy is not None: + self.update_strategy = update_strategy + if volume_claim_templates is not None: + self.volume_claim_templates = volume_claim_templates + + @property + def min_ready_seconds(self): + """Gets the min_ready_seconds of this V1StatefulSetSpec. # noqa: E501 + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 + + :return: The min_ready_seconds of this V1StatefulSetSpec. # noqa: E501 + :rtype: int + """ + return self._min_ready_seconds + + @min_ready_seconds.setter + def min_ready_seconds(self, min_ready_seconds): + """Sets the min_ready_seconds of this V1StatefulSetSpec. + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 + + :param min_ready_seconds: The min_ready_seconds of this V1StatefulSetSpec. # noqa: E501 + :type: int + """ + + self._min_ready_seconds = min_ready_seconds + + @property + def ordinals(self): + """Gets the ordinals of this V1StatefulSetSpec. # noqa: E501 + + + :return: The ordinals of this V1StatefulSetSpec. # noqa: E501 + :rtype: V1StatefulSetOrdinals + """ + return self._ordinals + + @ordinals.setter + def ordinals(self, ordinals): + """Sets the ordinals of this V1StatefulSetSpec. + + + :param ordinals: The ordinals of this V1StatefulSetSpec. # noqa: E501 + :type: V1StatefulSetOrdinals + """ + + self._ordinals = ordinals + + @property + def persistent_volume_claim_retention_policy(self): + """Gets the persistent_volume_claim_retention_policy of this V1StatefulSetSpec. # noqa: E501 + + + :return: The persistent_volume_claim_retention_policy of this V1StatefulSetSpec. # noqa: E501 + :rtype: V1StatefulSetPersistentVolumeClaimRetentionPolicy + """ + return self._persistent_volume_claim_retention_policy + + @persistent_volume_claim_retention_policy.setter + def persistent_volume_claim_retention_policy(self, persistent_volume_claim_retention_policy): + """Sets the persistent_volume_claim_retention_policy of this V1StatefulSetSpec. + + + :param persistent_volume_claim_retention_policy: The persistent_volume_claim_retention_policy of this V1StatefulSetSpec. # noqa: E501 + :type: V1StatefulSetPersistentVolumeClaimRetentionPolicy + """ + + self._persistent_volume_claim_retention_policy = persistent_volume_claim_retention_policy + + @property + def pod_management_policy(self): + """Gets the pod_management_policy of this V1StatefulSetSpec. # noqa: E501 + + podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. # noqa: E501 + + :return: The pod_management_policy of this V1StatefulSetSpec. # noqa: E501 + :rtype: str + """ + return self._pod_management_policy + + @pod_management_policy.setter + def pod_management_policy(self, pod_management_policy): + """Sets the pod_management_policy of this V1StatefulSetSpec. + + podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. # noqa: E501 + + :param pod_management_policy: The pod_management_policy of this V1StatefulSetSpec. # noqa: E501 + :type: str + """ + + self._pod_management_policy = pod_management_policy + + @property + def replicas(self): + """Gets the replicas of this V1StatefulSetSpec. # noqa: E501 + + replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. # noqa: E501 + + :return: The replicas of this V1StatefulSetSpec. # noqa: E501 + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """Sets the replicas of this V1StatefulSetSpec. + + replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. # noqa: E501 + + :param replicas: The replicas of this V1StatefulSetSpec. # noqa: E501 + :type: int + """ + + self._replicas = replicas + + @property + def revision_history_limit(self): + """Gets the revision_history_limit of this V1StatefulSetSpec. # noqa: E501 + + revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. # noqa: E501 + + :return: The revision_history_limit of this V1StatefulSetSpec. # noqa: E501 + :rtype: int + """ + return self._revision_history_limit + + @revision_history_limit.setter + def revision_history_limit(self, revision_history_limit): + """Sets the revision_history_limit of this V1StatefulSetSpec. + + revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. # noqa: E501 + + :param revision_history_limit: The revision_history_limit of this V1StatefulSetSpec. # noqa: E501 + :type: int + """ + + self._revision_history_limit = revision_history_limit + + @property + def selector(self): + """Gets the selector of this V1StatefulSetSpec. # noqa: E501 + + + :return: The selector of this V1StatefulSetSpec. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """Sets the selector of this V1StatefulSetSpec. + + + :param selector: The selector of this V1StatefulSetSpec. # noqa: E501 + :type: V1LabelSelector + """ + if self.local_vars_configuration.client_side_validation and selector is None: # noqa: E501 + raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 + + self._selector = selector + + @property + def service_name(self): + """Gets the service_name of this V1StatefulSetSpec. # noqa: E501 + + serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. # noqa: E501 + + :return: The service_name of this V1StatefulSetSpec. # noqa: E501 + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """Sets the service_name of this V1StatefulSetSpec. + + serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. # noqa: E501 + + :param service_name: The service_name of this V1StatefulSetSpec. # noqa: E501 + :type: str + """ + + self._service_name = service_name + + @property + def template(self): + """Gets the template of this V1StatefulSetSpec. # noqa: E501 + + + :return: The template of this V1StatefulSetSpec. # noqa: E501 + :rtype: V1PodTemplateSpec + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this V1StatefulSetSpec. + + + :param template: The template of this V1StatefulSetSpec. # noqa: E501 + :type: V1PodTemplateSpec + """ + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 + + self._template = template + + @property + def update_strategy(self): + """Gets the update_strategy of this V1StatefulSetSpec. # noqa: E501 + + + :return: The update_strategy of this V1StatefulSetSpec. # noqa: E501 + :rtype: V1StatefulSetUpdateStrategy + """ + return self._update_strategy + + @update_strategy.setter + def update_strategy(self, update_strategy): + """Sets the update_strategy of this V1StatefulSetSpec. + + + :param update_strategy: The update_strategy of this V1StatefulSetSpec. # noqa: E501 + :type: V1StatefulSetUpdateStrategy + """ + + self._update_strategy = update_strategy + + @property + def volume_claim_templates(self): + """Gets the volume_claim_templates of this V1StatefulSetSpec. # noqa: E501 + + volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. # noqa: E501 + + :return: The volume_claim_templates of this V1StatefulSetSpec. # noqa: E501 + :rtype: list[V1PersistentVolumeClaim] + """ + return self._volume_claim_templates + + @volume_claim_templates.setter + def volume_claim_templates(self, volume_claim_templates): + """Sets the volume_claim_templates of this V1StatefulSetSpec. + + volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. # noqa: E501 + + :param volume_claim_templates: The volume_claim_templates of this V1StatefulSetSpec. # noqa: E501 + :type: list[V1PersistentVolumeClaim] + """ + + self._volume_claim_templates = volume_claim_templates + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StatefulSetSpec): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StatefulSetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_status.py new file mode 100644 index 0000000000000000000000000000000000000000..8d50a6068f8067d0c594523b71d0f710ace2fb69 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_status.py @@ -0,0 +1,375 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StatefulSetStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'available_replicas': 'int', + 'collision_count': 'int', + 'conditions': 'list[V1StatefulSetCondition]', + 'current_replicas': 'int', + 'current_revision': 'str', + 'observed_generation': 'int', + 'ready_replicas': 'int', + 'replicas': 'int', + 'update_revision': 'str', + 'updated_replicas': 'int' + } + + attribute_map = { + 'available_replicas': 'availableReplicas', + 'collision_count': 'collisionCount', + 'conditions': 'conditions', + 'current_replicas': 'currentReplicas', + 'current_revision': 'currentRevision', + 'observed_generation': 'observedGeneration', + 'ready_replicas': 'readyReplicas', + 'replicas': 'replicas', + 'update_revision': 'updateRevision', + 'updated_replicas': 'updatedReplicas' + } + + def __init__(self, available_replicas=None, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None, local_vars_configuration=None): # noqa: E501 + """V1StatefulSetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._available_replicas = None + self._collision_count = None + self._conditions = None + self._current_replicas = None + self._current_revision = None + self._observed_generation = None + self._ready_replicas = None + self._replicas = None + self._update_revision = None + self._updated_replicas = None + self.discriminator = None + + if available_replicas is not None: + self.available_replicas = available_replicas + if collision_count is not None: + self.collision_count = collision_count + if conditions is not None: + self.conditions = conditions + if current_replicas is not None: + self.current_replicas = current_replicas + if current_revision is not None: + self.current_revision = current_revision + if observed_generation is not None: + self.observed_generation = observed_generation + if ready_replicas is not None: + self.ready_replicas = ready_replicas + self.replicas = replicas + if update_revision is not None: + self.update_revision = update_revision + if updated_replicas is not None: + self.updated_replicas = updated_replicas + + @property + def available_replicas(self): + """Gets the available_replicas of this V1StatefulSetStatus. # noqa: E501 + + Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. # noqa: E501 + + :return: The available_replicas of this V1StatefulSetStatus. # noqa: E501 + :rtype: int + """ + return self._available_replicas + + @available_replicas.setter + def available_replicas(self, available_replicas): + """Sets the available_replicas of this V1StatefulSetStatus. + + Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. # noqa: E501 + + :param available_replicas: The available_replicas of this V1StatefulSetStatus. # noqa: E501 + :type: int + """ + + self._available_replicas = available_replicas + + @property + def collision_count(self): + """Gets the collision_count of this V1StatefulSetStatus. # noqa: E501 + + collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 + + :return: The collision_count of this V1StatefulSetStatus. # noqa: E501 + :rtype: int + """ + return self._collision_count + + @collision_count.setter + def collision_count(self, collision_count): + """Sets the collision_count of this V1StatefulSetStatus. + + collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 + + :param collision_count: The collision_count of this V1StatefulSetStatus. # noqa: E501 + :type: int + """ + + self._collision_count = collision_count + + @property + def conditions(self): + """Gets the conditions of this V1StatefulSetStatus. # noqa: E501 + + Represents the latest available observations of a statefulset's current state. # noqa: E501 + + :return: The conditions of this V1StatefulSetStatus. # noqa: E501 + :rtype: list[V1StatefulSetCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this V1StatefulSetStatus. + + Represents the latest available observations of a statefulset's current state. # noqa: E501 + + :param conditions: The conditions of this V1StatefulSetStatus. # noqa: E501 + :type: list[V1StatefulSetCondition] + """ + + self._conditions = conditions + + @property + def current_replicas(self): + """Gets the current_replicas of this V1StatefulSetStatus. # noqa: E501 + + currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. # noqa: E501 + + :return: The current_replicas of this V1StatefulSetStatus. # noqa: E501 + :rtype: int + """ + return self._current_replicas + + @current_replicas.setter + def current_replicas(self, current_replicas): + """Sets the current_replicas of this V1StatefulSetStatus. + + currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. # noqa: E501 + + :param current_replicas: The current_replicas of this V1StatefulSetStatus. # noqa: E501 + :type: int + """ + + self._current_replicas = current_replicas + + @property + def current_revision(self): + """Gets the current_revision of this V1StatefulSetStatus. # noqa: E501 + + currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). # noqa: E501 + + :return: The current_revision of this V1StatefulSetStatus. # noqa: E501 + :rtype: str + """ + return self._current_revision + + @current_revision.setter + def current_revision(self, current_revision): + """Sets the current_revision of this V1StatefulSetStatus. + + currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). # noqa: E501 + + :param current_revision: The current_revision of this V1StatefulSetStatus. # noqa: E501 + :type: str + """ + + self._current_revision = current_revision + + @property + def observed_generation(self): + """Gets the observed_generation of this V1StatefulSetStatus. # noqa: E501 + + observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. # noqa: E501 + + :return: The observed_generation of this V1StatefulSetStatus. # noqa: E501 + :rtype: int + """ + return self._observed_generation + + @observed_generation.setter + def observed_generation(self, observed_generation): + """Sets the observed_generation of this V1StatefulSetStatus. + + observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. # noqa: E501 + + :param observed_generation: The observed_generation of this V1StatefulSetStatus. # noqa: E501 + :type: int + """ + + self._observed_generation = observed_generation + + @property + def ready_replicas(self): + """Gets the ready_replicas of this V1StatefulSetStatus. # noqa: E501 + + readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. # noqa: E501 + + :return: The ready_replicas of this V1StatefulSetStatus. # noqa: E501 + :rtype: int + """ + return self._ready_replicas + + @ready_replicas.setter + def ready_replicas(self, ready_replicas): + """Sets the ready_replicas of this V1StatefulSetStatus. + + readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. # noqa: E501 + + :param ready_replicas: The ready_replicas of this V1StatefulSetStatus. # noqa: E501 + :type: int + """ + + self._ready_replicas = ready_replicas + + @property + def replicas(self): + """Gets the replicas of this V1StatefulSetStatus. # noqa: E501 + + replicas is the number of Pods created by the StatefulSet controller. # noqa: E501 + + :return: The replicas of this V1StatefulSetStatus. # noqa: E501 + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """Sets the replicas of this V1StatefulSetStatus. + + replicas is the number of Pods created by the StatefulSet controller. # noqa: E501 + + :param replicas: The replicas of this V1StatefulSetStatus. # noqa: E501 + :type: int + """ + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 + + self._replicas = replicas + + @property + def update_revision(self): + """Gets the update_revision of this V1StatefulSetStatus. # noqa: E501 + + updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) # noqa: E501 + + :return: The update_revision of this V1StatefulSetStatus. # noqa: E501 + :rtype: str + """ + return self._update_revision + + @update_revision.setter + def update_revision(self, update_revision): + """Sets the update_revision of this V1StatefulSetStatus. + + updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) # noqa: E501 + + :param update_revision: The update_revision of this V1StatefulSetStatus. # noqa: E501 + :type: str + """ + + self._update_revision = update_revision + + @property + def updated_replicas(self): + """Gets the updated_replicas of this V1StatefulSetStatus. # noqa: E501 + + updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. # noqa: E501 + + :return: The updated_replicas of this V1StatefulSetStatus. # noqa: E501 + :rtype: int + """ + return self._updated_replicas + + @updated_replicas.setter + def updated_replicas(self, updated_replicas): + """Sets the updated_replicas of this V1StatefulSetStatus. + + updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. # noqa: E501 + + :param updated_replicas: The updated_replicas of this V1StatefulSetStatus. # noqa: E501 + :type: int + """ + + self._updated_replicas = updated_replicas + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StatefulSetStatus): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StatefulSetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_update_strategy.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_update_strategy.py new file mode 100644 index 0000000000000000000000000000000000000000..6f4abdd4d95d2bab9fbd58c6860283db78274326 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_stateful_set_update_strategy.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StatefulSetUpdateStrategy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'rolling_update': 'V1RollingUpdateStatefulSetStrategy', + 'type': 'str' + } + + attribute_map = { + 'rolling_update': 'rollingUpdate', + 'type': 'type' + } + + def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): # noqa: E501 + """V1StatefulSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._rolling_update = None + self._type = None + self.discriminator = None + + if rolling_update is not None: + self.rolling_update = rolling_update + if type is not None: + self.type = type + + @property + def rolling_update(self): + """Gets the rolling_update of this V1StatefulSetUpdateStrategy. # noqa: E501 + + + :return: The rolling_update of this V1StatefulSetUpdateStrategy. # noqa: E501 + :rtype: V1RollingUpdateStatefulSetStrategy + """ + return self._rolling_update + + @rolling_update.setter + def rolling_update(self, rolling_update): + """Sets the rolling_update of this V1StatefulSetUpdateStrategy. + + + :param rolling_update: The rolling_update of this V1StatefulSetUpdateStrategy. # noqa: E501 + :type: V1RollingUpdateStatefulSetStrategy + """ + + self._rolling_update = rolling_update + + @property + def type(self): + """Gets the type of this V1StatefulSetUpdateStrategy. # noqa: E501 + + Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. # noqa: E501 + + :return: The type of this V1StatefulSetUpdateStrategy. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1StatefulSetUpdateStrategy. + + Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. # noqa: E501 + + :param type: The type of this V1StatefulSetUpdateStrategy. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StatefulSetUpdateStrategy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StatefulSetUpdateStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_status.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_status.py new file mode 100644 index 0000000000000000000000000000000000000000..aed2677058eeb9ea6e9b36d487bedf277d3dcf6b --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_status.py @@ -0,0 +1,314 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1Status(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'code': 'int', + 'details': 'V1StatusDetails', + 'kind': 'str', + 'message': 'str', + 'metadata': 'V1ListMeta', + 'reason': 'str', + 'status': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'code': 'code', + 'details': 'details', + 'kind': 'kind', + 'message': 'message', + 'metadata': 'metadata', + 'reason': 'reason', + 'status': 'status' + } + + def __init__(self, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1Status - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._code = None + self._details = None + self._kind = None + self._message = None + self._metadata = None + self._reason = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if code is not None: + self.code = code + if details is not None: + self.details = details + if kind is not None: + self.kind = kind + if message is not None: + self.message = message + if metadata is not None: + self.metadata = metadata + if reason is not None: + self.reason = reason + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1Status. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Status. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1Status. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Status. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def code(self): + """Gets the code of this V1Status. # noqa: E501 + + Suggested HTTP return code for this status, 0 if not set. # noqa: E501 + + :return: The code of this V1Status. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this V1Status. + + Suggested HTTP return code for this status, 0 if not set. # noqa: E501 + + :param code: The code of this V1Status. # noqa: E501 + :type: int + """ + + self._code = code + + @property + def details(self): + """Gets the details of this V1Status. # noqa: E501 + + + :return: The details of this V1Status. # noqa: E501 + :rtype: V1StatusDetails + """ + return self._details + + @details.setter + def details(self, details): + """Sets the details of this V1Status. + + + :param details: The details of this V1Status. # noqa: E501 + :type: V1StatusDetails + """ + + self._details = details + + @property + def kind(self): + """Gets the kind of this V1Status. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1Status. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1Status. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1Status. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def message(self): + """Gets the message of this V1Status. # noqa: E501 + + A human-readable description of the status of this operation. # noqa: E501 + + :return: The message of this V1Status. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1Status. + + A human-readable description of the status of this operation. # noqa: E501 + + :param message: The message of this V1Status. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def metadata(self): + """Gets the metadata of this V1Status. # noqa: E501 + + + :return: The metadata of this V1Status. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1Status. + + + :param metadata: The metadata of this V1Status. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + @property + def reason(self): + """Gets the reason of this V1Status. # noqa: E501 + + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. # noqa: E501 + + :return: The reason of this V1Status. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1Status. + + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. # noqa: E501 + + :param reason: The reason of this V1Status. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def status(self): + """Gets the status of this V1Status. # noqa: E501 + + Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status # noqa: E501 + + :return: The status of this V1Status. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1Status. + + Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status # noqa: E501 + + :param status: The status of this V1Status. # noqa: E501 + :type: str + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Status): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1Status): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_status_cause.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_status_cause.py new file mode 100644 index 0000000000000000000000000000000000000000..ab37e2bf83204d862910b13310d5cb624bb1521e --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_status_cause.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StatusCause(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'field': 'str', + 'message': 'str', + 'reason': 'str' + } + + attribute_map = { + 'field': 'field', + 'message': 'message', + 'reason': 'reason' + } + + def __init__(self, field=None, message=None, reason=None, local_vars_configuration=None): # noqa: E501 + """V1StatusCause - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._field = None + self._message = None + self._reason = None + self.discriminator = None + + if field is not None: + self.field = field + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + + @property + def field(self): + """Gets the field of this V1StatusCause. # noqa: E501 + + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" # noqa: E501 + + :return: The field of this V1StatusCause. # noqa: E501 + :rtype: str + """ + return self._field + + @field.setter + def field(self, field): + """Sets the field of this V1StatusCause. + + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" # noqa: E501 + + :param field: The field of this V1StatusCause. # noqa: E501 + :type: str + """ + + self._field = field + + @property + def message(self): + """Gets the message of this V1StatusCause. # noqa: E501 + + A human-readable description of the cause of the error. This field may be presented as-is to a reader. # noqa: E501 + + :return: The message of this V1StatusCause. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this V1StatusCause. + + A human-readable description of the cause of the error. This field may be presented as-is to a reader. # noqa: E501 + + :param message: The message of this V1StatusCause. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def reason(self): + """Gets the reason of this V1StatusCause. # noqa: E501 + + A machine-readable description of the cause of the error. If this value is empty there is no information available. # noqa: E501 + + :return: The reason of this V1StatusCause. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this V1StatusCause. + + A machine-readable description of the cause of the error. If this value is empty there is no information available. # noqa: E501 + + :param reason: The reason of this V1StatusCause. # noqa: E501 + :type: str + """ + + self._reason = reason + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StatusCause): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StatusCause): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_status_details.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_status_details.py new file mode 100644 index 0000000000000000000000000000000000000000..47b5fecc8bfe36b3543e6a84604dfa11dcba18d7 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_status_details.py @@ -0,0 +1,262 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StatusDetails(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'causes': 'list[V1StatusCause]', + 'group': 'str', + 'kind': 'str', + 'name': 'str', + 'retry_after_seconds': 'int', + 'uid': 'str' + } + + attribute_map = { + 'causes': 'causes', + 'group': 'group', + 'kind': 'kind', + 'name': 'name', + 'retry_after_seconds': 'retryAfterSeconds', + 'uid': 'uid' + } + + def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_seconds=None, uid=None, local_vars_configuration=None): # noqa: E501 + """V1StatusDetails - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._causes = None + self._group = None + self._kind = None + self._name = None + self._retry_after_seconds = None + self._uid = None + self.discriminator = None + + if causes is not None: + self.causes = causes + if group is not None: + self.group = group + if kind is not None: + self.kind = kind + if name is not None: + self.name = name + if retry_after_seconds is not None: + self.retry_after_seconds = retry_after_seconds + if uid is not None: + self.uid = uid + + @property + def causes(self): + """Gets the causes of this V1StatusDetails. # noqa: E501 + + The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. # noqa: E501 + + :return: The causes of this V1StatusDetails. # noqa: E501 + :rtype: list[V1StatusCause] + """ + return self._causes + + @causes.setter + def causes(self, causes): + """Sets the causes of this V1StatusDetails. + + The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. # noqa: E501 + + :param causes: The causes of this V1StatusDetails. # noqa: E501 + :type: list[V1StatusCause] + """ + + self._causes = causes + + @property + def group(self): + """Gets the group of this V1StatusDetails. # noqa: E501 + + The group attribute of the resource associated with the status StatusReason. # noqa: E501 + + :return: The group of this V1StatusDetails. # noqa: E501 + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this V1StatusDetails. + + The group attribute of the resource associated with the status StatusReason. # noqa: E501 + + :param group: The group of this V1StatusDetails. # noqa: E501 + :type: str + """ + + self._group = group + + @property + def kind(self): + """Gets the kind of this V1StatusDetails. # noqa: E501 + + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1StatusDetails. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1StatusDetails. + + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1StatusDetails. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def name(self): + """Gets the name of this V1StatusDetails. # noqa: E501 + + The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). # noqa: E501 + + :return: The name of this V1StatusDetails. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1StatusDetails. + + The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). # noqa: E501 + + :param name: The name of this V1StatusDetails. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def retry_after_seconds(self): + """Gets the retry_after_seconds of this V1StatusDetails. # noqa: E501 + + If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. # noqa: E501 + + :return: The retry_after_seconds of this V1StatusDetails. # noqa: E501 + :rtype: int + """ + return self._retry_after_seconds + + @retry_after_seconds.setter + def retry_after_seconds(self, retry_after_seconds): + """Sets the retry_after_seconds of this V1StatusDetails. + + If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. # noqa: E501 + + :param retry_after_seconds: The retry_after_seconds of this V1StatusDetails. # noqa: E501 + :type: int + """ + + self._retry_after_seconds = retry_after_seconds + + @property + def uid(self): + """Gets the uid of this V1StatusDetails. # noqa: E501 + + UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids # noqa: E501 + + :return: The uid of this V1StatusDetails. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this V1StatusDetails. + + UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids # noqa: E501 + + :param uid: The uid of this V1StatusDetails. # noqa: E501 + :type: str + """ + + self._uid = uid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StatusDetails): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StatusDetails): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_class.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_class.py new file mode 100644 index 0000000000000000000000000000000000000000..580556feb98a9d255169390768c896bcf127a9e3 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_class.py @@ -0,0 +1,373 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StorageClass(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'allow_volume_expansion': 'bool', + 'allowed_topologies': 'list[V1TopologySelectorTerm]', + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'mount_options': 'list[str]', + 'parameters': 'dict(str, str)', + 'provisioner': 'str', + 'reclaim_policy': 'str', + 'volume_binding_mode': 'str' + } + + attribute_map = { + 'allow_volume_expansion': 'allowVolumeExpansion', + 'allowed_topologies': 'allowedTopologies', + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'mount_options': 'mountOptions', + 'parameters': 'parameters', + 'provisioner': 'provisioner', + 'reclaim_policy': 'reclaimPolicy', + 'volume_binding_mode': 'volumeBindingMode' + } + + def __init__(self, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None, local_vars_configuration=None): # noqa: E501 + """V1StorageClass - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._allow_volume_expansion = None + self._allowed_topologies = None + self._api_version = None + self._kind = None + self._metadata = None + self._mount_options = None + self._parameters = None + self._provisioner = None + self._reclaim_policy = None + self._volume_binding_mode = None + self.discriminator = None + + if allow_volume_expansion is not None: + self.allow_volume_expansion = allow_volume_expansion + if allowed_topologies is not None: + self.allowed_topologies = allowed_topologies + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if mount_options is not None: + self.mount_options = mount_options + if parameters is not None: + self.parameters = parameters + self.provisioner = provisioner + if reclaim_policy is not None: + self.reclaim_policy = reclaim_policy + if volume_binding_mode is not None: + self.volume_binding_mode = volume_binding_mode + + @property + def allow_volume_expansion(self): + """Gets the allow_volume_expansion of this V1StorageClass. # noqa: E501 + + allowVolumeExpansion shows whether the storage class allow volume expand. # noqa: E501 + + :return: The allow_volume_expansion of this V1StorageClass. # noqa: E501 + :rtype: bool + """ + return self._allow_volume_expansion + + @allow_volume_expansion.setter + def allow_volume_expansion(self, allow_volume_expansion): + """Sets the allow_volume_expansion of this V1StorageClass. + + allowVolumeExpansion shows whether the storage class allow volume expand. # noqa: E501 + + :param allow_volume_expansion: The allow_volume_expansion of this V1StorageClass. # noqa: E501 + :type: bool + """ + + self._allow_volume_expansion = allow_volume_expansion + + @property + def allowed_topologies(self): + """Gets the allowed_topologies of this V1StorageClass. # noqa: E501 + + allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 + + :return: The allowed_topologies of this V1StorageClass. # noqa: E501 + :rtype: list[V1TopologySelectorTerm] + """ + return self._allowed_topologies + + @allowed_topologies.setter + def allowed_topologies(self, allowed_topologies): + """Sets the allowed_topologies of this V1StorageClass. + + allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 + + :param allowed_topologies: The allowed_topologies of this V1StorageClass. # noqa: E501 + :type: list[V1TopologySelectorTerm] + """ + + self._allowed_topologies = allowed_topologies + + @property + def api_version(self): + """Gets the api_version of this V1StorageClass. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1StorageClass. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1StorageClass. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1StorageClass. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1StorageClass. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1StorageClass. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1StorageClass. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1StorageClass. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1StorageClass. # noqa: E501 + + + :return: The metadata of this V1StorageClass. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1StorageClass. + + + :param metadata: The metadata of this V1StorageClass. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def mount_options(self): + """Gets the mount_options of this V1StorageClass. # noqa: E501 + + mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. # noqa: E501 + + :return: The mount_options of this V1StorageClass. # noqa: E501 + :rtype: list[str] + """ + return self._mount_options + + @mount_options.setter + def mount_options(self, mount_options): + """Sets the mount_options of this V1StorageClass. + + mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. # noqa: E501 + + :param mount_options: The mount_options of this V1StorageClass. # noqa: E501 + :type: list[str] + """ + + self._mount_options = mount_options + + @property + def parameters(self): + """Gets the parameters of this V1StorageClass. # noqa: E501 + + parameters holds the parameters for the provisioner that should create volumes of this storage class. # noqa: E501 + + :return: The parameters of this V1StorageClass. # noqa: E501 + :rtype: dict(str, str) + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this V1StorageClass. + + parameters holds the parameters for the provisioner that should create volumes of this storage class. # noqa: E501 + + :param parameters: The parameters of this V1StorageClass. # noqa: E501 + :type: dict(str, str) + """ + + self._parameters = parameters + + @property + def provisioner(self): + """Gets the provisioner of this V1StorageClass. # noqa: E501 + + provisioner indicates the type of the provisioner. # noqa: E501 + + :return: The provisioner of this V1StorageClass. # noqa: E501 + :rtype: str + """ + return self._provisioner + + @provisioner.setter + def provisioner(self, provisioner): + """Sets the provisioner of this V1StorageClass. + + provisioner indicates the type of the provisioner. # noqa: E501 + + :param provisioner: The provisioner of this V1StorageClass. # noqa: E501 + :type: str + """ + if self.local_vars_configuration.client_side_validation and provisioner is None: # noqa: E501 + raise ValueError("Invalid value for `provisioner`, must not be `None`") # noqa: E501 + + self._provisioner = provisioner + + @property + def reclaim_policy(self): + """Gets the reclaim_policy of this V1StorageClass. # noqa: E501 + + reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. # noqa: E501 + + :return: The reclaim_policy of this V1StorageClass. # noqa: E501 + :rtype: str + """ + return self._reclaim_policy + + @reclaim_policy.setter + def reclaim_policy(self, reclaim_policy): + """Sets the reclaim_policy of this V1StorageClass. + + reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. # noqa: E501 + + :param reclaim_policy: The reclaim_policy of this V1StorageClass. # noqa: E501 + :type: str + """ + + self._reclaim_policy = reclaim_policy + + @property + def volume_binding_mode(self): + """Gets the volume_binding_mode of this V1StorageClass. # noqa: E501 + + volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 + + :return: The volume_binding_mode of this V1StorageClass. # noqa: E501 + :rtype: str + """ + return self._volume_binding_mode + + @volume_binding_mode.setter + def volume_binding_mode(self, volume_binding_mode): + """Sets the volume_binding_mode of this V1StorageClass. + + volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 + + :param volume_binding_mode: The volume_binding_mode of this V1StorageClass. # noqa: E501 + :type: str + """ + + self._volume_binding_mode = volume_binding_mode + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageClass): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageClass): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_class_list.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_class_list.py new file mode 100644 index 0000000000000000000000000000000000000000..87ce77bb546b8d6230bd2fe67ccac95399d44a9c --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_class_list.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StorageClassList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'items': 'list[V1StorageClass]', + 'kind': 'str', + 'metadata': 'V1ListMeta' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'items': 'items', + 'kind': 'kind', + 'metadata': 'metadata' + } + + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 + """V1StorageClassList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._items = None + self._kind = None + self._metadata = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + self.items = items + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + + @property + def api_version(self): + """Gets the api_version of this V1StorageClassList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1StorageClassList. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1StorageClassList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1StorageClassList. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """Gets the items of this V1StorageClassList. # noqa: E501 + + items is the list of StorageClasses # noqa: E501 + + :return: The items of this V1StorageClassList. # noqa: E501 + :rtype: list[V1StorageClass] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this V1StorageClassList. + + items is the list of StorageClasses # noqa: E501 + + :param items: The items of this V1StorageClassList. # noqa: E501 + :type: list[V1StorageClass] + """ + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 + + self._items = items + + @property + def kind(self): + """Gets the kind of this V1StorageClassList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1StorageClassList. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1StorageClassList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1StorageClassList. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1StorageClassList. # noqa: E501 + + + :return: The metadata of this V1StorageClassList. # noqa: E501 + :rtype: V1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1StorageClassList. + + + :param metadata: The metadata of this V1StorageClassList. # noqa: E501 + :type: V1ListMeta + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageClassList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageClassList): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_os_persistent_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_os_persistent_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..b48086de94f9d2c1f774b40f6698ad6971964aa0 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_os_persistent_volume_source.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StorageOSPersistentVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'fs_type': 'str', + 'read_only': 'bool', + 'secret_ref': 'V1ObjectReference', + 'volume_name': 'str', + 'volume_namespace': 'str' + } + + attribute_map = { + 'fs_type': 'fsType', + 'read_only': 'readOnly', + 'secret_ref': 'secretRef', + 'volume_name': 'volumeName', + 'volume_namespace': 'volumeNamespace' + } + + def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=None, volume_namespace=None, local_vars_configuration=None): # noqa: E501 + """V1StorageOSPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._fs_type = None + self._read_only = None + self._secret_ref = None + self._volume_name = None + self._volume_namespace = None + self.discriminator = None + + if fs_type is not None: + self.fs_type = fs_type + if read_only is not None: + self.read_only = read_only + if secret_ref is not None: + self.secret_ref = secret_ref + if volume_name is not None: + self.volume_name = volume_name + if volume_namespace is not None: + self.volume_namespace = volume_namespace + + @property + def fs_type(self): + """Gets the fs_type of this V1StorageOSPersistentVolumeSource. # noqa: E501 + + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :return: The fs_type of this V1StorageOSPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """Sets the fs_type of this V1StorageOSPersistentVolumeSource. + + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :param fs_type: The fs_type of this V1StorageOSPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._fs_type = fs_type + + @property + def read_only(self): + """Gets the read_only of this V1StorageOSPersistentVolumeSource. # noqa: E501 + + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :return: The read_only of this V1StorageOSPersistentVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """Sets the read_only of this V1StorageOSPersistentVolumeSource. + + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :param read_only: The read_only of this V1StorageOSPersistentVolumeSource. # noqa: E501 + :type: bool + """ + + self._read_only = read_only + + @property + def secret_ref(self): + """Gets the secret_ref of this V1StorageOSPersistentVolumeSource. # noqa: E501 + + + :return: The secret_ref of this V1StorageOSPersistentVolumeSource. # noqa: E501 + :rtype: V1ObjectReference + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """Sets the secret_ref of this V1StorageOSPersistentVolumeSource. + + + :param secret_ref: The secret_ref of this V1StorageOSPersistentVolumeSource. # noqa: E501 + :type: V1ObjectReference + """ + + self._secret_ref = secret_ref + + @property + def volume_name(self): + """Gets the volume_name of this V1StorageOSPersistentVolumeSource. # noqa: E501 + + volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 + + :return: The volume_name of this V1StorageOSPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """Sets the volume_name of this V1StorageOSPersistentVolumeSource. + + volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 + + :param volume_name: The volume_name of this V1StorageOSPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._volume_name = volume_name + + @property + def volume_namespace(self): + """Gets the volume_namespace of this V1StorageOSPersistentVolumeSource. # noqa: E501 + + volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. # noqa: E501 + + :return: The volume_namespace of this V1StorageOSPersistentVolumeSource. # noqa: E501 + :rtype: str + """ + return self._volume_namespace + + @volume_namespace.setter + def volume_namespace(self, volume_namespace): + """Sets the volume_namespace of this V1StorageOSPersistentVolumeSource. + + volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. # noqa: E501 + + :param volume_namespace: The volume_namespace of this V1StorageOSPersistentVolumeSource. # noqa: E501 + :type: str + """ + + self._volume_namespace = volume_namespace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageOSPersistentVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageOSPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_os_volume_source.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_os_volume_source.py new file mode 100644 index 0000000000000000000000000000000000000000..b090aef48c1f352f9c54f0666430e33e4f032a1e --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_storage_os_volume_source.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1StorageOSVolumeSource(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'fs_type': 'str', + 'read_only': 'bool', + 'secret_ref': 'V1LocalObjectReference', + 'volume_name': 'str', + 'volume_namespace': 'str' + } + + attribute_map = { + 'fs_type': 'fsType', + 'read_only': 'readOnly', + 'secret_ref': 'secretRef', + 'volume_name': 'volumeName', + 'volume_namespace': 'volumeNamespace' + } + + def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=None, volume_namespace=None, local_vars_configuration=None): # noqa: E501 + """V1StorageOSVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._fs_type = None + self._read_only = None + self._secret_ref = None + self._volume_name = None + self._volume_namespace = None + self.discriminator = None + + if fs_type is not None: + self.fs_type = fs_type + if read_only is not None: + self.read_only = read_only + if secret_ref is not None: + self.secret_ref = secret_ref + if volume_name is not None: + self.volume_name = volume_name + if volume_namespace is not None: + self.volume_namespace = volume_namespace + + @property + def fs_type(self): + """Gets the fs_type of this V1StorageOSVolumeSource. # noqa: E501 + + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :return: The fs_type of this V1StorageOSVolumeSource. # noqa: E501 + :rtype: str + """ + return self._fs_type + + @fs_type.setter + def fs_type(self, fs_type): + """Sets the fs_type of this V1StorageOSVolumeSource. + + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :param fs_type: The fs_type of this V1StorageOSVolumeSource. # noqa: E501 + :type: str + """ + + self._fs_type = fs_type + + @property + def read_only(self): + """Gets the read_only of this V1StorageOSVolumeSource. # noqa: E501 + + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :return: The read_only of this V1StorageOSVolumeSource. # noqa: E501 + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """Sets the read_only of this V1StorageOSVolumeSource. + + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :param read_only: The read_only of this V1StorageOSVolumeSource. # noqa: E501 + :type: bool + """ + + self._read_only = read_only + + @property + def secret_ref(self): + """Gets the secret_ref of this V1StorageOSVolumeSource. # noqa: E501 + + + :return: The secret_ref of this V1StorageOSVolumeSource. # noqa: E501 + :rtype: V1LocalObjectReference + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """Sets the secret_ref of this V1StorageOSVolumeSource. + + + :param secret_ref: The secret_ref of this V1StorageOSVolumeSource. # noqa: E501 + :type: V1LocalObjectReference + """ + + self._secret_ref = secret_ref + + @property + def volume_name(self): + """Gets the volume_name of this V1StorageOSVolumeSource. # noqa: E501 + + volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 + + :return: The volume_name of this V1StorageOSVolumeSource. # noqa: E501 + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """Sets the volume_name of this V1StorageOSVolumeSource. + + volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 + + :param volume_name: The volume_name of this V1StorageOSVolumeSource. # noqa: E501 + :type: str + """ + + self._volume_name = volume_name + + @property + def volume_namespace(self): + """Gets the volume_namespace of this V1StorageOSVolumeSource. # noqa: E501 + + volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. # noqa: E501 + + :return: The volume_namespace of this V1StorageOSVolumeSource. # noqa: E501 + :rtype: str + """ + return self._volume_namespace + + @volume_namespace.setter + def volume_namespace(self, volume_namespace): + """Sets the volume_namespace of this V1StorageOSVolumeSource. + + volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. # noqa: E501 + + :param volume_namespace: The volume_namespace of this V1StorageOSVolumeSource. # noqa: E501 + :type: str + """ + + self._volume_namespace = volume_namespace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StorageOSVolumeSource): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1StorageOSVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_subject_access_review.py b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_subject_access_review.py new file mode 100644 index 0000000000000000000000000000000000000000..0f4d9745dd4b685a4d493c99c1cdddb594ce3384 --- /dev/null +++ b/python/user_packages/Python313/site-packages/kubernetes/client/models/v1_subject_access_review.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.35 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from kubernetes.client.configuration import Configuration + + +class V1SubjectAccessReview(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + 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. + """ + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'V1ObjectMeta', + 'spec': 'V1SubjectAccessReviewSpec', + 'status': 'V1SubjectAccessReviewStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 + """V1SubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this V1SubjectAccessReview. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1SubjectAccessReview. # noqa: E501 + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this V1SubjectAccessReview. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1SubjectAccessReview. # noqa: E501 + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this V1SubjectAccessReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1SubjectAccessReview. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this V1SubjectAccessReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1SubjectAccessReview. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this V1SubjectAccessReview. # noqa: E501 + + + :return: The metadata of this V1SubjectAccessReview. # noqa: E501 + :rtype: V1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this V1SubjectAccessReview. + + + :param metadata: The metadata of this V1SubjectAccessReview. # noqa: E501 + :type: V1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this V1SubjectAccessReview. # noqa: E501 + + + :return: The spec of this V1SubjectAccessReview. # noqa: E501 + :rtype: V1SubjectAccessReviewSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this V1SubjectAccessReview. + + + :param spec: The spec of this V1SubjectAccessReview. # noqa: E501 + :type: V1SubjectAccessReviewSpec + """ + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 + + self._spec = spec + + @property + def status(self): + """Gets the status of this V1SubjectAccessReview. # noqa: E501 + + + :return: The status of this V1SubjectAccessReview. # noqa: E501 + :rtype: V1SubjectAccessReviewStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1SubjectAccessReview. + + + :param status: The status of this V1SubjectAccessReview. # noqa: E501 + :type: V1SubjectAccessReviewStatus + """ + + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SubjectAccessReview): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, V1SubjectAccessReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/qt/6.8.1/msvc2022_64/include/QtUiPlugin/qtuipluginversion.h b/qt/6.8.1/msvc2022_64/include/QtUiPlugin/qtuipluginversion.h new file mode 100644 index 0000000000000000000000000000000000000000..9140fdbaeb45af1961ecf1877979cbd3740ffbcd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtUiPlugin/qtuipluginversion.h @@ -0,0 +1,9 @@ +/* This file was generated by syncqt. */ +#ifndef QT_QTUIPLUGIN_VERSION_H +#define QT_QTUIPLUGIN_VERSION_H + +#define QTUIPLUGIN_VERSION_STR "6.8.1" + +#define QTUIPLUGIN_VERSION 0x060801 + +#endif // QT_QTUIPLUGIN_VERSION_H diff --git a/qt/6.8.1/msvc2022_64/include/QtUiTools/QUiLoader b/qt/6.8.1/msvc2022_64/include/QtUiTools/QUiLoader new file mode 100644 index 0000000000000000000000000000000000000000..2d03b32b2f9ecb35be48819cdbb9dd9e5642dd80 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtUiTools/QUiLoader @@ -0,0 +1 @@ +#include "quiloader.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtUiTools/QtUiTools b/qt/6.8.1/msvc2022_64/include/QtUiTools/QtUiTools new file mode 100644 index 0000000000000000000000000000000000000000..ac79a3701ee646bc19773b175fcb74bd61ec48e7 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtUiTools/QtUiTools @@ -0,0 +1,7 @@ +#ifndef QT_QTUITOOLS_MODULE_H +#define QT_QTUITOOLS_MODULE_H +#include +#include "qtuitoolsglobal.h" +#include "qtuitoolsversion.h" +#include "quiloader.h" +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtUiTools/QtUiToolsDepends b/qt/6.8.1/msvc2022_64/include/QtUiTools/QtUiToolsDepends new file mode 100644 index 0000000000000000000000000000000000000000..a64052e0b3fb9006bd39f6558aec8f857f6c2c20 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtUiTools/QtUiToolsDepends @@ -0,0 +1,7 @@ +/* This file was generated by cmake with the info from UiTools target. */ +#ifdef __cplusplus /* create empty PCH in C mode */ +# include +# include +# include +# include +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtUiTools/QtUiToolsVersion b/qt/6.8.1/msvc2022_64/include/QtUiTools/QtUiToolsVersion new file mode 100644 index 0000000000000000000000000000000000000000..ba608646099b5ae869b87baad1aab3442ee4c903 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtUiTools/QtUiToolsVersion @@ -0,0 +1 @@ +#include "qtuitoolsversion.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtUiTools/qtuitoolsglobal.h b/qt/6.8.1/msvc2022_64/include/QtUiTools/qtuitoolsglobal.h new file mode 100644 index 0000000000000000000000000000000000000000..e2ccd71b1ff44dbf5ab197121f7f42931ea13089 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtUiTools/qtuitoolsglobal.h @@ -0,0 +1,24 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTUITOOLSGLOBAL_H +#define QTUITOOLSGLOBAL_H + +#include + +QT_BEGIN_NAMESPACE + +#ifndef QT_STATIC +# if defined(QT_BUILD_UITOOLS_LIB) +# define Q_UITOOLS_EXPORT Q_DECL_EXPORT +# else +# define Q_UITOOLS_EXPORT Q_DECL_IMPORT +# endif +#else +# define Q_UITOOLS_EXPORT +#endif + +QT_END_NAMESPACE + +#endif // QTUITOOLSGLOBAL_H + diff --git a/qt/6.8.1/msvc2022_64/include/QtUiTools/qtuitoolsversion.h b/qt/6.8.1/msvc2022_64/include/QtUiTools/qtuitoolsversion.h new file mode 100644 index 0000000000000000000000000000000000000000..08cda97597c261b224cfcdecc71b38c86a516027 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtUiTools/qtuitoolsversion.h @@ -0,0 +1,9 @@ +/* This file was generated by syncqt. */ +#ifndef QT_QTUITOOLS_VERSION_H +#define QT_QTUITOOLS_VERSION_H + +#define QTUITOOLS_VERSION_STR "6.8.1" + +#define QTUITOOLS_VERSION 0x060801 + +#endif // QT_QTUITOOLS_VERSION_H diff --git a/qt/6.8.1/msvc2022_64/include/QtUiTools/quiloader.h b/qt/6.8.1/msvc2022_64/include/QtUiTools/quiloader.h new file mode 100644 index 0000000000000000000000000000000000000000..45f5de7a1d0315a35f1c4aa77ed8b0e39680fbf1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtUiTools/quiloader.h @@ -0,0 +1,61 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QUILOADER_H +#define QUILOADER_H + +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class QWidget; +class QLayout; +class QAction; +class QActionGroup; +class QString; +class QIODevice; +class QDir; + +class QUiLoaderPrivate; +class Q_UITOOLS_EXPORT QUiLoader : public QObject +{ + Q_OBJECT +public: + explicit QUiLoader(QObject *parent = nullptr); + ~QUiLoader() override; + + QStringList pluginPaths() const; + void clearPluginPaths(); + void addPluginPath(const QString &path); + + QWidget *load(QIODevice *device, QWidget *parentWidget = nullptr); + QStringList availableWidgets() const; + QStringList availableLayouts() const; + + virtual QWidget *createWidget(const QString &className, QWidget *parent = nullptr, const QString &name = QString()); + virtual QLayout *createLayout(const QString &className, QObject *parent = nullptr, const QString &name = QString()); + virtual QActionGroup *createActionGroup(QObject *parent = nullptr, const QString &name = QString()); + virtual QAction *createAction(QObject *parent = nullptr, const QString &name = QString()); + + void setWorkingDirectory(const QDir &dir); + QDir workingDirectory() const; + + void setLanguageChangeEnabled(bool enabled); + bool isLanguageChangeEnabled() const; + + void setTranslationEnabled(bool enabled); + bool isTranslationEnabled() const; + + QString errorString() const; + +private: + QScopedPointer d_ptr; + Q_DECLARE_PRIVATE(QUiLoader) + Q_DISABLE_COPY_MOVE(QUiLoader) +}; + +QT_END_NAMESPACE + +#endif // QUILOADER_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/complexwidgets_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/complexwidgets_p.h new file mode 100644 index 0000000000000000000000000000000000000000..f21084928c7dbdc29ffd5d234b60b0787ddf32f8 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/complexwidgets_p.h @@ -0,0 +1,135 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef COMPLEXWIDGETS_H +#define COMPLEXWIDGETS_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include +#include +#if QT_CONFIG(itemviews) +#include +#endif + +QT_BEGIN_NAMESPACE + +#if QT_CONFIG(accessibility) + +class QAbstractButton; +class QHeaderView; +class QTabBar; +class QComboBox; +class QTitleBar; +class QAbstractScrollArea; +class QScrollArea; + +#if QT_CONFIG(scrollarea) +class QAccessibleAbstractScrollArea : public QAccessibleWidget +{ +public: + explicit QAccessibleAbstractScrollArea(QWidget *widget); + + enum AbstractScrollAreaElement { + Self = 0, + Viewport, + HorizontalContainer, + VerticalContainer, + CornerWidget, + Undefined + }; + + QAccessibleInterface *child(int index) const override; + int childCount() const override; + int indexOfChild(const QAccessibleInterface *child) const override; + bool isValid() const override; + QAccessibleInterface *childAt(int x, int y) const override; + QAbstractScrollArea *abstractScrollArea() const; + +private: + QWidgetList accessibleChildren() const; + AbstractScrollAreaElement elementType(QWidget *widget) const; + bool isLeftToRight() const; +}; + +class QAccessibleScrollArea : public QAccessibleAbstractScrollArea +{ +public: + explicit QAccessibleScrollArea(QWidget *widget); +}; +#endif // QT_CONFIG(scrollarea) + +#if QT_CONFIG(tabbar) +class QAccessibleTabBar : public QAccessibleWidget, public QAccessibleSelectionInterface +{ +public: + explicit QAccessibleTabBar(QWidget *w); + ~QAccessibleTabBar(); + + void *interface_cast(QAccessible::InterfaceType t) override; + + QAccessibleInterface *focusChild() const override; + int childCount() const override; + QString text(QAccessible::Text t) const override; + + QAccessibleInterface* child(int index) const override; + int indexOfChild(const QAccessibleInterface *child) const override; + + // QAccessibleSelectionInterface + int selectedItemCount() const override; + QList selectedItems() const override; + QAccessibleInterface* selectedItem(int selectionIndex) const override; + bool isSelected(QAccessibleInterface *childItem) const override; + bool select(QAccessibleInterface *childItem) override; + bool unselect(QAccessibleInterface *childItem) override; + bool selectAll() override; + bool clear() override; + +protected: + QTabBar *tabBar() const; + mutable QHash m_childInterfaces; +}; +#endif // QT_CONFIG(tabbar) + +#if QT_CONFIG(combobox) +class QAccessibleComboBox : public QAccessibleWidget +{ +public: + explicit QAccessibleComboBox(QWidget *w); + + int childCount() const override; + QAccessibleInterface *childAt(int x, int y) const override; + int indexOfChild(const QAccessibleInterface *child) const override; + QAccessibleInterface* child(int index) const override; + QAccessibleInterface* focusChild() const override; + + QString text(QAccessible::Text t) const override; + + QAccessible::State state() const override; + + // QAccessibleActionInterface + QStringList actionNames() const override; + QString localizedActionDescription(const QString &actionName) const override; + void doAction(const QString &actionName) override; + QStringList keyBindingsForAction(const QString &actionName) const override; + +protected: + QComboBox *comboBox() const; +}; +#endif // QT_CONFIG(combobox) + +#endif // QT_CONFIG(accessibility) + +QT_END_NAMESPACE + +#endif // COMPLEXWIDGETS_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/itemviews_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/itemviews_p.h new file mode 100644 index 0000000000000000000000000000000000000000..fcba25e08f4eac11ed153c710c8591244ebb16d3 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/itemviews_p.h @@ -0,0 +1,303 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef ACCESSIBLE_ITEMVIEWS_H +#define ACCESSIBLE_ITEMVIEWS_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include "QtCore/qpointer.h" +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(itemviews); + +QT_BEGIN_NAMESPACE + +#if QT_CONFIG(accessibility) + +class QAccessibleTableCell; +class QAccessibleTableHeaderCell; + +class QAccessibleTable :public QAccessibleTableInterface, public QAccessibleSelectionInterface, public QAccessibleObject +{ +public: + explicit QAccessibleTable(QWidget *w); + bool isValid() const override; + + QAccessible::Role role() const override; + QAccessible::State state() const override; + QString text(QAccessible::Text t) const override; + QRect rect() const override; + + QAccessibleInterface *childAt(int x, int y) const override; + QAccessibleInterface *focusChild() const override; + int childCount() const override; + int indexOfChild(const QAccessibleInterface *) const override; + + QAccessibleInterface *parent() const override; + QAccessibleInterface *child(int index) const override; + + void *interface_cast(QAccessible::InterfaceType t) override; + + // table interface + virtual QAccessibleInterface *cellAt(int row, int column) const override; + virtual QAccessibleInterface *caption() const override; + virtual QAccessibleInterface *summary() const override; + virtual QString columnDescription(int column) const override; + virtual QString rowDescription(int row) const override; + virtual int columnCount() const override; + virtual int rowCount() const override; + + // selection + virtual int selectedCellCount() const override; + virtual int selectedColumnCount() const override; + virtual int selectedRowCount() const override; + virtual QList selectedCells() const override; + virtual QList selectedColumns() const override; + virtual QList selectedRows() const override; + virtual bool isColumnSelected(int column) const override; + virtual bool isRowSelected(int row) const override; + virtual bool selectRow(int row) override; + virtual bool selectColumn(int column) override; + virtual bool unselectRow(int row) override; + virtual bool unselectColumn(int column) override; + + // QAccessibleSelectionInterface + virtual int selectedItemCount() const override; + virtual QList selectedItems() const override; + virtual bool isSelected(QAccessibleInterface *childCell) const override; + virtual bool select(QAccessibleInterface *childCell) override; + virtual bool unselect(QAccessibleInterface *childCell) override; + virtual bool selectAll() override; + virtual bool clear() override; + + QAbstractItemView *view() const; + + void modelChange(QAccessibleTableModelChangeEvent *event) override; + +protected: + inline QAccessible::Role cellRole() const { + switch (m_role) { + case QAccessible::List: + return QAccessible::ListItem; + case QAccessible::Table: + return QAccessible::Cell; + case QAccessible::Tree: + return QAccessible::TreeItem; + default: + Q_ASSERT(0); + } + return QAccessible::NoRole; + } + + QHeaderView *horizontalHeader() const; + QHeaderView *verticalHeader() const; + + // maybe vector + typedef QHash ChildCache; + mutable ChildCache childToId; + + virtual ~QAccessibleTable(); + +private: + // the child index for a model index + inline int logicalIndex(const QModelIndex &index) const; + QAccessible::Role m_role; +}; + +#if QT_CONFIG(treeview) +class QAccessibleTree :public QAccessibleTable +{ +public: + explicit QAccessibleTree(QWidget *w) + : QAccessibleTable(w) + {} + + + QAccessibleInterface *childAt(int x, int y) const override; + QAccessibleInterface *focusChild() const override; + int childCount() const override; + QAccessibleInterface *child(int index) const override; + + int indexOfChild(const QAccessibleInterface *) const override; + + int rowCount() const override; + + // table interface + QAccessibleInterface *cellAt(int row, int column) const override; + QString rowDescription(int row) const override; + bool isRowSelected(int row) const override; + bool selectRow(int row) override; + +private: + QModelIndex indexFromLogical(int row, int column = 0) const; +}; +#endif + +#if QT_CONFIG(listview) +class QAccessibleList :public QAccessibleTable +{ +public: + explicit QAccessibleList(QWidget *w) + : QAccessibleTable(w) + {} + + QAccessibleInterface *child(int index) const override; + + // table interface + QAccessibleInterface *cellAt(int row, int column) const override; + + // selection + int selectedCellCount() const override; + QList selectedCells() const override; +}; +#endif + +class QAccessibleTableCell: public QAccessibleInterface, public QAccessibleTableCellInterface, public QAccessibleActionInterface +{ +public: + QAccessibleTableCell(QAbstractItemView *view, const QModelIndex &m_index, QAccessible::Role role); + + void *interface_cast(QAccessible::InterfaceType t) override; + QObject *object() const override { return nullptr; } + QAccessible::Role role() const override; + QAccessible::State state() const override; + QRect rect() const override; + bool isValid() const override; + + QAccessibleInterface *childAt(int, int) const override { return nullptr; } + int childCount() const override { return 0; } + int indexOfChild(const QAccessibleInterface *) const override { return -1; } + + QString text(QAccessible::Text t) const override; + void setText(QAccessible::Text t, const QString &text) override; + + QAccessibleInterface *parent() const override; + QAccessibleInterface *child(int) const override; + + // cell interface + virtual int columnExtent() const override; + virtual QList columnHeaderCells() const override; + virtual int columnIndex() const override; + virtual int rowExtent() const override; + virtual QList rowHeaderCells() const override; + virtual int rowIndex() const override; + virtual bool isSelected() const override; + virtual QAccessibleInterface* table() const override; + + //action interface + virtual QStringList actionNames() const override; + virtual void doAction(const QString &actionName) override; + virtual QStringList keyBindingsForAction(const QString &actionName) const override; + +private: + QHeaderView *verticalHeader() const; + QHeaderView *horizontalHeader() const; + QPointer view; + QPersistentModelIndex m_index; + QAccessible::Role m_role; + + void selectCell(); + void unselectCell(); + +friend class QAccessibleTable; +#if QT_CONFIG(treeview) +friend class QAccessibleTree; +#endif +#if QT_CONFIG(listview) +friend class QAccessibleList; +#endif +}; + + +class QAccessibleTableHeaderCell: public QAccessibleInterface +{ +public: + // For header cells, pass the header view in addition + QAccessibleTableHeaderCell(QAbstractItemView *view, int index, Qt::Orientation orientation); + + QObject *object() const override { return nullptr; } + QAccessible::Role role() const override; + QAccessible::State state() const override; + QRect rect() const override; + bool isValid() const override; + + QAccessibleInterface *childAt(int, int) const override { return nullptr; } + int childCount() const override { return 0; } + int indexOfChild(const QAccessibleInterface *) const override { return -1; } + + QString text(QAccessible::Text t) const override; + void setText(QAccessible::Text t, const QString &text) override; + + QAccessibleInterface *parent() const override; + QAccessibleInterface *child(int index) const override; + +private: + QHeaderView *headerView() const; + + QPointer view; + int index; + Qt::Orientation orientation; + +friend class QAccessibleTable; +#if QT_CONFIG(treeview) +friend class QAccessibleTree; +#endif +#if QT_CONFIG(listview) +friend class QAccessibleList; +#endif +}; + +// This is the corner button on the top left of a table. +// It can be used to select all cells or it is not active at all. +// For now it is ignored. +class QAccessibleTableCornerButton: public QAccessibleInterface +{ +public: + QAccessibleTableCornerButton(QAbstractItemView *view_) + :view(view_) + {} + + QObject *object() const override { return nullptr; } + QAccessible::Role role() const override { return QAccessible::Pane; } + QAccessible::State state() const override { return QAccessible::State(); } + QRect rect() const override { return QRect(); } + bool isValid() const override { return true; } + + QAccessibleInterface *childAt(int, int) const override { return nullptr; } + int childCount() const override { return 0; } + int indexOfChild(const QAccessibleInterface *) const override { return -1; } + + QString text(QAccessible::Text) const override { return QString(); } + void setText(QAccessible::Text, const QString &) override {} + + QAccessibleInterface *parent() const override { + return QAccessible::queryAccessibleInterface(view); + } + QAccessibleInterface *child(int) const override { + return nullptr; + } + +private: + QPointer view; +}; + + +#endif // QT_CONFIG(accessibility) + +QT_END_NAMESPACE + +#endif // ACCESSIBLE_ITEMVIEWS_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractbutton_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractbutton_p.h new file mode 100644 index 0000000000000000000000000000000000000000..8a3e15ff66b48ae3c39184e46f47d9bc9aec4938 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractbutton_p.h @@ -0,0 +1,76 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTBUTTON_P_H +#define QABSTRACTBUTTON_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include "qabstractbutton.h" + +#include "QtCore/qbasictimer.h" +#include "private/qwidget_p.h" + +QT_BEGIN_NAMESPACE + +class QAbstractButtonPrivate : public QWidgetPrivate +{ + Q_DECLARE_PUBLIC(QAbstractButton) +public: + QAbstractButtonPrivate(QSizePolicy::ControlType type = QSizePolicy::DefaultType); + + QString text; + QIcon icon; + QSize iconSize; +#ifndef QT_NO_SHORTCUT + QKeySequence shortcut; + int shortcutId; +#endif + uint checkable :1; + uint checked :1; + uint autoRepeat :1; + uint autoExclusive :1; + uint down :1; + uint blockRefresh :1; + uint pressed : 1; + +#if QT_CONFIG(buttongroup) + QButtonGroup* group; +#endif + QBasicTimer repeatTimer; + QBasicTimer animateTimer; + + int autoRepeatDelay, autoRepeatInterval; + + QSizePolicy::ControlType controlType; + mutable QSize sizeHint; + + void init(); + void click(); + void refresh(); + + QListqueryButtonList() const; + QAbstractButton *queryCheckedButton() const; + void notifyChecked(); + void moveFocus(int key); + void fixFocusPolicy(); + + void emitPressed(); + void emitReleased(); + void emitClicked(); + void emitToggled(bool checked); +}; + +QT_END_NAMESPACE + +#endif // QABSTRACTBUTTON_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractitemdelegate_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractitemdelegate_p.h new file mode 100644 index 0000000000000000000000000000000000000000..c4e3904122590337e5e5e6129e155bab9512df06 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractitemdelegate_p.h @@ -0,0 +1,43 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTITEMDELEGATE_P_H +#define QABSTRACTITEMDELEGATE_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists for the convenience +// of other Qt classes. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include "qabstractitemdelegate.h" +#include + +#include +#include + +QT_REQUIRE_CONFIG(itemviews); + +QT_BEGIN_NAMESPACE + +class Q_AUTOTEST_EXPORT QAbstractItemDelegatePrivate : public QObjectPrivate +{ + Q_DECLARE_PUBLIC(QAbstractItemDelegate) +public: + explicit QAbstractItemDelegatePrivate(); + + bool editorEventFilter(QObject *object, QEvent *event); + bool tryFixup(QWidget *editor); + QString textForRole(Qt::ItemDataRole role, const QVariant &value, const QLocale &locale, int precision = 6) const; + void _q_commitDataAndCloseEditor(QWidget *editor); +}; + +QT_END_NAMESPACE + +#endif // QABSTRACTITEMDELEGATE_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractitemview_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractitemview_p.h new file mode 100644 index 0000000000000000000000000000000000000000..20d614a6eddf5ce6325ac5f08752c7291508814f --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractitemview_p.h @@ -0,0 +1,475 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTITEMVIEW_P_H +#define QABSTRACTITEMVIEW_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include "qabstractitemview.h" +#include "private/qabstractscrollarea_p.h" +#include "private/qabstractitemmodel_p.h" +#include "QtWidgets/qapplication.h" +#include "QtGui/qevent.h" +#include "QtCore/qmimedata.h" +#include "QtGui/qpainter.h" +#include "QtGui/qregion.h" + +#include "QtCore/qdebug.h" +#include "QtCore/qbasictimer.h" +#include "QtCore/qelapsedtimer.h" +#include + + +#include + +QT_REQUIRE_CONFIG(itemviews); + +QT_BEGIN_NAMESPACE + +struct QEditorInfo { + QEditorInfo(QWidget *e, bool s): widget(QPointer(e)), isStatic(s) {} + QEditorInfo(): isStatic(false) {} + + QPointer widget; + bool isStatic; +}; + +// Fast associativity between Persistent editors and indices. +typedef QHash QEditorIndexHash; +typedef QHash QIndexEditorHash; + +struct QItemViewPaintPair { + QRect rect; + QModelIndex index; +}; +template <> +class QTypeInfo : public QTypeInfoMerger {}; + +typedef QList QItemViewPaintPairs; + +class Q_AUTOTEST_EXPORT QAbstractItemViewPrivate : public QAbstractScrollAreaPrivate +{ + Q_DECLARE_PUBLIC(QAbstractItemView) + +public: + QAbstractItemViewPrivate(); + virtual ~QAbstractItemViewPrivate(); + + void init(); + + virtual void rowsRemoved(const QModelIndex &parent, int start, int end); + virtual void rowsInserted(const QModelIndex &parent, int start, int end); + virtual void columnsAboutToBeRemoved(const QModelIndex &parent, int start, int end); + virtual void columnsRemoved(const QModelIndex &parent, int start, int end); + virtual void columnsInserted(const QModelIndex &parent, int start, int end); + virtual void modelDestroyed(); + virtual void layoutChanged(); + virtual void rowsMoved(const QModelIndex &source, int sourceStart, int sourceEnd, const QModelIndex &destination, int destinationStart); + virtual void columnsMoved(const QModelIndex &source, int sourceStart, int sourceEnd, const QModelIndex &destination, int destinationStart); + virtual QRect intersectedRect(const QRect rect, const QModelIndex &topLeft, const QModelIndex &bottomRight) const; + + void headerDataChanged() { doDelayedItemsLayout(); } + void scrollerStateChanged(); + void delegateSizeHintChanged(const QModelIndex &index); + + void fetchMore(); + + bool shouldEdit(QAbstractItemView::EditTrigger trigger, const QModelIndex &index) const; + bool shouldForwardEvent(QAbstractItemView::EditTrigger trigger, const QEvent *event) const; + bool shouldAutoScroll(const QPoint &pos) const; + void doDelayedItemsLayout(int delay = 0); + void interruptDelayedItemsLayout() const; + + void updateGeometry(); + + void startAutoScroll() + { // ### it would be nice to make this into a style hint one day + int scrollInterval = (verticalScrollMode == QAbstractItemView::ScrollPerItem) ? 150 : 50; + autoScrollTimer.start(scrollInterval, q_func()); + autoScrollCount = 0; + } + void stopAutoScroll() { autoScrollTimer.stop(); autoScrollCount = 0;} + +#if QT_CONFIG(draganddrop) + virtual bool dropOn(QDropEvent *event, int *row, int *col, QModelIndex *index); +#endif + bool droppingOnItself(QDropEvent *event, const QModelIndex &index); + + QWidget *editor(const QModelIndex &index, const QStyleOptionViewItem &options); + bool sendDelegateEvent(const QModelIndex &index, QEvent *event) const; + bool openEditor(const QModelIndex &index, QEvent *event); + void updateEditorData(const QModelIndex &topLeft, const QModelIndex &bottomRight); + void selectAllInEditor(QWidget *w); + + QItemSelectionModel::SelectionFlags multiSelectionCommand(const QModelIndex &index, + const QEvent *event) const; + QItemSelectionModel::SelectionFlags extendedSelectionCommand(const QModelIndex &index, + const QEvent *event) const; + QItemSelectionModel::SelectionFlags contiguousSelectionCommand(const QModelIndex &index, + const QEvent *event) const; + virtual void selectAll(QItemSelectionModel::SelectionFlags command); + + void setHoverIndex(const QPersistentModelIndex &index); + + void checkMouseMove(const QPersistentModelIndex &index); + inline void checkMouseMove(const QPoint &pos) { checkMouseMove(q_func()->indexAt(pos)); } + + inline QItemSelectionModel::SelectionFlags selectionBehaviorFlags() const + { + switch (selectionBehavior) { + case QAbstractItemView::SelectRows: return QItemSelectionModel::Rows; + case QAbstractItemView::SelectColumns: return QItemSelectionModel::Columns; + case QAbstractItemView::SelectItems: default: return QItemSelectionModel::NoUpdate; + } + } + +#if QT_CONFIG(draganddrop) + virtual QAbstractItemView::DropIndicatorPosition position(const QPoint &pos, const QRect &rect, const QModelIndex &idx) const; + + inline bool canDrop(QDropEvent *event) { + const QMimeData *mime = event->mimeData(); + + // Drag enter event shall always be accepted, if mime type and action match. + // Whether the data can actually be dropped will be checked in drag move. + if (event->type() == QEvent::DragEnter && (event->dropAction() & model->supportedDropActions())) { + const QStringList modelTypes = model->mimeTypes(); + for (const auto &modelType : modelTypes) { + if (mime->hasFormat(modelType)) + return true; + } + } + + QModelIndex index; + int col = -1; + int row = -1; + if (dropOn(event, &row, &col, &index)) { + return model->canDropMimeData(mime, + dragDropMode == QAbstractItemView::InternalMove ? Qt::MoveAction : event->dropAction(), + row, col, index); + } + return false; + } + + inline void paintDropIndicator(QPainter *painter) + { + if (showDropIndicator && state == QAbstractItemView::DraggingState + && !dropIndicatorRect.isNull() +#ifndef QT_NO_CURSOR + && viewport->cursor().shape() != Qt::ForbiddenCursor +#endif + ) { + QStyleOption opt; + opt.initFrom(q_func()); + opt.rect = dropIndicatorRect; + q_func()->style()->drawPrimitive(QStyle::PE_IndicatorItemViewItemDrop, &opt, painter, q_func()); + } + } + +#endif + virtual QItemViewPaintPairs draggablePaintPairs(const QModelIndexList &indexes, QRect *r) const; + // reimplemented in subclasses + virtual void adjustViewOptionsForIndex(QStyleOptionViewItem*, const QModelIndex&) const {} + + inline void releaseEditor(QWidget *editor, const QModelIndex &index = QModelIndex()) const { + if (editor) { + Q_Q(const QAbstractItemView); + QObject::disconnect(editor, &QWidget::destroyed, + q, &QAbstractItemView::editorDestroyed); + editor->removeEventFilter(itemDelegate); + editor->hide(); + QAbstractItemDelegate *delegate = q->itemDelegateForIndex(index); + + if (delegate) + delegate->destroyEditor(editor, index); + else + editor->deleteLater(); + } + } + + inline void executePostedLayout() const { + if (delayedPendingLayout && state != QAbstractItemView::CollapsingState) { + interruptDelayedItemsLayout(); + const_cast(q_func())->doItemsLayout(); + } + } + + inline void setDirtyRegion(const QRegion &visualRegion) { + updateRegion += visualRegion; + if (!updateTimer.isActive()) + updateTimer.start(0, q_func()); + } + + inline void scrollDirtyRegion(int dx, int dy) { + scrollDelayOffset = QPoint(-dx, -dy); + updateDirtyRegion(); + scrollDelayOffset = QPoint(0, 0); + } + + inline void scrollContentsBy(int dx, int dy) { + scrollDirtyRegion(dx, dy); + viewport->scroll(dx, dy); + } + + void updateDirtyRegion() { + updateTimer.stop(); + viewport->update(updateRegion); + updateRegion = QRegion(); + } + + void clearOrRemove(); + void checkPersistentEditorFocus(); + + QPixmap renderToPixmap(const QModelIndexList &indexes, QRect *r) const; + + inline QPoint offset() const { + const Q_Q(QAbstractItemView); + return QPoint(q->isRightToLeft() ? -q->horizontalOffset() + : q->horizontalOffset(), q->verticalOffset()); + } + + const QEditorInfo &editorForIndex(const QModelIndex &index) const; + bool hasEditor(const QModelIndex &index) const; + + QModelIndex indexForEditor(QWidget *editor) const; + void addEditor(const QModelIndex &index, QWidget *editor, bool isStatic); + void removeEditor(QWidget *editor); + + inline bool isAnimating() const { + return state == QAbstractItemView::AnimatingState; + } + + inline bool isIndexValid(const QModelIndex &index) const { + return (index.row() >= 0) && (index.column() >= 0) && (index.model() == model); + } + inline bool isIndexSelectable(const QModelIndex &index) const { + return (model->flags(index) & Qt::ItemIsSelectable); + } + inline bool isIndexEnabled(const QModelIndex &index) const { + return (model->flags(index) & Qt::ItemIsEnabled); + } +#if QT_CONFIG(draganddrop) + inline bool isIndexDropEnabled(const QModelIndex &index) const { + return (model->flags(index) & Qt::ItemIsDropEnabled); + } + inline bool isIndexDragEnabled(const QModelIndex &index) const { + return (model->flags(index) & Qt::ItemIsDragEnabled); + } +#endif + + virtual bool selectionAllowed(const QModelIndex &index) const { + // in some views we want to go ahead with selections, even if the index is invalid + return isIndexValid(index) && isIndexSelectable(index); + } + + // reimplemented from QAbstractScrollAreaPrivate + QPoint contentsOffset() const override { + Q_Q(const QAbstractItemView); + return QPoint(q->horizontalOffset(), q->verticalOffset()); + } + + /** + * For now, assume that we have few editors, if we need a more efficient implementation + * we should add a QMap member. + */ + int delegateRefCount(const QAbstractItemDelegate *delegate) const + { + int ref = 0; + if (itemDelegate == delegate) + ++ref; + + for (int maps = 0; maps < 2; ++maps) { + const QMap > *delegates = maps ? &columnDelegates : &rowDelegates; + for (QMap >::const_iterator it = delegates->begin(); + it != delegates->end(); ++it) { + if (it.value() == delegate) { + ++ref; + // optimization, we are only interested in the ref count values 0, 1 or >=2 + if (ref >= 2) { + return ref; + } + } + } + } + return ref; + } + + /** + * return true if the index is registered as a QPersistentModelIndex + */ + inline bool isPersistent(const QModelIndex &index) const + { + return static_cast(model->d_ptr.data())->persistent.indexes.contains(index); + } + +#if QT_CONFIG(draganddrop) + QModelIndexList selectedDraggableIndexes() const; + void maybeStartDrag(QPoint eventPoint); +#endif + + void doDelayedReset() + { + //we delay the reset of the timer because some views (QTableView) + //with headers can't handle the fact that the model has been destroyed + //all modelDestroyed() slots must have been called + if (!delayedReset.isActive()) + delayedReset.start(0, q_func()); + } + + QAbstractItemModel *model; + QPointer itemDelegate; + QMap > rowDelegates; + QMap > columnDelegates; + QPointer selectionModel; + QItemSelectionModel::SelectionFlag ctrlDragSelectionFlag; + bool noSelectionOnMousePress; + + QAbstractItemView::SelectionMode selectionMode; + QAbstractItemView::SelectionBehavior selectionBehavior; + + QEditorIndexHash editorIndexHash; + QIndexEditorHash indexEditorHash; + QSet persistent; + QWidget *currentlyCommittingEditor; + QBasicTimer pressClosedEditorWatcher; + QPersistentModelIndex lastEditedIndex; + bool pressClosedEditor; + bool waitForIMCommit; + + QPersistentModelIndex enteredIndex; + QPersistentModelIndex pressedIndex; + QPersistentModelIndex currentSelectionStartIndex; + Qt::KeyboardModifiers pressedModifiers; + QPoint pressedPosition; + QPoint draggedPosition; + bool pressedAlreadySelected; + bool releaseFromDoubleClick; + + //forces the next mouseMoveEvent to send the viewportEntered signal + //if the mouse is over the viewport and not over an item + bool viewportEnteredNeeded; + + QAbstractItemView::State state; + QAbstractItemView::State stateBeforeAnimation; + QAbstractItemView::EditTriggers editTriggers; + QAbstractItemView::EditTrigger lastTrigger; + + QPersistentModelIndex root; + QPersistentModelIndex hover; + + bool tabKeyNavigation; + +#if QT_CONFIG(draganddrop) + bool showDropIndicator; + QRect dropIndicatorRect; + bool dragEnabled; + QAbstractItemView::DragDropMode dragDropMode; + bool overwrite; + bool dropEventMoved; + QAbstractItemView::DropIndicatorPosition dropIndicatorPosition; + Qt::DropAction defaultDropAction; +#endif + + QString keyboardInput; + QElapsedTimer keyboardInputTime; + + bool autoScroll; + QBasicTimer autoScrollTimer; + int autoScrollMargin; + int autoScrollCount; + bool shouldScrollToCurrentOnShow; //used to know if we should scroll to current on show event + bool shouldClearStatusTip; //if there is a statustip currently shown that need to be cleared when leaving. + + bool alternatingColors; + + QSize iconSize; + Qt::TextElideMode textElideMode; + + QRegion updateRegion; // used for the internal update system + QPoint scrollDelayOffset; + + QBasicTimer updateTimer; + QBasicTimer delayedEditing; + QBasicTimer delayedAutoScroll; //used when an item is clicked + QBasicTimer delayedReset; + + QAbstractItemView::ScrollMode verticalScrollMode; + QAbstractItemView::ScrollMode horizontalScrollMode; + +#ifndef QT_NO_GESTURES + // the selection before the last mouse down. In case we have to restore it for scrolling + QItemSelection oldSelection; + QModelIndex oldCurrent; +#endif + + bool currentIndexSet; + + bool wrapItemText; + mutable bool delayedPendingLayout; + bool moveCursorUpdatedView; + + // Whether scroll mode has been explicitly set or its value come from SH_ItemView_ScrollMode + bool verticalScrollModeSet; + bool horizontalScrollModeSet; + + virtual QRect visualRect(const QModelIndex &index) const { return q_func()->visualRect(index); } + + std::array modelConnections; + std::array scrollbarConnections; +#if QT_CONFIG(gestures) && QT_CONFIG(scroller) + QMetaObject::Connection scollerConnection; +#endif + +private: + void connectDelegate(QAbstractItemDelegate *delegate); + void disconnectDelegate(QAbstractItemDelegate *delegate); + void disconnectAll(); + inline QAbstractItemDelegate *delegateForIndex(const QModelIndex &index) const { + QMap >::ConstIterator it; + + it = rowDelegates.find(index.row()); + if (it != rowDelegates.end()) + return it.value(); + + it = columnDelegates.find(index.column()); + if (it != columnDelegates.end()) + return it.value(); + + return itemDelegate; + } + + mutable QBasicTimer delayedLayout; + mutable QBasicTimer fetchMoreTimer; +}; + +QT_BEGIN_INCLUDE_NAMESPACE +#include +QT_END_INCLUDE_NAMESPACE + +template +inline int qBinarySearch(const QList &vec, const T &item, int start, int end) +{ + int i = (start + end + 1) >> 1; + while (end - start > 0) { + if (vec.at(i) > item) + end = i - 1; + else + start = i; + i = (start + end + 1) >> 1; + } + return i; +} + +QT_END_NAMESPACE + +#endif // QABSTRACTITEMVIEW_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractscrollarea_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractscrollarea_p.h new file mode 100644 index 0000000000000000000000000000000000000000..395e2c2a08d48b57bc6c0db5c3b7197e3b50fa9c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractscrollarea_p.h @@ -0,0 +1,113 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTSCROLLAREA_P_H +#define QABSTRACTSCROLLAREA_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include "private/qframe_p.h" +#include "qabstractscrollarea.h" +#include + +QT_BEGIN_NAMESPACE + +#if QT_CONFIG(scrollarea) + +class QScrollBar; +class QAbstractScrollAreaScrollBarContainer; + +class Q_AUTOTEST_EXPORT QAbstractScrollAreaPrivate: public QFramePrivate +{ + Q_DECLARE_PUBLIC(QAbstractScrollArea) + +public: + QAbstractScrollAreaPrivate(); + ~QAbstractScrollAreaPrivate(); + + void replaceScrollBar(QScrollBar *scrollBar, Qt::Orientation orientation); + + QHVContainer scrollBarContainers; + QScrollBar *hbar, *vbar; + Qt::ScrollBarPolicy vbarpolicy, hbarpolicy; + + bool shownOnce; + bool inResize; + mutable QSize sizeHint; + QAbstractScrollArea::SizeAdjustPolicy sizeAdjustPolicy; + + QWidget *viewport; + QWidget *cornerWidget; + QRect cornerPaintingRect; + + int left, top, right, bottom; // viewport margin + + int xoffset, yoffset; + QPoint overshoot; + + void init(); + void layoutChildren(); + void layoutChildren_helper(bool *needHorizontalScrollbar, bool *needVerticalScrollbar); + virtual void scrollBarPolicyChanged(Qt::Orientation, Qt::ScrollBarPolicy) {} + virtual bool canStartScrollingAt( const QPoint &startPos ) const; + + void flashScrollBars(); + void setScrollBarTransient(QScrollBar *scrollBar, bool transient); + + void _q_hslide(int); + void _q_vslide(int); + void _q_showOrHideScrollBars(); + + virtual QPoint contentsOffset() const; + + inline bool viewportEvent(QEvent *event) + { return q_func()->viewportEvent(event); } + QScopedPointer viewportFilter; +}; + +class QAbstractScrollAreaFilter : public QObject +{ + Q_OBJECT +public: + QAbstractScrollAreaFilter(QAbstractScrollAreaPrivate *p) : d(p) + { setObjectName(QLatin1StringView("qt_abstractscrollarea_filter")); } + bool eventFilter(QObject *o, QEvent *e) override + { return (o == d->viewport ? d->viewportEvent(e) : false); } +private: + QAbstractScrollAreaPrivate *d; +}; + +class QBoxLayout; +class QAbstractScrollAreaScrollBarContainer : public QWidget +{ +public: + enum LogicalPosition { LogicalLeft = 1, LogicalRight = 2 }; + + QAbstractScrollAreaScrollBarContainer(Qt::Orientation orientation, QWidget *parent); + void addWidget(QWidget *widget, LogicalPosition position); + QWidgetList widgets(LogicalPosition position); + void removeWidget(QWidget *widget); + + QScrollBar *scrollBar; + QBoxLayout *layout; +private: + int scrollBarLayoutIndex() const; + + Qt::Orientation orientation; +}; + +#endif // QT_CONFIG(scrollarea) + +QT_END_NAMESPACE + +#endif // QABSTRACTSCROLLAREA_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractslider_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractslider_p.h new file mode 100644 index 0000000000000000000000000000000000000000..f4a8f2062ba5a9a21dfb3fc384152a2a535f50e3 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractslider_p.h @@ -0,0 +1,115 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTSLIDER_P_H +#define QABSTRACTSLIDER_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include "QtCore/qbasictimer.h" +#include "QtCore/qelapsedtimer.h" +#include "private/qwidget_p.h" +#include "qstyle.h" + +QT_REQUIRE_CONFIG(abstractslider); + +QT_BEGIN_NAMESPACE + +class QAbstractSliderPrivate : public QWidgetPrivate +{ + Q_DECLARE_PUBLIC(QAbstractSlider) +public: + QAbstractSliderPrivate(); + ~QAbstractSliderPrivate(); + + void setSteps(int single, int page); + + int minimum, maximum, pageStep, value, position, pressValue; + + /** + * Call effectiveSingleStep() when changing the slider value. + */ + int singleStep; + int singleStepFromItemView; // If we have itemViews we track the views preferred singleStep value. + bool viewMayChangeSingleStep; + + float offset_accumulated; + uint tracking : 1; + uint blocktracking :1; + uint pressed : 1; + uint invertedAppearance : 1; + uint invertedControls : 1; + Qt::Orientation orientation; + + QBasicTimer repeatActionTimer; + int repeatActionTime; + QAbstractSlider::SliderAction repeatAction; + +#ifdef QT_KEYPAD_NAVIGATION + int origValue; + + /** + */ + bool isAutoRepeating; + + /** + * When we're auto repeating, we multiply singleStep with this value to + * get our effective step. + */ + qreal repeatMultiplier; + + /** + * The time of when the first auto repeating key press event occurs. + */ + QElapsedTimer firstRepeat; + +#endif + + inline int effectiveSingleStep() const + { + return singleStep +#ifdef QT_KEYPAD_NAVIGATION + * repeatMultiplier +#endif + ; + } + void itemviewChangeSingleStep(int step); + + virtual int bound(int val) const { return qMax(minimum, qMin(maximum, val)); } + inline int overflowSafeAdd(int add) const + { + int newValue = value + add; + if (add > 0 && newValue < value) + newValue = maximum; + else if (add < 0 && newValue > value) + newValue = minimum; + return newValue; + } + inline void setAdjustedSliderPosition(int position) + { + Q_Q(QAbstractSlider); + if (q->style()->styleHint(QStyle::SH_Slider_StopMouseOverSlider, nullptr, q)) { + if ((position > pressValue - 2 * pageStep) && (position < pressValue + 2 * pageStep)) { + repeatAction = QAbstractSlider::SliderNoAction; + q->setSliderPosition(pressValue); + return; + } + } + q->triggerAction(repeatAction); + } + bool scrollByDelta(Qt::Orientation orientation, Qt::KeyboardModifiers modifiers, int delta); +}; + +QT_END_NAMESPACE + +#endif // QABSTRACTSLIDER_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractspinbox_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractspinbox_p.h new file mode 100644 index 0000000000000000000000000000000000000000..2df710e22548554e9900edd972571f78f97a1992 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qabstractspinbox_p.h @@ -0,0 +1,142 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTSPINBOX_P_H +#define QABSTRACTSPINBOX_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include "QtWidgets/qabstractspinbox.h" + +#include "QtWidgets/qlineedit.h" +#include "QtWidgets/qstyleoption.h" +#include "QtGui/qvalidator.h" +#include "QtCore/qdatetime.h" +#include "QtCore/qvariant.h" +#include "private/qwidget_p.h" + +QT_REQUIRE_CONFIG(spinbox); + +QT_BEGIN_NAMESPACE + +QVariant operator+(const QVariant &arg1, const QVariant &arg2); +QVariant operator-(const QVariant &arg1, const QVariant &arg2); +QVariant operator*(const QVariant &arg1, double multiplier); +double operator/(const QVariant &arg1, const QVariant &arg2); + +enum EmitPolicy { + EmitIfChanged, + AlwaysEmit, + NeverEmit +}; + +enum Button { + None = 0x000, + Keyboard = 0x001, + Mouse = 0x002, + Wheel = 0x004, + ButtonMask = 0x008, + Up = 0x010, + Down = 0x020, + DirectionMask = 0x040 +}; +class QSpinBoxValidator; +class QAbstractSpinBoxPrivate : public QWidgetPrivate +{ + Q_DECLARE_PUBLIC(QAbstractSpinBox) +public: + QAbstractSpinBoxPrivate(); + ~QAbstractSpinBoxPrivate(); + + void init(); + void reset(); + void updateState(bool up, bool fromKeyboard = false); + QString stripped(const QString &text, int *pos = nullptr) const; + bool specialValue() const; + virtual QVariant getZeroVariant() const; + virtual void setRange(const QVariant &min, const QVariant &max); + void setValue(const QVariant &val, EmitPolicy ep, bool updateEdit = true); + virtual QVariant bound(const QVariant &val, const QVariant &old = QVariant(), int steps = 0) const; + virtual void updateEdit(); + + virtual void emitSignals(EmitPolicy ep, const QVariant &old); + virtual void interpret(EmitPolicy ep); + virtual QString textFromValue(const QVariant &n) const; + virtual QVariant valueFromText(const QString &input) const; + + void editorTextChanged(const QString &); + virtual void editorCursorPositionChanged(int oldpos, int newpos); + + virtual QStyle::SubControl newHoverControl(const QPoint &pos); + bool updateHoverControl(const QPoint &pos); + + virtual void clearCache() const; + virtual void updateEditFieldGeometry(); + + static int variantCompare(const QVariant &arg1, const QVariant &arg2); + static QVariant variantBound(const QVariant &min, const QVariant &value, const QVariant &max); + + virtual QVariant calculateAdaptiveDecimalStep(int steps) const; + + QString prefix, suffix, specialValueText; + QVariant value, minimum, maximum, singleStep; + QRect hoverRect; + + mutable QString cachedText = { u'\x01' }; + mutable QVariant cachedValue; + mutable QSize cachedSizeHint, cachedMinimumSizeHint; + QLineEdit *edit = nullptr; + QSpinBoxValidator *validator = nullptr; + QMetaType::Type type = QMetaType::UnknownType; + int spinClickTimerId = -1; + int spinClickTimerInterval = 100; + int spinClickThresholdTimerId = -1; + int spinClickThresholdTimerInterval = -1; + qreal effectiveSpinRepeatRate = 1; + int acceleration = 0; + int wheelDeltaRemainder = 0; + + Qt::KeyboardModifiers keyboardModifiers = Qt::NoModifier; + Qt::KeyboardModifier stepModifier = Qt::ControlModifier; + QAbstractSpinBox::CorrectionMode correctionMode = QAbstractSpinBox::CorrectToPreviousValue; + QAbstractSpinBox::StepType stepType = QAbstractSpinBox::StepType::DefaultStepType; + QAbstractSpinBox::ButtonSymbols buttonSymbols = QAbstractSpinBox::UpDownArrows; + QStyle::SubControl hoverControl = QStyle::SC_None; + mutable QValidator::State cachedState = QValidator::Invalid; + uint buttonState = None; + uint pendingEmit : 1; + uint readOnly : 1; + uint wrapping : 1; + uint ignoreCursorPositionChanged : 1; + uint frame : 1; + uint accelerate : 1; + uint keyboardTracking : 1; + uint cleared : 1; + uint ignoreUpdateEdit : 1; + uint showGroupSeparator : 1; +}; + +class QSpinBoxValidator : public QValidator +{ +public: + QSpinBoxValidator(QAbstractSpinBox *qptr, QAbstractSpinBoxPrivate *dptr); + QValidator::State validate(QString &input, int &) const override; + void fixup(QString &) const override; +private: + QAbstractSpinBox *qptr; + QAbstractSpinBoxPrivate *dptr; +}; + +QT_END_NAMESPACE + +#endif // QABSTRACTSPINBOX_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaccessiblemenu_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaccessiblemenu_p.h new file mode 100644 index 0000000000000000000000000000000000000000..46666363b718b4dd5c80b2a78341749f9fb66e93 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaccessiblemenu_p.h @@ -0,0 +1,107 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QACCESSIBLEMENU_H +#define QACCESSIBLEMENU_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include +#include + +QT_BEGIN_NAMESPACE + +#if QT_CONFIG(accessibility) + +#if QT_CONFIG(menu) +class QMenu; +class QMenuBar; +class QAction; + +class QAccessibleMenu : public QAccessibleWidget +{ +public: + explicit QAccessibleMenu(QWidget *w); + + int childCount() const override; + QAccessibleInterface *childAt(int x, int y) const override; + + QString text(QAccessible::Text t) const override; + QAccessible::Role role() const override; + QAccessibleInterface *child(int index) const override; + QAccessibleInterface *parent() const override; + int indexOfChild( const QAccessibleInterface *child ) const override; + +protected: + QMenu *menu() const; +}; + +#if QT_CONFIG(menubar) +class QAccessibleMenuBar : public QAccessibleWidget +{ +public: + explicit QAccessibleMenuBar(QWidget *w); + + QAccessibleInterface *child(int index) const override; + int childCount() const override; + + int indexOfChild(const QAccessibleInterface *child) const override; + +protected: + QMenuBar *menuBar() const; +}; +#endif // QT_CONFIG(menubar) + + +class QAccessibleMenuItem : public QAccessibleInterface, public QAccessibleActionInterface +{ +public: + explicit QAccessibleMenuItem(QWidget *owner, QAction *w); + + ~QAccessibleMenuItem(); + void *interface_cast(QAccessible::InterfaceType t) override; + + int childCount() const override; + QAccessibleInterface *childAt(int x, int y) const override; + bool isValid() const override; + int indexOfChild(const QAccessibleInterface * child) const override; + + QAccessibleInterface *parent() const override; + QAccessibleInterface *child(int index) const override; + QObject * object() const override; + QWindow *window() const override; + + QRect rect() const override; + QAccessible::Role role() const override; + void setText(QAccessible::Text t, const QString & text) override; + QAccessible::State state() const override; + QString text(QAccessible::Text t) const override; + + // QAccessibleActionInterface + QStringList actionNames() const override; + void doAction(const QString &actionName) override; + QStringList keyBindingsForAction(const QString &actionName) const override; + + QWidget *owner() const; +protected: + QAction *action() const; +private: + QAction *m_action; + QPointer m_owner; // can hold either QMenu or the QMenuBar that contains the action +}; + +#endif // QT_CONFIG(menu) + +QT_END_NAMESPACE +#endif // QT_CONFIG(accessibility) +#endif // QACCESSIBLEMENU_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaccessiblewidgetfactory_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaccessiblewidgetfactory_p.h new file mode 100644 index 0000000000000000000000000000000000000000..737684efc6aaed5724646dc3dd4f68c080717085 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaccessiblewidgetfactory_p.h @@ -0,0 +1,30 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#include + +#ifndef QACCESSIBLEWIDGETFACTORY_H +#define QACCESSIBLEWIDGETFACTORY_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists for the convenience +// of other Qt classes. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +QT_BEGIN_NAMESPACE + +class QObject; +class QAccessibleInterface; +class QString; + +QAccessibleInterface *qAccessibleFactory(const QString &classname, QObject *object); + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaccessiblewidgets_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaccessiblewidgets_p.h new file mode 100644 index 0000000000000000000000000000000000000000..cbda42f5140135d511dfa732d4203c46147335e6 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaccessiblewidgets_p.h @@ -0,0 +1,289 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QACCESSIBLEWIDGETS_H +#define QACCESSIBLEWIDGETS_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include + +#if QT_CONFIG(accessibility) + +#include + +QT_BEGIN_NAMESPACE + +class QTextEdit; +class QStackedWidget; +class QToolBox; +class QMdiArea; +class QMdiSubWindow; +class QRubberBand; +class QTextBrowser; +class QCalendarWidget; +class QAbstractItemView; +class QDockWidget; +class QDockWidgetLayout; +class QMainWindow; +class QPlainTextEdit; +class QTextCursor; +class QTextDocument; + +#ifndef QT_NO_CURSOR +class QAccessibleTextWidget : public QAccessibleWidget, + public QAccessibleTextInterface, + public QAccessibleEditableTextInterface +{ +public: + QAccessibleTextWidget(QWidget *o, QAccessible::Role r = QAccessible::EditableText, const QString &name = QString()); + + QAccessible::State state() const override; + + // QAccessibleTextInterface + // selection + void selection(int selectionIndex, int *startOffset, int *endOffset) const override; + int selectionCount() const override; + void addSelection(int startOffset, int endOffset) override; + void removeSelection(int selectionIndex) override; + void setSelection(int selectionIndex, int startOffset, int endOffset) override; + + // cursor + int cursorPosition() const override; + void setCursorPosition(int position) override; + + // text + QString text(int startOffset, int endOffset) const override; + QString textBeforeOffset(int offset, QAccessible::TextBoundaryType boundaryType, + int *startOffset, int *endOffset) const override; + QString textAfterOffset(int offset, QAccessible::TextBoundaryType boundaryType, + int *startOffset, int *endOffset) const override; + QString textAtOffset(int offset, QAccessible::TextBoundaryType boundaryType, + int *startOffset, int *endOffset) const override; + int characterCount() const override; + + // character <-> geometry + QRect characterRect(int offset) const override; + int offsetAtPoint(const QPoint &point) const override; + + QString attributes(int offset, int *startOffset, int *endOffset) const override; + + // QAccessibleEditableTextInterface + void deleteText(int startOffset, int endOffset) override; + void insertText(int offset, const QString &text) override; + void replaceText(int startOffset, int endOffset, const QString &text) override; + + using QAccessibleWidget::text; + +protected: + QTextCursor textCursorForRange(int startOffset, int endOffset) const; + virtual QPoint scrollBarPosition() const; + // return the current text cursor at the caret position including a potential selection + virtual QTextCursor textCursor() const = 0; + virtual void setTextCursor(const QTextCursor &) = 0; + virtual QTextDocument *textDocument() const = 0; + virtual QWidget *viewport() const = 0; +}; + +#if QT_CONFIG(textedit) +class QAccessiblePlainTextEdit : public QAccessibleTextWidget +{ +public: + explicit QAccessiblePlainTextEdit(QWidget *o); + + QString text(QAccessible::Text t) const override; + void setText(QAccessible::Text t, const QString &text) override; + QAccessible::State state() const override; + + void *interface_cast(QAccessible::InterfaceType t) override; + + // QAccessibleTextInterface + void scrollToSubstring(int startIndex, int endIndex) override; + + using QAccessibleTextWidget::text; + +protected: + QPlainTextEdit *plainTextEdit() const; + + QPoint scrollBarPosition() const override; + QTextCursor textCursor() const override; + void setTextCursor(const QTextCursor &textCursor) override; + QTextDocument *textDocument() const override; + QWidget *viewport() const override; +}; + +class QAccessibleTextEdit : public QAccessibleTextWidget +{ +public: + explicit QAccessibleTextEdit(QWidget *o); + + QString text(QAccessible::Text t) const override; + void setText(QAccessible::Text t, const QString &text) override; + QAccessible::State state() const override; + + void *interface_cast(QAccessible::InterfaceType t) override; + + // QAccessibleTextInterface + void scrollToSubstring(int startIndex, int endIndex) override; + + using QAccessibleTextWidget::text; + +protected: + QTextEdit *textEdit() const; + + QPoint scrollBarPosition() const override; + QTextCursor textCursor() const override; + void setTextCursor(const QTextCursor &textCursor) override; + QTextDocument *textDocument() const override; + QWidget *viewport() const override; +}; +#endif // QT_CONFIG(textedit) +#endif //QT_NO_CURSOR + +class QAccessibleStackedWidget : public QAccessibleWidget +{ +public: + explicit QAccessibleStackedWidget(QWidget *widget); + + QAccessibleInterface *childAt(int x, int y) const override; + int childCount() const override; + int indexOfChild(const QAccessibleInterface *child) const override; + QAccessibleInterface *child(int index) const override; + +protected: + QStackedWidget *stackedWidget() const; +}; + +class QAccessibleToolBox : public QAccessibleWidget +{ +public: + explicit QAccessibleToolBox(QWidget *widget); + +// FIXME we currently expose the toolbox but it is not keyboard navigatable +// and the accessible hierarchy is not exactly beautiful. +// int childCount() const; +// QAccessibleInterface *child(int index) const; +// int indexOfChild(const QAccessibleInterface *child) const; + +protected: + QToolBox *toolBox() const; +}; + +#if QT_CONFIG(mdiarea) +class QAccessibleMdiArea : public QAccessibleWidget +{ +public: + explicit QAccessibleMdiArea(QWidget *widget); + + int childCount() const override; + QAccessibleInterface *child(int index) const override; + int indexOfChild(const QAccessibleInterface *child) const override; + +protected: + QMdiArea *mdiArea() const; +}; + +class QAccessibleMdiSubWindow : public QAccessibleWidget +{ +public: + explicit QAccessibleMdiSubWindow(QWidget *widget); + + QString text(QAccessible::Text textType) const override; + void setText(QAccessible::Text textType, const QString &text) override; + QAccessible::State state() const override; + int childCount() const override; + QAccessibleInterface *child(int index) const override; + int indexOfChild(const QAccessibleInterface *child) const override; + QRect rect() const override; + +protected: + QMdiSubWindow *mdiSubWindow() const; +}; +#endif // QT_CONFIG(mdiarea) + +#if QT_CONFIG(dialogbuttonbox) +class QAccessibleDialogButtonBox : public QAccessibleWidget +{ +public: + explicit QAccessibleDialogButtonBox(QWidget *widget); +}; +#endif + +#if QT_CONFIG(textbrowser) && !defined(QT_NO_CURSOR) +class QAccessibleTextBrowser : public QAccessibleTextEdit +{ +public: + explicit QAccessibleTextBrowser(QWidget *widget); + + QAccessible::Role role() const override; +}; +#endif // QT_CONFIG(textbrowser) && QT_NO_CURSOR + +#if QT_CONFIG(calendarwidget) +class QAccessibleCalendarWidget : public QAccessibleWidget +{ +public: + explicit QAccessibleCalendarWidget(QWidget *widget); + + int childCount() const override; + int indexOfChild(const QAccessibleInterface *child) const override; + + QAccessibleInterface *child(int index) const override; + +protected: + QCalendarWidget *calendarWidget() const; + +private: + QAbstractItemView *calendarView() const; + QWidget *navigationBar() const; +}; +#endif // QT_CONFIG(calendarwidget) + +#if QT_CONFIG(dockwidget) +class QAccessibleDockWidget: public QAccessibleWidget +{ +public: + explicit QAccessibleDockWidget(QWidget *widget); + QAccessibleInterface *child(int index) const override; + int indexOfChild(const QAccessibleInterface *child) const override; + int childCount() const override; + QRect rect () const override; + QString text(QAccessible::Text t) const override; + + QDockWidget *dockWidget() const; +protected: + QDockWidgetLayout *dockWidgetLayout() const; +}; + +#endif // QT_CONFIG(dockwidget) + +#if QT_CONFIG(mainwindow) +class QAccessibleMainWindow : public QAccessibleWidget +{ +public: + explicit QAccessibleMainWindow(QWidget *widget); + + QAccessibleInterface *child(int index) const override; + int childCount() const override; + int indexOfChild(const QAccessibleInterface *iface) const override; + QAccessibleInterface *childAt(int x, int y) const override; + QMainWindow *mainWindow() const; + +}; +#endif // QT_CONFIG(mainwindow) + +#endif // QT_CONFIG(accessibility) + +QT_END_NAMESPACE + +#endif // QACESSIBLEWIDGETS_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaction_widgets_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaction_widgets_p.h new file mode 100644 index 0000000000000000000000000000000000000000..8bd594084387c7812468bd263d40464ab09ff8ce --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qaction_widgets_p.h @@ -0,0 +1,54 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QACTION_WIDGETS_P_H +#define QACTION_WIDGETS_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists for the convenience +// of other Qt classes. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#if QT_CONFIG(menu) +#include +#endif + +#include + +QT_REQUIRE_CONFIG(action); + +QT_BEGIN_NAMESPACE + +class QShortcutMap; + +class Q_WIDGETS_EXPORT QtWidgetsActionPrivate : public QActionPrivate +{ + Q_DECLARE_PUBLIC(QAction) +public: + QtWidgetsActionPrivate() = default; + ~QtWidgetsActionPrivate(); + + void destroy() override; + +#if QT_CONFIG(shortcut) + QShortcutMap::ContextMatcher contextMatcher() const override; +#endif + +#if QT_CONFIG(menu) + QPointer m_menu; + + QObject *menu() const override; + void setMenu(QObject *menu) override; +#endif +}; + +QT_END_NAMESPACE + +#endif // QACTION_WIDGETS_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qapplication_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qapplication_p.h new file mode 100644 index 0000000000000000000000000000000000000000..75c550a9b717808012134f1b33302c8b3edfc491 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qapplication_p.h @@ -0,0 +1,238 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QAPPLICATION_P_H +#define QAPPLICATION_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists for the convenience +// of qapplication_*.cpp, qwidget*.cpp, qcolor_x11.cpp, qfiledialog.cpp +// and many other. This header file may change from version to version +// without notice, or even be removed. +// +// We mean it. +// + +#include +#include "QtWidgets/qapplication.h" +#include "QtGui/qevent.h" +#include "QtGui/qfont.h" +#include "QtGui/qcursor.h" +#include "QtGui/qregion.h" +#include "QtGui/qwindow.h" +#include "qwidget.h" +#include +#include "QtCore/qmutex.h" +#include "QtCore/qtranslator.h" +#include "QtCore/qbasictimer.h" +#include "QtCore/qhash.h" +#include "QtCore/qpointer.h" +#include "private/qcoreapplication_p.h" +#include "QtCore/qpoint.h" +#include +#include +#include +#include +#include "private/qguiapplication_p.h" + +QT_BEGIN_NAMESPACE + +class QClipboard; +class QGraphicsScene; +class QObject; +class QWidget; +class QSocketNotifier; +class QPointingDevice; +#ifndef QT_NO_GESTURES +class QGestureManager; +#endif + +extern Q_GUI_EXPORT bool qt_is_tty_app; +#ifndef QT_NO_CLIPBOARD +extern QClipboard *qt_clipboard; +#endif + +typedef QHash FontHash; +Q_WIDGETS_EXPORT FontHash *qt_app_fonts_hash(); + +class Q_WIDGETS_EXPORT QApplicationPrivate : public QGuiApplicationPrivate +{ + Q_DECLARE_PUBLIC(QApplication) +public: + QApplicationPrivate(int &argc, char **argv); + ~QApplicationPrivate(); + + virtual void notifyLayoutDirectionChange() override; + virtual void notifyActiveWindowChange(QWindow *) override; + + static bool autoSipEnabled; + static QString desktopStyleKey(); + + void createEventDispatcher() override; + static void dispatchEnterLeave(QWidget *enter, QWidget *leave, const QPointF &globalPosF); + static QWidget *desktop(); + void notifyWindowIconChanged() override; + +#ifndef QT_NO_ACTION + QActionPrivate *createActionPrivate() const override; +#endif +#ifndef QT_NO_SHORTCUT + QShortcutPrivate *createShortcutPrivate() const override; +#endif + + //modality + Qt::WindowModality defaultModality() const override; + bool windowNeverBlocked(QWindow *window) const override; + static bool isBlockedByModal(QWidget *widget); + static bool modalState(); + static bool tryModalHelper(QWidget *widget, QWidget **rettop = nullptr); + +#ifdef QT_KEYPAD_NAVIGATION + static bool keypadNavigationEnabled() + { + return navigationMode == Qt::NavigationModeKeypadTabOrder || + navigationMode == Qt::NavigationModeKeypadDirectional; + } +#endif + + bool notify_helper(QObject *receiver, QEvent * e); + + void init(); + void initialize(); + void process_cmdline(); + + static void setActiveWindow(QWidget* act); + + static bool inPopupMode(); + void closePopup(QWidget *popup); + void openPopup(QWidget *popup); + static bool replayMousePress; + + static void setFocusWidget(QWidget *focus, Qt::FocusReason reason); + static QWidget *focusNextPrevChild_helper(QWidget *toplevel, bool next, + bool *wrappingOccurred = nullptr); + +#if QT_CONFIG(graphicsview) + // Maintain a list of all scenes to ensure font and palette propagation to + // all scenes. + QList scene_list; +#endif + + QBasicTimer toolTipWakeUp, toolTipFallAsleep; + QPoint toolTipPos, toolTipGlobalPos, hoverGlobalPos; + QPointer toolTipWidget; + + static QSize app_strut; + static QWidgetList *popupWidgets; + static QStyle *app_style; + +protected: + void handleThemeChanged() override; + + QPalette basePalette() const override; + void handlePaletteChanged(const char *className = nullptr) override; + +#if QT_CONFIG(draganddrop) + void notifyDragStarted(const QDrag *) override; +#endif // QT_CONFIG(draganddrop) + +public: + static QFont *sys_font; + static QFont *set_font; + static QWidget *main_widget; + static QWidget *focus_widget; + static QWidget *hidden_focus_widget; +#if QT_CONFIG(wheelevent) + static QPointer wheel_widget; +#endif + + static int enabledAnimations; // Combination of QPlatformTheme::UiEffect + static bool widgetCount; // Coupled with -widgetcount switch + + static void initializeWidgetPalettesFromTheme(); + static void initializeWidgetFontHash(); + static void setSystemFont(const QFont &font); + + using PaletteHash = QHash; + static PaletteHash widgetPalettes; + + static QApplicationPrivate *instance() { return self; } + +#ifdef QT_KEYPAD_NAVIGATION + static QWidget *oldEditFocus; + static Qt::NavigationMode navigationMode; +#endif + +#ifndef QT_NO_STYLE_STYLESHEET + static QString styleSheet; +#endif + static QPointer leaveAfterRelease; + static QWidget *pickMouseReceiver(QWidget *candidate, const QPointF &windowPos, QPointF *pos, + QEvent::Type type, Qt::MouseButtons buttons, + QWidget *buttonDown, QWidget *alienWidget); + static bool sendMouseEvent(QWidget *receiver, QMouseEvent *event, QWidget *alienWidget, + QWidget *native, QWidget **buttonDown, QPointer &lastMouseReceiver, + bool spontaneous = true, bool onlyDispatchEnterLeave = false); + void sendSyntheticEnterLeave(QWidget *widget); + + static QWindow *windowForWidget(const QWidget *widget) + { + if (QWindow *window = widget->windowHandle()) + return window; + if (const QWidget *nativeParent = widget->nativeParentWidget()) + return nativeParent->windowHandle(); + return nullptr; + } + +#ifdef Q_OS_WIN + static HWND getHWNDForWidget(const QWidget *widget) + { + if (QWindow *window = windowForWidget(widget)) + if (window->handle() && QGuiApplication::platformNativeInterface()) + return static_cast (QGuiApplication::platformNativeInterface()-> + nativeResourceForWindow(QByteArrayLiteral("handle"), window)); + return 0; + } +#endif + +#ifndef QT_NO_GESTURES + QGestureManager *gestureManager; + QWidget *gestureWidget; +#endif + + static bool updateTouchPointsForWidget(QWidget *widget, QTouchEvent *touchEvent); + void initializeMultitouch(); + void initializeMultitouch_sys(); + void cleanupMultitouch(); + void cleanupMultitouch_sys(); + QWidget *findClosestTouchPointTarget(const QPointingDevice *device, const QEventPoint &touchPoint); + void appendTouchPoint(const QEventPoint &touchPoint); + void removeTouchPoint(int touchPointId); + enum ImplicitTouchGrabMode { GrabAcceptedPoints, GrabAllPoints }; + void activateImplicitTouchGrab(QWidget *widget, QTouchEvent *touchBeginEvent, + ImplicitTouchGrabMode grabMode = GrabAcceptedPoints); + static bool translateRawTouchEvent(QWidget *widget, const QTouchEvent *touchEvent); + static void translateTouchCancel(const QPointingDevice *device, ulong timestamp); + + QPixmap applyQIconStyleHelper(QIcon::Mode mode, const QPixmap& base) const override; + +private: + static QApplicationPrivate *self; + static bool tryCloseAllWidgetWindows(QWindowList *processedWindows); + + static void giveFocusAccordingToFocusPolicy(QWidget *w, QEvent *event, QPoint localPos); + static bool shouldSetFocus(QWidget *w, Qt::FocusPolicy policy); + + static QWidget *active_window; + + static bool isAlien(QWidget *); +}; + +extern void qt_qpa_set_cursor(QWidget * w, bool force); + +QT_END_NAMESPACE + +#endif // QAPPLICATION_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qbsptree_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qbsptree_p.h new file mode 100644 index 0000000000000000000000000000000000000000..92acd2da304ee2d6e3df59b1d93d4f9089228796 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qbsptree_p.h @@ -0,0 +1,82 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QBSPTREE_P_H +#define QBSPTREE_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists for the convenience +// of other Qt classes. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class QBspTree +{ +public: + + struct Node + { + enum Type { None = 0, VerticalPlane = 1, HorizontalPlane = 2, Both = 3 }; + inline Node() : pos(0), type(None) {} + int pos; + Type type; + }; + typedef Node::Type NodeType; + + struct Data + { + Data(void *p) : ptr(p) {} + Data(int n) : i(n) {} + union { + void *ptr; + int i; + }; + }; + typedef QBspTree::Data QBspTreeData; + typedef void callback(QList &leaf, const QRect &area, uint visited, QBspTreeData data); + + QBspTree(); + + void create(int n, int d = -1); + void destroy(); + + inline void init(const QRect &area, NodeType type) { init(area, depth, type, 0); } + + void climbTree(const QRect &rect, callback *function, QBspTreeData data); + + inline int leafCount() const { return leaves.size(); } + inline QList &leaf(int i) { return leaves[i]; } + inline void insertLeaf(const QRect &r, int i) { climbTree(r, &insert, i, 0); } + inline void removeLeaf(const QRect &r, int i) { climbTree(r, &remove, i, 0); } + +protected: + void init(const QRect &area, int depth, NodeType type, int index); + void climbTree(const QRect &rect, callback *function, QBspTreeData data, int index); + + inline int parentIndex(int i) const { return (i & 1) ? ((i - 1) / 2) : ((i - 2) / 2); } + inline int firstChildIndex(int i) const { return ((i * 2) + 1); } + + static void insert(QList &leaf, const QRect &area, uint visited, QBspTreeData data); + static void remove(QList &leaf, const QRect &area, uint visited, QBspTreeData data); + +private: + uint depth; + mutable uint visited; + QList nodes; + mutable QList> leaves; // the leaves are just indices into the items +}; + +QT_END_NAMESPACE + +#endif // QBSPTREE_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qbuttongroup_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qbuttongroup_p.h new file mode 100644 index 0000000000000000000000000000000000000000..9352bf8fd8125213eea03cf33cb02f67fbe790a2 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qbuttongroup_p.h @@ -0,0 +1,48 @@ +// Copyright (C) 2017 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QBUTTONGROUP_P_H +#define QBUTTONGROUP_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include + +#include + +#include +#include +#include + +QT_REQUIRE_CONFIG(buttongroup); + +QT_BEGIN_NAMESPACE + +class QButtonGroupPrivate: public QObjectPrivate +{ + Q_DECLARE_PUBLIC(QButtonGroup) + +public: + QButtonGroupPrivate() : exclusive(true) {} + + QList buttonList; + QPointer checkedButton; + void detectCheckedButton(); + + bool exclusive; + QHash mapping; +}; + +QT_END_NAMESPACE + +#endif // QBUTTONGROUP_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qcolumnviewgrip_p.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qcolumnviewgrip_p.h new file mode 100644 index 0000000000000000000000000000000000000000..65135111755ed65caa20646a1dff551c07b677f6 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/6.8.1/QtWidgets/private/qcolumnviewgrip_p.h @@ -0,0 +1,65 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QCOLUMNVIEWGRIP_P_H +#define QCOLUMNVIEWGRIP_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists for the convenience +// of other Qt classes. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include +#include + +QT_REQUIRE_CONFIG(columnview); + +QT_BEGIN_NAMESPACE + +class QColumnViewGripPrivate; + +class Q_AUTOTEST_EXPORT QColumnViewGrip : public QWidget { + +Q_OBJECT + +Q_SIGNALS: + void gripMoved(int offset); + +public: + explicit QColumnViewGrip(QWidget *parent = nullptr); + ~QColumnViewGrip(); + int moveGrip(int offset); + +protected: + QColumnViewGrip(QColumnViewGripPrivate &, QWidget *parent = nullptr, Qt::WindowFlags f = { }); + void paintEvent(QPaintEvent *event) override; + void mouseDoubleClickEvent(QMouseEvent *event) override; + void mouseMoveEvent(QMouseEvent *event) override; + void mouseReleaseEvent(QMouseEvent *event) override; + void mousePressEvent(QMouseEvent *event) override; + +private: + Q_DECLARE_PRIVATE(QColumnViewGrip) + Q_DISABLE_COPY_MOVE(QColumnViewGrip) +}; + +class QColumnViewGripPrivate : public QWidgetPrivate +{ + Q_DECLARE_PUBLIC(QColumnViewGrip) + +public: + QColumnViewGripPrivate(); + ~QColumnViewGripPrivate() {} + + int originalXLocation; +}; + +QT_END_NAMESPACE + +#endif //QCOLUMNVIEWGRIP_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractButton b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractButton new file mode 100644 index 0000000000000000000000000000000000000000..c1449384034e8fe91bfe1f353134fa812336e3d1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractButton @@ -0,0 +1 @@ +#include "qabstractbutton.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractGraphicsShapeItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractGraphicsShapeItem new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractGraphicsShapeItem @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractItemDelegate b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractItemDelegate new file mode 100644 index 0000000000000000000000000000000000000000..af9a9be229e10cbfcc15e047cb40f8b0a3fe60fd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractItemDelegate @@ -0,0 +1 @@ +#include "qabstractitemdelegate.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractItemView b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractItemView new file mode 100644 index 0000000000000000000000000000000000000000..7c170846fbb0d9b974274046c5e93ee0e74e86e1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractItemView @@ -0,0 +1 @@ +#include "qabstractitemview.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractScrollArea b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractScrollArea new file mode 100644 index 0000000000000000000000000000000000000000..61e0e9aa52d2ae9c4f0782764031eb3b80f973e7 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractScrollArea @@ -0,0 +1 @@ +#include "qabstractscrollarea.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractSlider b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractSlider new file mode 100644 index 0000000000000000000000000000000000000000..8f80cae7cff6ff22cda4bd264d4fbd20e5937ddf --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractSlider @@ -0,0 +1 @@ +#include "qabstractslider.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractSpinBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractSpinBox new file mode 100644 index 0000000000000000000000000000000000000000..0c83bf40d1041a9708df876d59a65434b6537af5 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAbstractSpinBox @@ -0,0 +1 @@ +#include "qabstractspinbox.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QAccessibleWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAccessibleWidget new file mode 100644 index 0000000000000000000000000000000000000000..e295f3c337680e1477b57954ae598f3e89729c24 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QAccessibleWidget @@ -0,0 +1 @@ +#include "qaccessiblewidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QApplication b/qt/6.8.1/msvc2022_64/include/QtWidgets/QApplication new file mode 100644 index 0000000000000000000000000000000000000000..9997f21364b52ff61bacbbb6a81bef2b17974b29 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QApplication @@ -0,0 +1 @@ +#include "qapplication.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QBoxLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QBoxLayout new file mode 100644 index 0000000000000000000000000000000000000000..dc0a6171c159633c3a9547f0a2cefa33f40fe35b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QBoxLayout @@ -0,0 +1 @@ +#include "qboxlayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QButtonGroup b/qt/6.8.1/msvc2022_64/include/QtWidgets/QButtonGroup new file mode 100644 index 0000000000000000000000000000000000000000..8792442432e4bccc02ca7c32a9f782f37b94613f --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QButtonGroup @@ -0,0 +1 @@ +#include "qbuttongroup.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QCalendarWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QCalendarWidget new file mode 100644 index 0000000000000000000000000000000000000000..55f4afedab246ed5bfb7b361aa4dc607f8a6ba96 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QCalendarWidget @@ -0,0 +1 @@ +#include "qcalendarwidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QCheckBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QCheckBox new file mode 100644 index 0000000000000000000000000000000000000000..66ec3f07e977efa6be52785d569b6cf4694a7601 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QCheckBox @@ -0,0 +1 @@ +#include "qcheckbox.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QColorDialog b/qt/6.8.1/msvc2022_64/include/QtWidgets/QColorDialog new file mode 100644 index 0000000000000000000000000000000000000000..2a4fb8ba380e841dfc30e68e2e38e263991a6636 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QColorDialog @@ -0,0 +1 @@ +#include "qcolordialog.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QColormap b/qt/6.8.1/msvc2022_64/include/QtWidgets/QColormap new file mode 100644 index 0000000000000000000000000000000000000000..ccca298d0537f2977a2a914388ed04841e88c81c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QColormap @@ -0,0 +1 @@ +#include "qcolormap.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QColumnView b/qt/6.8.1/msvc2022_64/include/QtWidgets/QColumnView new file mode 100644 index 0000000000000000000000000000000000000000..2ded28e97ff4f57016b8ffc5d04b35d2656d7959 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QColumnView @@ -0,0 +1 @@ +#include "qcolumnview.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QComboBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QComboBox new file mode 100644 index 0000000000000000000000000000000000000000..35a345496a20f76a2d639e47ec4d48494695477f --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QComboBox @@ -0,0 +1 @@ +#include "qcombobox.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QCommandLinkButton b/qt/6.8.1/msvc2022_64/include/QtWidgets/QCommandLinkButton new file mode 100644 index 0000000000000000000000000000000000000000..3687441a6c4c4b891473dcd04722befb57b7f9c6 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QCommandLinkButton @@ -0,0 +1 @@ +#include "qcommandlinkbutton.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QCommonStyle b/qt/6.8.1/msvc2022_64/include/QtWidgets/QCommonStyle new file mode 100644 index 0000000000000000000000000000000000000000..c36319ce9db491332d7b1bce012e672dd46a5131 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QCommonStyle @@ -0,0 +1 @@ +#include "qcommonstyle.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QCompleter b/qt/6.8.1/msvc2022_64/include/QtWidgets/QCompleter new file mode 100644 index 0000000000000000000000000000000000000000..d8a88a0b007d219a0524b1bd7f47d0c14e789fe8 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QCompleter @@ -0,0 +1 @@ +#include "qcompleter.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QDataWidgetMapper b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDataWidgetMapper new file mode 100644 index 0000000000000000000000000000000000000000..90f084a4cebbb32fa058cd05cc138d13452d1487 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDataWidgetMapper @@ -0,0 +1 @@ +#include "qdatawidgetmapper.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QDateEdit b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDateEdit new file mode 100644 index 0000000000000000000000000000000000000000..f8b7b173ea4aec7ef1669c20e6f83af0a9616f1c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDateEdit @@ -0,0 +1 @@ +#include "qdatetimeedit.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QDateTimeEdit b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDateTimeEdit new file mode 100644 index 0000000000000000000000000000000000000000..f8b7b173ea4aec7ef1669c20e6f83af0a9616f1c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDateTimeEdit @@ -0,0 +1 @@ +#include "qdatetimeedit.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QDial b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDial new file mode 100644 index 0000000000000000000000000000000000000000..37b01a8264d6dc26f143ac2175aa0f2783706595 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDial @@ -0,0 +1 @@ +#include "qdial.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QDialog b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDialog new file mode 100644 index 0000000000000000000000000000000000000000..ab02873b24b0e811333947face1917c956716468 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDialog @@ -0,0 +1 @@ +#include "qdialog.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QDialogButtonBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDialogButtonBox new file mode 100644 index 0000000000000000000000000000000000000000..f67f94110c5bc7bce67f117ab5aa70f64fc21ab5 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDialogButtonBox @@ -0,0 +1 @@ +#include "qdialogbuttonbox.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QDockWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDockWidget new file mode 100644 index 0000000000000000000000000000000000000000..a97b803a4ebacaaa474d9201aa22583b0f1f300f --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDockWidget @@ -0,0 +1 @@ +#include "qdockwidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QDoubleSpinBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDoubleSpinBox new file mode 100644 index 0000000000000000000000000000000000000000..a10bc57db8509397ff4e0ab0437f21bea4b2093e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QDoubleSpinBox @@ -0,0 +1 @@ +#include "qspinbox.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QErrorMessage b/qt/6.8.1/msvc2022_64/include/QtWidgets/QErrorMessage new file mode 100644 index 0000000000000000000000000000000000000000..c8a6a17d251ffbfea6b7f872460fc4f4462d0fa9 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QErrorMessage @@ -0,0 +1 @@ +#include "qerrormessage.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QFileDialog b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFileDialog new file mode 100644 index 0000000000000000000000000000000000000000..eb1302fcfa8793116fe5785eb9d85cc0c6e9d677 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFileDialog @@ -0,0 +1 @@ +#include "qfiledialog.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QFileIconProvider b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFileIconProvider new file mode 100644 index 0000000000000000000000000000000000000000..b601ddc7d4609dccacf533e122e7a2be93273148 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFileIconProvider @@ -0,0 +1 @@ +#include "qfileiconprovider.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QFocusFrame b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFocusFrame new file mode 100644 index 0000000000000000000000000000000000000000..a9d7eada5758ab5d2552296206ea5453e3a1485b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFocusFrame @@ -0,0 +1 @@ +#include "qfocusframe.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QFontComboBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFontComboBox new file mode 100644 index 0000000000000000000000000000000000000000..e51e28b5019640da43e3463a3688cf25d9a9485f --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFontComboBox @@ -0,0 +1 @@ +#include "qfontcombobox.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QFontDialog b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFontDialog new file mode 100644 index 0000000000000000000000000000000000000000..edbc0d507564b15c2adfe883eee9ae91c4221ee3 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFontDialog @@ -0,0 +1 @@ +#include "qfontdialog.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QFormLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFormLayout new file mode 100644 index 0000000000000000000000000000000000000000..ff98a1baffa78705eed987115a7c67746fd7dde8 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFormLayout @@ -0,0 +1 @@ +#include "qformlayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QFrame b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFrame new file mode 100644 index 0000000000000000000000000000000000000000..d2717456b151c3c4678f4dd0a3da8b63d8c454fe --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QFrame @@ -0,0 +1 @@ +#include "qframe.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGesture b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGesture new file mode 100644 index 0000000000000000000000000000000000000000..3869960f84c52a42181823895d443a1fcd2e033d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGesture @@ -0,0 +1 @@ +#include "qgesture.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGestureEvent b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGestureEvent new file mode 100644 index 0000000000000000000000000000000000000000..3869960f84c52a42181823895d443a1fcd2e033d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGestureEvent @@ -0,0 +1 @@ +#include "qgesture.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGestureRecognizer b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGestureRecognizer new file mode 100644 index 0000000000000000000000000000000000000000..2aeb1619d39e9afc8c41540b16abb56fbd3694c3 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGestureRecognizer @@ -0,0 +1 @@ +#include "qgesturerecognizer.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsAnchor b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsAnchor new file mode 100644 index 0000000000000000000000000000000000000000..146bc206ffb0cca2b97cc511f309951f30dbf492 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsAnchor @@ -0,0 +1 @@ +#include "qgraphicsanchorlayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsAnchorLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsAnchorLayout new file mode 100644 index 0000000000000000000000000000000000000000..146bc206ffb0cca2b97cc511f309951f30dbf492 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsAnchorLayout @@ -0,0 +1 @@ +#include "qgraphicsanchorlayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsBlurEffect b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsBlurEffect new file mode 100644 index 0000000000000000000000000000000000000000..d51ae2d9b24d471c737659591ba61a6f9e086d7c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsBlurEffect @@ -0,0 +1 @@ +#include "qgraphicseffect.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsColorizeEffect b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsColorizeEffect new file mode 100644 index 0000000000000000000000000000000000000000..d51ae2d9b24d471c737659591ba61a6f9e086d7c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsColorizeEffect @@ -0,0 +1 @@ +#include "qgraphicseffect.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsDropShadowEffect b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsDropShadowEffect new file mode 100644 index 0000000000000000000000000000000000000000..d51ae2d9b24d471c737659591ba61a6f9e086d7c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsDropShadowEffect @@ -0,0 +1 @@ +#include "qgraphicseffect.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsEffect b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsEffect new file mode 100644 index 0000000000000000000000000000000000000000..d51ae2d9b24d471c737659591ba61a6f9e086d7c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsEffect @@ -0,0 +1 @@ +#include "qgraphicseffect.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsEllipseItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsEllipseItem new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsEllipseItem @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsGridLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsGridLayout new file mode 100644 index 0000000000000000000000000000000000000000..ec2ec8b185bc53ee1ada86cab303c14d39666632 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsGridLayout @@ -0,0 +1 @@ +#include "qgraphicsgridlayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsItem new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsItem @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsItemAnimation b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsItemAnimation new file mode 100644 index 0000000000000000000000000000000000000000..645fa3083a979661ad5cd6b6b5d7fd1346541efc --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsItemAnimation @@ -0,0 +1 @@ +#include "qgraphicsitemanimation.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsItemGroup b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsItemGroup new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsItemGroup @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLayout new file mode 100644 index 0000000000000000000000000000000000000000..e62fba816c178447ef596b6e7a63220c7f7aced8 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLayout @@ -0,0 +1 @@ +#include "qgraphicslayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLayoutItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLayoutItem new file mode 100644 index 0000000000000000000000000000000000000000..abc01ef9ae00030b00045b09d43d7f12329be552 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLayoutItem @@ -0,0 +1 @@ +#include "qgraphicslayoutitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLineItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLineItem new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLineItem @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLinearLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLinearLayout new file mode 100644 index 0000000000000000000000000000000000000000..642a368a5e2e56d6efa6de2451715f24914b815f --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsLinearLayout @@ -0,0 +1 @@ +#include "qgraphicslinearlayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsObject b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsObject new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsObject @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsOpacityEffect b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsOpacityEffect new file mode 100644 index 0000000000000000000000000000000000000000..d51ae2d9b24d471c737659591ba61a6f9e086d7c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsOpacityEffect @@ -0,0 +1 @@ +#include "qgraphicseffect.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsPathItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsPathItem new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsPathItem @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsPixmapItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsPixmapItem new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsPixmapItem @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsPolygonItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsPolygonItem new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsPolygonItem @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsProxyWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsProxyWidget new file mode 100644 index 0000000000000000000000000000000000000000..4f07207dbd88489a9d13be37d94ad526bfe545d2 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsProxyWidget @@ -0,0 +1 @@ +#include "qgraphicsproxywidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsRectItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsRectItem new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsRectItem @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsRotation b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsRotation new file mode 100644 index 0000000000000000000000000000000000000000..3f7bb3f6fb840c13ad5ccd4b5ea856bf476cd3ef --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsRotation @@ -0,0 +1 @@ +#include "qgraphicstransform.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsScale b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsScale new file mode 100644 index 0000000000000000000000000000000000000000..3f7bb3f6fb840c13ad5ccd4b5ea856bf476cd3ef --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsScale @@ -0,0 +1 @@ +#include "qgraphicstransform.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsScene b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsScene new file mode 100644 index 0000000000000000000000000000000000000000..59a0e1841fda7109378d38b31899586fe58b6e69 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsScene @@ -0,0 +1 @@ +#include "qgraphicsscene.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneContextMenuEvent b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneContextMenuEvent new file mode 100644 index 0000000000000000000000000000000000000000..e8a0b167090951bac47b2418727251b583f1607a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneContextMenuEvent @@ -0,0 +1 @@ +#include "qgraphicssceneevent.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneDragDropEvent b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneDragDropEvent new file mode 100644 index 0000000000000000000000000000000000000000..e8a0b167090951bac47b2418727251b583f1607a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneDragDropEvent @@ -0,0 +1 @@ +#include "qgraphicssceneevent.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneEvent b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneEvent new file mode 100644 index 0000000000000000000000000000000000000000..e8a0b167090951bac47b2418727251b583f1607a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneEvent @@ -0,0 +1 @@ +#include "qgraphicssceneevent.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneHelpEvent b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneHelpEvent new file mode 100644 index 0000000000000000000000000000000000000000..e8a0b167090951bac47b2418727251b583f1607a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneHelpEvent @@ -0,0 +1 @@ +#include "qgraphicssceneevent.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneHoverEvent b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneHoverEvent new file mode 100644 index 0000000000000000000000000000000000000000..e8a0b167090951bac47b2418727251b583f1607a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneHoverEvent @@ -0,0 +1 @@ +#include "qgraphicssceneevent.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneMouseEvent b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneMouseEvent new file mode 100644 index 0000000000000000000000000000000000000000..e8a0b167090951bac47b2418727251b583f1607a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneMouseEvent @@ -0,0 +1 @@ +#include "qgraphicssceneevent.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneMoveEvent b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneMoveEvent new file mode 100644 index 0000000000000000000000000000000000000000..e8a0b167090951bac47b2418727251b583f1607a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneMoveEvent @@ -0,0 +1 @@ +#include "qgraphicssceneevent.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneResizeEvent b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneResizeEvent new file mode 100644 index 0000000000000000000000000000000000000000..e8a0b167090951bac47b2418727251b583f1607a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneResizeEvent @@ -0,0 +1 @@ +#include "qgraphicssceneevent.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneWheelEvent b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneWheelEvent new file mode 100644 index 0000000000000000000000000000000000000000..e8a0b167090951bac47b2418727251b583f1607a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSceneWheelEvent @@ -0,0 +1 @@ +#include "qgraphicssceneevent.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSimpleTextItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSimpleTextItem new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsSimpleTextItem @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsTextItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsTextItem new file mode 100644 index 0000000000000000000000000000000000000000..64b7f90c40f40ccc7a9a70145d624f2eef1eedfd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsTextItem @@ -0,0 +1 @@ +#include "qgraphicsitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsTransform b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsTransform new file mode 100644 index 0000000000000000000000000000000000000000..3f7bb3f6fb840c13ad5ccd4b5ea856bf476cd3ef --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsTransform @@ -0,0 +1 @@ +#include "qgraphicstransform.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsView b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsView new file mode 100644 index 0000000000000000000000000000000000000000..3833f14265d767b1a9bfafcefcdc0bf63876cf52 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsView @@ -0,0 +1 @@ +#include "qgraphicsview.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsWidget new file mode 100644 index 0000000000000000000000000000000000000000..9aa9d8623dd972953a4fc35e81499b291708acf7 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGraphicsWidget @@ -0,0 +1 @@ +#include "qgraphicswidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGridLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGridLayout new file mode 100644 index 0000000000000000000000000000000000000000..775a9bc7e60cc575d471bd9b94e012915c010b56 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGridLayout @@ -0,0 +1 @@ +#include "qgridlayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QGroupBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGroupBox new file mode 100644 index 0000000000000000000000000000000000000000..c17b0100f83093375335de2fd9bd7e7df712f299 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QGroupBox @@ -0,0 +1 @@ +#include "qgroupbox.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QHBoxLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QHBoxLayout new file mode 100644 index 0000000000000000000000000000000000000000..dc0a6171c159633c3a9547f0a2cefa33f40fe35b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QHBoxLayout @@ -0,0 +1 @@ +#include "qboxlayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QHeaderView b/qt/6.8.1/msvc2022_64/include/QtWidgets/QHeaderView new file mode 100644 index 0000000000000000000000000000000000000000..834f94cde9146a2e059af7328b188db2c6943f33 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QHeaderView @@ -0,0 +1 @@ +#include "qheaderview.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QInputDialog b/qt/6.8.1/msvc2022_64/include/QtWidgets/QInputDialog new file mode 100644 index 0000000000000000000000000000000000000000..5238d71fefe4ec1c9196506e407307bec9427833 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QInputDialog @@ -0,0 +1 @@ +#include "qinputdialog.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemDelegate b/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemDelegate new file mode 100644 index 0000000000000000000000000000000000000000..66bb9c4e7fe3802a5a46e7996aa3bcc065eb4444 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemDelegate @@ -0,0 +1 @@ +#include "qitemdelegate.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemEditorCreator b/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemEditorCreator new file mode 100644 index 0000000000000000000000000000000000000000..91816fb1f300e12170c96bcfbe1821940a2a771b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemEditorCreator @@ -0,0 +1 @@ +#include "qitemeditorfactory.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemEditorCreatorBase b/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemEditorCreatorBase new file mode 100644 index 0000000000000000000000000000000000000000..91816fb1f300e12170c96bcfbe1821940a2a771b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemEditorCreatorBase @@ -0,0 +1 @@ +#include "qitemeditorfactory.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemEditorFactory b/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemEditorFactory new file mode 100644 index 0000000000000000000000000000000000000000..91816fb1f300e12170c96bcfbe1821940a2a771b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QItemEditorFactory @@ -0,0 +1 @@ +#include "qitemeditorfactory.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QKeySequenceEdit b/qt/6.8.1/msvc2022_64/include/QtWidgets/QKeySequenceEdit new file mode 100644 index 0000000000000000000000000000000000000000..3f3b7a5c80d257e89a08af1c8090698ab96bca8c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QKeySequenceEdit @@ -0,0 +1 @@ +#include "qkeysequenceedit.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QLCDNumber b/qt/6.8.1/msvc2022_64/include/QtWidgets/QLCDNumber new file mode 100644 index 0000000000000000000000000000000000000000..6607202f9dd245c5e8fd6c32d48ed0404b1a6080 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QLCDNumber @@ -0,0 +1 @@ +#include "qlcdnumber.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QLabel b/qt/6.8.1/msvc2022_64/include/QtWidgets/QLabel new file mode 100644 index 0000000000000000000000000000000000000000..1eb9f9a6d3000b1568ee98e63e8f30f8293476fe --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QLabel @@ -0,0 +1 @@ +#include "qlabel.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QLayout new file mode 100644 index 0000000000000000000000000000000000000000..4bdf0ef34edfcb29e8720b21945593a6bfd4d43b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QLayout @@ -0,0 +1 @@ +#include "qlayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QLayoutItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QLayoutItem new file mode 100644 index 0000000000000000000000000000000000000000..a66c7e805300aa929b3d09e3e155e3f3a8aff33e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QLayoutItem @@ -0,0 +1 @@ +#include "qlayoutitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QLineEdit b/qt/6.8.1/msvc2022_64/include/QtWidgets/QLineEdit new file mode 100644 index 0000000000000000000000000000000000000000..03b4d41a403cd14bcd2e0c57865771960f9fe39e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QLineEdit @@ -0,0 +1 @@ +#include "qlineedit.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QListView b/qt/6.8.1/msvc2022_64/include/QtWidgets/QListView new file mode 100644 index 0000000000000000000000000000000000000000..7c4ede97310f82a6644d911a0c818c6b6c664b81 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QListView @@ -0,0 +1 @@ +#include "qlistview.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QListWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QListWidget new file mode 100644 index 0000000000000000000000000000000000000000..27753d06d6c4d1e998d71aaf0807d1ef88ab0f89 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QListWidget @@ -0,0 +1 @@ +#include "qlistwidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QListWidgetItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QListWidgetItem new file mode 100644 index 0000000000000000000000000000000000000000..27753d06d6c4d1e998d71aaf0807d1ef88ab0f89 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QListWidgetItem @@ -0,0 +1 @@ +#include "qlistwidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QMainWindow b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMainWindow new file mode 100644 index 0000000000000000000000000000000000000000..b5a06a50f3c6b50b90be7dd646f04eb4ebc17bc9 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMainWindow @@ -0,0 +1 @@ +#include "qmainwindow.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QMdiArea b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMdiArea new file mode 100644 index 0000000000000000000000000000000000000000..8e30aa3b66017f5d65d966ca7b76f1370746f5b9 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMdiArea @@ -0,0 +1 @@ +#include "qmdiarea.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QMdiSubWindow b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMdiSubWindow new file mode 100644 index 0000000000000000000000000000000000000000..a58aaa32d198b7c351669b0e75822904e5170574 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMdiSubWindow @@ -0,0 +1 @@ +#include "qmdisubwindow.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QMenu b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMenu new file mode 100644 index 0000000000000000000000000000000000000000..ce9b369c6376261bbc66bf4309db8746eb1cd6b4 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMenu @@ -0,0 +1 @@ +#include "qmenu.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QMenuBar b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMenuBar new file mode 100644 index 0000000000000000000000000000000000000000..004146c6893e139da36f08ac87f315b8735ac342 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMenuBar @@ -0,0 +1 @@ +#include "qmenubar.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QMessageBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMessageBox new file mode 100644 index 0000000000000000000000000000000000000000..6bc798a57bd6f7eaafdc0635f9d6d6aab1c3145e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QMessageBox @@ -0,0 +1 @@ +#include "qmessagebox.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QPanGesture b/qt/6.8.1/msvc2022_64/include/QtWidgets/QPanGesture new file mode 100644 index 0000000000000000000000000000000000000000..3869960f84c52a42181823895d443a1fcd2e033d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QPanGesture @@ -0,0 +1 @@ +#include "qgesture.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QPinchGesture b/qt/6.8.1/msvc2022_64/include/QtWidgets/QPinchGesture new file mode 100644 index 0000000000000000000000000000000000000000..3869960f84c52a42181823895d443a1fcd2e033d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QPinchGesture @@ -0,0 +1 @@ +#include "qgesture.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QPlainTextDocumentLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QPlainTextDocumentLayout new file mode 100644 index 0000000000000000000000000000000000000000..1b58ef34cd725c154275e7daa28b5207ad8d7a9e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QPlainTextDocumentLayout @@ -0,0 +1 @@ +#include "qplaintextedit.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QPlainTextEdit b/qt/6.8.1/msvc2022_64/include/QtWidgets/QPlainTextEdit new file mode 100644 index 0000000000000000000000000000000000000000..1b58ef34cd725c154275e7daa28b5207ad8d7a9e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QPlainTextEdit @@ -0,0 +1 @@ +#include "qplaintextedit.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QProgressBar b/qt/6.8.1/msvc2022_64/include/QtWidgets/QProgressBar new file mode 100644 index 0000000000000000000000000000000000000000..e869b89d5fc65230b157fc8817ce720c64670394 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QProgressBar @@ -0,0 +1 @@ +#include "qprogressbar.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QProgressDialog b/qt/6.8.1/msvc2022_64/include/QtWidgets/QProgressDialog new file mode 100644 index 0000000000000000000000000000000000000000..bf5f83d9b62d1dd6a09189bfa21df1e804095632 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QProgressDialog @@ -0,0 +1 @@ +#include "qprogressdialog.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QProxyStyle b/qt/6.8.1/msvc2022_64/include/QtWidgets/QProxyStyle new file mode 100644 index 0000000000000000000000000000000000000000..ee238eb25b5aebfc3d8d5e291811e493ed8defa6 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QProxyStyle @@ -0,0 +1 @@ +#include "qproxystyle.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QPushButton b/qt/6.8.1/msvc2022_64/include/QtWidgets/QPushButton new file mode 100644 index 0000000000000000000000000000000000000000..dd93e63a87db1ad0c70c8c81f21d63b8b0f79da0 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QPushButton @@ -0,0 +1 @@ +#include "qpushbutton.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QRadioButton b/qt/6.8.1/msvc2022_64/include/QtWidgets/QRadioButton new file mode 100644 index 0000000000000000000000000000000000000000..cdf9af3d284d6faa4eb98b667b16ee39ee202ef1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QRadioButton @@ -0,0 +1 @@ +#include "qradiobutton.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QRhiWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QRhiWidget new file mode 100644 index 0000000000000000000000000000000000000000..bda4db6356e470450ef5d4691c97aba93c3a51d1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QRhiWidget @@ -0,0 +1 @@ +#include "qrhiwidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QRubberBand b/qt/6.8.1/msvc2022_64/include/QtWidgets/QRubberBand new file mode 100644 index 0000000000000000000000000000000000000000..c4a81f0bfb152202f103ae4ba50e208fc8243ffe --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QRubberBand @@ -0,0 +1 @@ +#include "qrubberband.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QScrollArea b/qt/6.8.1/msvc2022_64/include/QtWidgets/QScrollArea new file mode 100644 index 0000000000000000000000000000000000000000..f6d0c37282dcf66cad13699c92c33cea60a85920 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QScrollArea @@ -0,0 +1 @@ +#include "qscrollarea.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QScrollBar b/qt/6.8.1/msvc2022_64/include/QtWidgets/QScrollBar new file mode 100644 index 0000000000000000000000000000000000000000..ea1826341442d94593bd5d1afa3196a2e33c69d1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QScrollBar @@ -0,0 +1 @@ +#include "qscrollbar.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QScroller b/qt/6.8.1/msvc2022_64/include/QtWidgets/QScroller new file mode 100644 index 0000000000000000000000000000000000000000..49f9510a8c53b9af2be2d02980c89a1bb4643ab6 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QScroller @@ -0,0 +1 @@ +#include "qscroller.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QScrollerProperties b/qt/6.8.1/msvc2022_64/include/QtWidgets/QScrollerProperties new file mode 100644 index 0000000000000000000000000000000000000000..38383d007392c90d4a00960ca620a1f3437c392e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QScrollerProperties @@ -0,0 +1 @@ +#include "qscrollerproperties.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QSizeGrip b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSizeGrip new file mode 100644 index 0000000000000000000000000000000000000000..d14304e07d0f5e855d8aa2bf38844d72fe096a5c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSizeGrip @@ -0,0 +1 @@ +#include "qsizegrip.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QSizePolicy b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSizePolicy new file mode 100644 index 0000000000000000000000000000000000000000..17099d8702b1d67c4128339fb62213c26dabbbbf --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSizePolicy @@ -0,0 +1 @@ +#include "qsizepolicy.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QSlider b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSlider new file mode 100644 index 0000000000000000000000000000000000000000..f2d5b5bc125363a86f569085a0368a4a8d98c508 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSlider @@ -0,0 +1 @@ +#include "qslider.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QSpacerItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSpacerItem new file mode 100644 index 0000000000000000000000000000000000000000..a66c7e805300aa929b3d09e3e155e3f3a8aff33e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSpacerItem @@ -0,0 +1 @@ +#include "qlayoutitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QSpinBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSpinBox new file mode 100644 index 0000000000000000000000000000000000000000..a10bc57db8509397ff4e0ab0437f21bea4b2093e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSpinBox @@ -0,0 +1 @@ +#include "qspinbox.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QSplashScreen b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSplashScreen new file mode 100644 index 0000000000000000000000000000000000000000..7100f31b5ed8dd318809930399c6a83dd646be71 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSplashScreen @@ -0,0 +1 @@ +#include "qsplashscreen.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QSplitter b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSplitter new file mode 100644 index 0000000000000000000000000000000000000000..81e2844bacdc538b1618650fbe2d364a82387917 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSplitter @@ -0,0 +1 @@ +#include "qsplitter.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QSplitterHandle b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSplitterHandle new file mode 100644 index 0000000000000000000000000000000000000000..81e2844bacdc538b1618650fbe2d364a82387917 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSplitterHandle @@ -0,0 +1 @@ +#include "qsplitter.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStackedLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStackedLayout new file mode 100644 index 0000000000000000000000000000000000000000..dd5da588f7bac6b05230f74f95be90063efa0c62 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStackedLayout @@ -0,0 +1 @@ +#include "qstackedlayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStackedWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStackedWidget new file mode 100644 index 0000000000000000000000000000000000000000..8d9e83f6829b5926803126295b9a7a9b9a51eb0a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStackedWidget @@ -0,0 +1 @@ +#include "qstackedwidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStandardItemEditorCreator b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStandardItemEditorCreator new file mode 100644 index 0000000000000000000000000000000000000000..91816fb1f300e12170c96bcfbe1821940a2a771b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStandardItemEditorCreator @@ -0,0 +1 @@ +#include "qitemeditorfactory.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStatusBar b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStatusBar new file mode 100644 index 0000000000000000000000000000000000000000..0a0bffc55eb89ebbf5e7be3805f2934be3ebcd11 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStatusBar @@ -0,0 +1 @@ +#include "qstatusbar.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyle b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyle new file mode 100644 index 0000000000000000000000000000000000000000..f50c86d1697830eeefc7cfb49b88f2b2681f9fca --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyle @@ -0,0 +1 @@ +#include "qstyle.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleFactory b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleFactory new file mode 100644 index 0000000000000000000000000000000000000000..a809518bcf25ed297fce4a7bd9f3b5662031e356 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleFactory @@ -0,0 +1 @@ +#include "qstylefactory.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleHintReturn b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleHintReturn new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleHintReturn @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleHintReturnMask b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleHintReturnMask new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleHintReturnMask @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleHintReturnVariant b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleHintReturnVariant new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleHintReturnVariant @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOption b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOption new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOption @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionButton b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionButton new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionButton @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionComboBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionComboBox new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionComboBox @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionComplex b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionComplex new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionComplex @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionDockWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionDockWidget new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionDockWidget @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionFocusRect b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionFocusRect new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionFocusRect @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionFrame b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionFrame new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionFrame @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionGraphicsItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionGraphicsItem new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionGraphicsItem @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionGroupBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionGroupBox new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionGroupBox @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionHeader b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionHeader new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionHeader @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionHeaderV2 b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionHeaderV2 new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionHeaderV2 @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionMenuItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionMenuItem new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionMenuItem @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionProgressBar b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionProgressBar new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionProgressBar @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionRubberBand b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionRubberBand new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionRubberBand @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionSizeGrip b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionSizeGrip new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionSizeGrip @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionSlider b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionSlider new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionSlider @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionSpinBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionSpinBox new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionSpinBox @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTab b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTab new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTab @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTabBarBase b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTabBarBase new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTabBarBase @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTabWidgetFrame b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTabWidgetFrame new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTabWidgetFrame @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTitleBar b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTitleBar new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionTitleBar @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionToolBar b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionToolBar new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionToolBar @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionToolBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionToolBox new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionToolBox @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionToolButton b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionToolButton new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionToolButton @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionViewItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionViewItem new file mode 100644 index 0000000000000000000000000000000000000000..f175a1b8485d15c57ab74c6cc96e81e392a11379 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyleOptionViewItem @@ -0,0 +1 @@ +#include "qstyleoption.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStylePainter b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStylePainter new file mode 100644 index 0000000000000000000000000000000000000000..2be772409fa2e48307db35c6987e297ca2a47544 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStylePainter @@ -0,0 +1 @@ +#include "qstylepainter.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStylePlugin b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStylePlugin new file mode 100644 index 0000000000000000000000000000000000000000..464621cdde31967ec5572c1e0b15eb4630073120 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStylePlugin @@ -0,0 +1 @@ +#include "qstyleplugin.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyledItemDelegate b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyledItemDelegate new file mode 100644 index 0000000000000000000000000000000000000000..b21b4b6bbc09f6b0d823ee42bb67a05d29555fde --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QStyledItemDelegate @@ -0,0 +1 @@ +#include "qstyleditemdelegate.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QSwipeGesture b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSwipeGesture new file mode 100644 index 0000000000000000000000000000000000000000..3869960f84c52a42181823895d443a1fcd2e033d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSwipeGesture @@ -0,0 +1 @@ +#include "qgesture.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QSystemTrayIcon b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSystemTrayIcon new file mode 100644 index 0000000000000000000000000000000000000000..3162bd2962cc0b29b2239e043654b65cb1a37f87 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QSystemTrayIcon @@ -0,0 +1 @@ +#include "qsystemtrayicon.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTabBar b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTabBar new file mode 100644 index 0000000000000000000000000000000000000000..889921d51331f9eaac081dc37ac367c7442e5a0b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTabBar @@ -0,0 +1 @@ +#include "qtabbar.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTabWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTabWidget new file mode 100644 index 0000000000000000000000000000000000000000..7d857c89460184aee7d41185165120f62241487c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTabWidget @@ -0,0 +1 @@ +#include "qtabwidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableView b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableView new file mode 100644 index 0000000000000000000000000000000000000000..65c08332f8dc4cc16811d138e57c6e9b612ba11c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableView @@ -0,0 +1 @@ +#include "qtableview.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableWidget new file mode 100644 index 0000000000000000000000000000000000000000..cfabb4755d52ef1294b35c27d06618576d4826a5 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableWidget @@ -0,0 +1 @@ +#include "qtablewidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableWidgetItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableWidgetItem new file mode 100644 index 0000000000000000000000000000000000000000..cfabb4755d52ef1294b35c27d06618576d4826a5 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableWidgetItem @@ -0,0 +1 @@ +#include "qtablewidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableWidgetSelectionRange b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableWidgetSelectionRange new file mode 100644 index 0000000000000000000000000000000000000000..cfabb4755d52ef1294b35c27d06618576d4826a5 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTableWidgetSelectionRange @@ -0,0 +1 @@ +#include "qtablewidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTapAndHoldGesture b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTapAndHoldGesture new file mode 100644 index 0000000000000000000000000000000000000000..3869960f84c52a42181823895d443a1fcd2e033d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTapAndHoldGesture @@ -0,0 +1 @@ +#include "qgesture.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTapGesture b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTapGesture new file mode 100644 index 0000000000000000000000000000000000000000..3869960f84c52a42181823895d443a1fcd2e033d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTapGesture @@ -0,0 +1 @@ +#include "qgesture.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTextBrowser b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTextBrowser new file mode 100644 index 0000000000000000000000000000000000000000..955a806d75cb24d60adddb812b0506cf989519dd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTextBrowser @@ -0,0 +1 @@ +#include "qtextbrowser.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTextEdit b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTextEdit new file mode 100644 index 0000000000000000000000000000000000000000..53a5994366a7964b41b5d8716807ce9310d81b5e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTextEdit @@ -0,0 +1 @@ +#include "qtextedit.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTileRules b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTileRules new file mode 100644 index 0000000000000000000000000000000000000000..63a7a5fa41647baf45e9aa3b3414291b5166eeab --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTileRules @@ -0,0 +1 @@ +#include "qdrawutil.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTimeEdit b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTimeEdit new file mode 100644 index 0000000000000000000000000000000000000000..f8b7b173ea4aec7ef1669c20e6f83af0a9616f1c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTimeEdit @@ -0,0 +1 @@ +#include "qdatetimeedit.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolBar b/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolBar new file mode 100644 index 0000000000000000000000000000000000000000..6451279c44c5aa1487ee52107aaede016c39c788 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolBar @@ -0,0 +1 @@ +#include "qtoolbar.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolBox b/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolBox new file mode 100644 index 0000000000000000000000000000000000000000..68e2e973afaf5cf68ccc42d045c882288e1f58dc --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolBox @@ -0,0 +1 @@ +#include "qtoolbox.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolButton b/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolButton new file mode 100644 index 0000000000000000000000000000000000000000..713312612134d7ecb9e299ac30f325e4971eb450 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolButton @@ -0,0 +1 @@ +#include "qtoolbutton.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolTip b/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolTip new file mode 100644 index 0000000000000000000000000000000000000000..72a47b1748df131f4e65dd7155fc5ea0d2b1a41b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QToolTip @@ -0,0 +1 @@ +#include "qtooltip.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeView b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeView new file mode 100644 index 0000000000000000000000000000000000000000..266672ba5cbff2351fecb8cdaeda0afdbf43838a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeView @@ -0,0 +1 @@ +#include "qtreeview.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeWidget new file mode 100644 index 0000000000000000000000000000000000000000..370a3964de359600f5317e47df361054f3ead5a0 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeWidget @@ -0,0 +1 @@ +#include "qtreewidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeWidgetItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeWidgetItem new file mode 100644 index 0000000000000000000000000000000000000000..370a3964de359600f5317e47df361054f3ead5a0 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeWidgetItem @@ -0,0 +1 @@ +#include "qtreewidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeWidgetItemIterator b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeWidgetItemIterator new file mode 100644 index 0000000000000000000000000000000000000000..fc5bffb10cfcd235fffd5630ba2ab73889ce97ac --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QTreeWidgetItemIterator @@ -0,0 +1 @@ +#include "qtreewidgetitemiterator.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QUndoView b/qt/6.8.1/msvc2022_64/include/QtWidgets/QUndoView new file mode 100644 index 0000000000000000000000000000000000000000..6b0c70ab52f196abacf02bc13323c3b73f44986e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QUndoView @@ -0,0 +1 @@ +#include "qundoview.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QVBoxLayout b/qt/6.8.1/msvc2022_64/include/QtWidgets/QVBoxLayout new file mode 100644 index 0000000000000000000000000000000000000000..dc0a6171c159633c3a9547f0a2cefa33f40fe35b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QVBoxLayout @@ -0,0 +1 @@ +#include "qboxlayout.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QWhatsThis b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWhatsThis new file mode 100644 index 0000000000000000000000000000000000000000..19202d39cea98fdb0bdb14d3a5654e81ada9e732 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWhatsThis @@ -0,0 +1 @@ +#include "qwhatsthis.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidget b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidget new file mode 100644 index 0000000000000000000000000000000000000000..b2262136f1579bf256f87ac6acb832a2ddd99bc7 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidget @@ -0,0 +1 @@ +#include "qwidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetAction b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetAction new file mode 100644 index 0000000000000000000000000000000000000000..c29c3f5f51f05bad805f763a8e5345174a63f9aa --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetAction @@ -0,0 +1 @@ +#include "qwidgetaction.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetData b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetData new file mode 100644 index 0000000000000000000000000000000000000000..b2262136f1579bf256f87ac6acb832a2ddd99bc7 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetData @@ -0,0 +1 @@ +#include "qwidget.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetItem b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetItem new file mode 100644 index 0000000000000000000000000000000000000000..a66c7e805300aa929b3d09e3e155e3f3a8aff33e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetItem @@ -0,0 +1 @@ +#include "qlayoutitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetItemV2 b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetItemV2 new file mode 100644 index 0000000000000000000000000000000000000000..a66c7e805300aa929b3d09e3e155e3f3a8aff33e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWidgetItemV2 @@ -0,0 +1 @@ +#include "qlayoutitem.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QWizard b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWizard new file mode 100644 index 0000000000000000000000000000000000000000..d1ea869f8aad8bc4d7cd5773039e724eb70cdaee --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWizard @@ -0,0 +1 @@ +#include "qwizard.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QWizardPage b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWizardPage new file mode 100644 index 0000000000000000000000000000000000000000..d1ea869f8aad8bc4d7cd5773039e724eb70cdaee --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QWizardPage @@ -0,0 +1 @@ +#include "qwizard.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QtWidgets b/qt/6.8.1/msvc2022_64/include/QtWidgets/QtWidgets new file mode 100644 index 0000000000000000000000000000000000000000..2614614d7d8e6896356999393390a55ea6bb5d83 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QtWidgets @@ -0,0 +1,306 @@ +#ifndef QT_QTWIDGETS_MODULE_H +#define QT_QTWIDGETS_MODULE_H +#include +#include "qtwidgetsglobal.h" +#if QT_CONFIG(abstractbutton) +#include "qabstractbutton.h" +#endif +#if QT_CONFIG(itemviews) +#include "qabstractitemdelegate.h" +#endif +#if QT_CONFIG(itemviews) +#include "qabstractitemview.h" +#endif +#include "qabstractscrollarea.h" +#if QT_CONFIG(abstractslider) +#include "qabstractslider.h" +#endif +#if QT_CONFIG(spinbox) +#include "qabstractspinbox.h" +#endif +#include "qaccessiblewidget.h" +#include "qaction.h" +#include "qactiongroup.h" +#include "qapplication.h" +#include "qboxlayout.h" +#if QT_CONFIG(buttongroup) +#include "qbuttongroup.h" +#endif +#if QT_CONFIG(calendarwidget) +#include "qcalendarwidget.h" +#endif +#if QT_CONFIG(checkbox) +#include "qcheckbox.h" +#endif +#if QT_CONFIG(colordialog) +#include "qcolordialog.h" +#endif +#include "qcolormap.h" +#if QT_CONFIG(columnview) +#include "qcolumnview.h" +#endif +#if QT_CONFIG(combobox) +#include "qcombobox.h" +#endif +#if QT_CONFIG(commandlinkbutton) +#include "qcommandlinkbutton.h" +#endif +#include "qcommonstyle.h" +#if QT_CONFIG(completer) +#include "qcompleter.h" +#endif +#if QT_CONFIG(datawidgetmapper) +#include "qdatawidgetmapper.h" +#endif +#if QT_CONFIG(datetimeedit) +#include "qdatetimeedit.h" +#endif +#if QT_CONFIG(dial) +#include "qdial.h" +#endif +#if QT_CONFIG(dialog) +#include "qdialog.h" +#endif +#if QT_CONFIG(dialogbuttonbox) +#include "qdialogbuttonbox.h" +#endif +#if QT_CONFIG(dockwidget) +#include "qdockwidget.h" +#endif +#include "qdrawutil.h" +#if QT_CONFIG(errormessage) +#include "qerrormessage.h" +#endif +#if QT_CONFIG(filedialog) +#include "qfiledialog.h" +#endif +#include "qfileiconprovider.h" +#include "qfilesystemmodel.h" +#include "qfocusframe.h" +#if QT_CONFIG(fontcombobox) +#include "qfontcombobox.h" +#endif +#if QT_CONFIG(fontdialog) +#include "qfontdialog.h" +#endif +#if QT_CONFIG(formlayout) +#include "qformlayout.h" +#endif +#include "qframe.h" +#include "qgesture.h" +#include "qgesturerecognizer.h" +#if QT_CONFIG(graphicsview) +#include "qgraphicsanchorlayout.h" +#endif +#if QT_CONFIG(graphicseffect) +#include "qgraphicseffect.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicsgridlayout.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicsitem.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicsitemanimation.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicslayout.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicslayoutitem.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicslinearlayout.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicsproxywidget.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicsscene.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicssceneevent.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicstransform.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicsview.h" +#endif +#if QT_CONFIG(graphicsview) +#include "qgraphicswidget.h" +#endif +#include "qgridlayout.h" +#if QT_CONFIG(groupbox) +#include "qgroupbox.h" +#endif +#if QT_CONFIG(itemviews) +#include "qheaderview.h" +#endif +#if QT_CONFIG(inputdialog) +#include "qinputdialog.h" +#endif +#if QT_CONFIG(itemviews) +#include "qitemdelegate.h" +#endif +#if QT_CONFIG(itemviews) +#include "qitemeditorfactory.h" +#endif +#if QT_CONFIG(keysequenceedit) +#include "qkeysequenceedit.h" +#endif +#if QT_CONFIG(label) +#include "qlabel.h" +#endif +#include "qlayout.h" +#include "qlayoutitem.h" +#if QT_CONFIG(lcdnumber) +#include "qlcdnumber.h" +#endif +#if QT_CONFIG(lineedit) +#include "qlineedit.h" +#endif +#if QT_CONFIG(listview) +#include "qlistview.h" +#endif +#if QT_CONFIG(listwidget) +#include "qlistwidget.h" +#endif +#if QT_CONFIG(mainwindow) +#include "qmainwindow.h" +#endif +#if QT_CONFIG(mdiarea) +#include "qmdiarea.h" +#endif +#if QT_CONFIG(mdiarea) +#include "qmdisubwindow.h" +#endif +#if QT_CONFIG(menu) +#include "qmenu.h" +#endif +#if QT_CONFIG(menubar) +#include "qmenubar.h" +#endif +#if QT_CONFIG(messagebox) +#include "qmessagebox.h" +#endif +#if QT_CONFIG(textedit) +#include "qplaintextedit.h" +#endif +#if QT_CONFIG(progressbar) +#include "qprogressbar.h" +#endif +#if QT_CONFIG(progressdialog) +#include "qprogressdialog.h" +#endif +#include "qproxystyle.h" +#if QT_CONFIG(pushbutton) +#include "qpushbutton.h" +#endif +#if QT_CONFIG(radiobutton) +#include "qradiobutton.h" +#endif +#include "qrhiwidget.h" +#if QT_CONFIG(rubberband) +#include "qrubberband.h" +#endif +#if QT_CONFIG(scrollarea) +#include "qscrollarea.h" +#endif +#if QT_CONFIG(scrollbar) +#include "qscrollbar.h" +#endif +#if QT_CONFIG(scroller) +#include "qscroller.h" +#endif +#if QT_CONFIG(scroller) +#include "qscrollerproperties.h" +#endif +#include "qshortcut.h" +#if QT_CONFIG(sizegrip) +#include "qsizegrip.h" +#endif +#include "qsizepolicy.h" +#if QT_CONFIG(slider) +#include "qslider.h" +#endif +#if QT_CONFIG(spinbox) +#include "qspinbox.h" +#endif +#if QT_CONFIG(splashscreen) +#include "qsplashscreen.h" +#endif +#if QT_CONFIG(splitter) +#include "qsplitter.h" +#endif +#include "qstackedlayout.h" +#if QT_CONFIG(stackedwidget) +#include "qstackedwidget.h" +#endif +#if QT_CONFIG(statusbar) +#include "qstatusbar.h" +#endif +#include "qstyle.h" +#if QT_CONFIG(itemviews) +#include "qstyleditemdelegate.h" +#endif +#include "qstylefactory.h" +#include "qstyleoption.h" +#include "qstylepainter.h" +#include "qstyleplugin.h" +#include "qsystemtrayicon.h" +#if QT_CONFIG(tabbar) +#include "qtabbar.h" +#endif +#if QT_CONFIG(tableview) +#include "qtableview.h" +#endif +#if QT_CONFIG(tablewidget) +#include "qtablewidget.h" +#endif +#if QT_CONFIG(tabwidget) +#include "qtabwidget.h" +#endif +#if QT_CONFIG(textbrowser) +#include "qtextbrowser.h" +#endif +#if QT_CONFIG(textedit) +#include "qtextedit.h" +#endif +#if QT_CONFIG(toolbar) +#include "qtoolbar.h" +#endif +#if QT_CONFIG(toolbox) +#include "qtoolbox.h" +#endif +#if QT_CONFIG(toolbutton) +#include "qtoolbutton.h" +#endif +#if QT_CONFIG(tooltip) +#include "qtooltip.h" +#endif +#if QT_CONFIG(treeview) +#include "qtreeview.h" +#endif +#if QT_CONFIG(treewidget) +#include "qtreewidget.h" +#endif +#if QT_CONFIG(treewidget) +#include "qtreewidgetitemiterator.h" +#endif +#include "qtwidgetsversion.h" +#if QT_CONFIG(undoview) +#include "qundoview.h" +#endif +#if QT_CONFIG(whatsthis) +#include "qwhatsthis.h" +#endif +#include "qwidget.h" +#if QT_CONFIG(action) +#include "qwidgetaction.h" +#endif +#if QT_CONFIG(wizard) +#include "qwizard.h" +#endif +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QtWidgetsDepends b/qt/6.8.1/msvc2022_64/include/QtWidgets/QtWidgetsDepends new file mode 100644 index 0000000000000000000000000000000000000000..352aaa3024e3205baf50cd2a9b2dcfa9b3c1beb7 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QtWidgetsDepends @@ -0,0 +1,5 @@ +/* This file was generated by cmake with the info from Widgets target. */ +#ifdef __cplusplus /* create empty PCH in C mode */ +# include +# include +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/QtWidgetsVersion b/qt/6.8.1/msvc2022_64/include/QtWidgets/QtWidgetsVersion new file mode 100644 index 0000000000000000000000000000000000000000..a416a41e81e89cd551163094a86a4a7c66ab7f1b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/QtWidgetsVersion @@ -0,0 +1 @@ +#include "qtwidgetsversion.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractbutton.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractbutton.h new file mode 100644 index 0000000000000000000000000000000000000000..5b9b777f8a2a327c87375a90776596d5842741d8 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractbutton.h @@ -0,0 +1,123 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTBUTTON_H +#define QABSTRACTBUTTON_H + +#include +#include +#if QT_CONFIG(shortcut) +# include +#endif +#include + +QT_REQUIRE_CONFIG(abstractbutton); + +QT_BEGIN_NAMESPACE + + +class QButtonGroup; +class QAbstractButtonPrivate; + +class Q_WIDGETS_EXPORT QAbstractButton : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(QString text READ text WRITE setText) + Q_PROPERTY(QIcon icon READ icon WRITE setIcon) + Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize) +#ifndef QT_NO_SHORTCUT + Q_PROPERTY(QKeySequence shortcut READ shortcut WRITE setShortcut) +#endif + Q_PROPERTY(bool checkable READ isCheckable WRITE setCheckable) + Q_PROPERTY(bool checked READ isChecked WRITE setChecked NOTIFY toggled USER true) + Q_PROPERTY(bool autoRepeat READ autoRepeat WRITE setAutoRepeat) + Q_PROPERTY(bool autoExclusive READ autoExclusive WRITE setAutoExclusive) + Q_PROPERTY(int autoRepeatDelay READ autoRepeatDelay WRITE setAutoRepeatDelay) + Q_PROPERTY(int autoRepeatInterval READ autoRepeatInterval WRITE setAutoRepeatInterval) + Q_PROPERTY(bool down READ isDown WRITE setDown DESIGNABLE false) + +public: + explicit QAbstractButton(QWidget *parent = nullptr); + ~QAbstractButton(); + + void setText(const QString &text); + QString text() const; + + void setIcon(const QIcon &icon); + QIcon icon() const; + + QSize iconSize() const; + +#ifndef QT_NO_SHORTCUT + void setShortcut(const QKeySequence &key); + QKeySequence shortcut() const; +#endif + + void setCheckable(bool); + bool isCheckable() const; + + bool isChecked() const; + + void setDown(bool); + bool isDown() const; + + void setAutoRepeat(bool); + bool autoRepeat() const; + + void setAutoRepeatDelay(int); + int autoRepeatDelay() const; + + void setAutoRepeatInterval(int); + int autoRepeatInterval() const; + + void setAutoExclusive(bool); + bool autoExclusive() const; + +#if QT_CONFIG(buttongroup) + QButtonGroup *group() const; +#endif + +public Q_SLOTS: + void setIconSize(const QSize &size); + void animateClick(); + void click(); + void toggle(); + void setChecked(bool); + +Q_SIGNALS: + void pressed(); + void released(); + void clicked(bool checked = false); + void toggled(bool checked); + +protected: + void paintEvent(QPaintEvent *e) override = 0; + virtual bool hitButton(const QPoint &pos) const; + virtual void checkStateSet(); + virtual void nextCheckState(); + + bool event(QEvent *e) override; + void keyPressEvent(QKeyEvent *e) override; + void keyReleaseEvent(QKeyEvent *e) override; + void mousePressEvent(QMouseEvent *e) override; + void mouseReleaseEvent(QMouseEvent *e) override; + void mouseMoveEvent(QMouseEvent *e) override; + void focusInEvent(QFocusEvent *e) override; + void focusOutEvent(QFocusEvent *e) override; + void changeEvent(QEvent *e) override; + void timerEvent(QTimerEvent *e) override; + + +protected: + QAbstractButton(QAbstractButtonPrivate &dd, QWidget* parent = nullptr); + +private: + Q_DECLARE_PRIVATE(QAbstractButton) + Q_DISABLE_COPY(QAbstractButton) + friend class QButtonGroup; +}; + +QT_END_NAMESPACE + +#endif // QABSTRACTBUTTON_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractitemdelegate.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractitemdelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..afaf6c17f5bf27f2fd1897cbe34c919466697677 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractitemdelegate.h @@ -0,0 +1,92 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTITEMDELEGATE_H +#define QABSTRACTITEMDELEGATE_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(itemviews); + +QT_BEGIN_NAMESPACE + +class QPainter; +class QModelIndex; +class QAbstractItemModel; +class QAbstractItemView; +class QHelpEvent; +class QAbstractItemDelegatePrivate; + +class Q_WIDGETS_EXPORT QAbstractItemDelegate : public QObject +{ + Q_OBJECT + +public: + + enum EndEditHint { + NoHint, + EditNextItem, + EditPreviousItem, + SubmitModelCache, + RevertModelCache + }; + + explicit QAbstractItemDelegate(QObject *parent = nullptr); + virtual ~QAbstractItemDelegate(); + + // painting + virtual void paint(QPainter *painter, + const QStyleOptionViewItem &option, + const QModelIndex &index) const = 0; + + virtual QSize sizeHint(const QStyleOptionViewItem &option, + const QModelIndex &index) const = 0; + + // editing + virtual QWidget *createEditor(QWidget *parent, + const QStyleOptionViewItem &option, + const QModelIndex &index) const; + + virtual void destroyEditor(QWidget *editor, const QModelIndex &index) const; + + virtual void setEditorData(QWidget *editor, const QModelIndex &index) const; + + virtual void setModelData(QWidget *editor, + QAbstractItemModel *model, + const QModelIndex &index) const; + + virtual void updateEditorGeometry(QWidget *editor, + const QStyleOptionViewItem &option, + const QModelIndex &index) const; + + // for non-widget editors + virtual bool editorEvent(QEvent *event, + QAbstractItemModel *model, + const QStyleOptionViewItem &option, + const QModelIndex &index); + + virtual bool helpEvent(QHelpEvent *event, + QAbstractItemView *view, + const QStyleOptionViewItem &option, + const QModelIndex &index); + + virtual QList paintingRoles() const; + +Q_SIGNALS: + void commitData(QWidget *editor); + void closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint = NoHint); + void sizeHintChanged(const QModelIndex &); + +protected: + QAbstractItemDelegate(QObjectPrivate &, QObject *parent = nullptr); +private: + Q_DECLARE_PRIVATE(QAbstractItemDelegate) + Q_DISABLE_COPY(QAbstractItemDelegate) + Q_PRIVATE_SLOT(d_func(), void _q_commitDataAndCloseEditor(QWidget*)) +}; + +QT_END_NAMESPACE + +#endif // QABSTRACTITEMDELEGATE_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractitemview.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractitemview.h new file mode 100644 index 0000000000000000000000000000000000000000..4442948d800119a42053ea922044ca1ffcc702d6 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractitemview.h @@ -0,0 +1,342 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTITEMVIEW_H +#define QABSTRACTITEMVIEW_H + +#include +#include +#include +#include +#include + +class tst_QAbstractItemView; +class tst_QTreeView; + +QT_REQUIRE_CONFIG(itemviews); + +QT_BEGIN_NAMESPACE + +class QMenu; +class QDrag; +class QEvent; +class QAbstractItemViewPrivate; + +class Q_WIDGETS_EXPORT QAbstractItemView : public QAbstractScrollArea +{ + Q_OBJECT + Q_PROPERTY(bool autoScroll READ hasAutoScroll WRITE setAutoScroll) + Q_PROPERTY(int autoScrollMargin READ autoScrollMargin WRITE setAutoScrollMargin) + Q_PROPERTY(EditTriggers editTriggers READ editTriggers WRITE setEditTriggers) + Q_PROPERTY(bool tabKeyNavigation READ tabKeyNavigation WRITE setTabKeyNavigation) +#if QT_CONFIG(draganddrop) + Q_PROPERTY(bool showDropIndicator READ showDropIndicator WRITE setDropIndicatorShown) + Q_PROPERTY(bool dragEnabled READ dragEnabled WRITE setDragEnabled) + Q_PROPERTY(bool dragDropOverwriteMode READ dragDropOverwriteMode WRITE setDragDropOverwriteMode) + Q_PROPERTY(DragDropMode dragDropMode READ dragDropMode WRITE setDragDropMode) + Q_PROPERTY(Qt::DropAction defaultDropAction READ defaultDropAction WRITE setDefaultDropAction) +#endif + Q_PROPERTY(bool alternatingRowColors READ alternatingRowColors WRITE setAlternatingRowColors) + Q_PROPERTY(SelectionMode selectionMode READ selectionMode WRITE setSelectionMode) + Q_PROPERTY(SelectionBehavior selectionBehavior READ selectionBehavior + WRITE setSelectionBehavior) + Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize NOTIFY iconSizeChanged) + Q_PROPERTY(Qt::TextElideMode textElideMode READ textElideMode WRITE setTextElideMode) + Q_PROPERTY(ScrollMode verticalScrollMode READ verticalScrollMode WRITE setVerticalScrollMode + RESET resetVerticalScrollMode) + Q_PROPERTY(ScrollMode horizontalScrollMode READ horizontalScrollMode + WRITE setHorizontalScrollMode RESET resetHorizontalScrollMode) + +public: + enum SelectionMode { + NoSelection, + SingleSelection, + MultiSelection, + ExtendedSelection, + ContiguousSelection + }; + Q_ENUM(SelectionMode) + + enum SelectionBehavior { + SelectItems, + SelectRows, + SelectColumns + }; + Q_ENUM(SelectionBehavior) + + enum ScrollHint { + EnsureVisible, + PositionAtTop, + PositionAtBottom, + PositionAtCenter + }; + Q_ENUM(ScrollHint) + + enum EditTrigger { + NoEditTriggers = 0, + CurrentChanged = 1, + DoubleClicked = 2, + SelectedClicked = 4, + EditKeyPressed = 8, + AnyKeyPressed = 16, + AllEditTriggers = 31 + }; + + Q_DECLARE_FLAGS(EditTriggers, EditTrigger) + Q_FLAG(EditTriggers) + + enum ScrollMode { + ScrollPerItem, + ScrollPerPixel + }; + Q_ENUM(ScrollMode) + + explicit QAbstractItemView(QWidget *parent = nullptr); + ~QAbstractItemView(); + + virtual void setModel(QAbstractItemModel *model); + QAbstractItemModel *model() const; + + virtual void setSelectionModel(QItemSelectionModel *selectionModel); + QItemSelectionModel *selectionModel() const; + + void setItemDelegate(QAbstractItemDelegate *delegate); + QAbstractItemDelegate *itemDelegate() const; + + void setSelectionMode(QAbstractItemView::SelectionMode mode); + QAbstractItemView::SelectionMode selectionMode() const; + + void setSelectionBehavior(QAbstractItemView::SelectionBehavior behavior); + QAbstractItemView::SelectionBehavior selectionBehavior() const; + + QModelIndex currentIndex() const; + QModelIndex rootIndex() const; + + void setEditTriggers(EditTriggers triggers); + EditTriggers editTriggers() const; + + void setVerticalScrollMode(ScrollMode mode); + ScrollMode verticalScrollMode() const; + void resetVerticalScrollMode(); + + void setHorizontalScrollMode(ScrollMode mode); + ScrollMode horizontalScrollMode() const; + void resetHorizontalScrollMode(); + + void setAutoScroll(bool enable); + bool hasAutoScroll() const; + + void setAutoScrollMargin(int margin); + int autoScrollMargin() const; + + void setTabKeyNavigation(bool enable); + bool tabKeyNavigation() const; + +#if QT_CONFIG(draganddrop) + void setDropIndicatorShown(bool enable); + bool showDropIndicator() const; + + void setDragEnabled(bool enable); + bool dragEnabled() const; + + void setDragDropOverwriteMode(bool overwrite); + bool dragDropOverwriteMode() const; + + enum DragDropMode { + NoDragDrop, + DragOnly, + DropOnly, + DragDrop, + InternalMove + }; + Q_ENUM(DragDropMode) + + void setDragDropMode(DragDropMode behavior); + DragDropMode dragDropMode() const; + + void setDefaultDropAction(Qt::DropAction dropAction); + Qt::DropAction defaultDropAction() const; +#endif + + void setAlternatingRowColors(bool enable); + bool alternatingRowColors() const; + + void setIconSize(const QSize &size); + QSize iconSize() const; + + void setTextElideMode(Qt::TextElideMode mode); + Qt::TextElideMode textElideMode() const; + + virtual void keyboardSearch(const QString &search); + + virtual QRect visualRect(const QModelIndex &index) const = 0; + virtual void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible) = 0; + virtual QModelIndex indexAt(const QPoint &point) const = 0; + + QSize sizeHintForIndex(const QModelIndex &index) const; + virtual int sizeHintForRow(int row) const; + virtual int sizeHintForColumn(int column) const; + + void openPersistentEditor(const QModelIndex &index); + void closePersistentEditor(const QModelIndex &index); + bool isPersistentEditorOpen(const QModelIndex &index) const; + + void setIndexWidget(const QModelIndex &index, QWidget *widget); + QWidget *indexWidget(const QModelIndex &index) const; + + void setItemDelegateForRow(int row, QAbstractItemDelegate *delegate); + QAbstractItemDelegate *itemDelegateForRow(int row) const; + + void setItemDelegateForColumn(int column, QAbstractItemDelegate *delegate); + QAbstractItemDelegate *itemDelegateForColumn(int column) const; + +#if QT_DEPRECATED_SINCE(6, 0) + QT_DEPRECATED_VERSION_X_6_0("Use itemDelegateForIndex instead") + QAbstractItemDelegate *itemDelegate(const QModelIndex &index) const + { return itemDelegateForIndex(index); } +#endif + virtual QAbstractItemDelegate *itemDelegateForIndex(const QModelIndex &index) const; + + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const override; + + using QAbstractScrollArea::update; + +public Q_SLOTS: + virtual void reset(); + virtual void setRootIndex(const QModelIndex &index); + virtual void doItemsLayout(); + virtual void selectAll(); + void edit(const QModelIndex &index); + void clearSelection(); + void setCurrentIndex(const QModelIndex &index); + void scrollToTop(); + void scrollToBottom(); + void update(const QModelIndex &index); + +protected Q_SLOTS: + virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, + const QList &roles = QList()); + virtual void rowsInserted(const QModelIndex &parent, int start, int end); + virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end); + virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected); + virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); + virtual void updateEditorData(); + virtual void updateEditorGeometries(); + virtual void updateGeometries(); + virtual void verticalScrollbarAction(int action); + virtual void horizontalScrollbarAction(int action); + virtual void verticalScrollbarValueChanged(int value); + virtual void horizontalScrollbarValueChanged(int value); + virtual void closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint); + virtual void commitData(QWidget *editor); + virtual void editorDestroyed(QObject *editor); + +Q_SIGNALS: + void pressed(const QModelIndex &index); + void clicked(const QModelIndex &index); + void doubleClicked(const QModelIndex &index); + + void activated(const QModelIndex &index); + void entered(const QModelIndex &index); + void viewportEntered(); + + void iconSizeChanged(const QSize &size); + +protected: + QAbstractItemView(QAbstractItemViewPrivate &, QWidget *parent = nullptr); + + enum CursorAction { MoveUp, MoveDown, MoveLeft, MoveRight, + MoveHome, MoveEnd, MovePageUp, MovePageDown, + MoveNext, MovePrevious }; + virtual QModelIndex moveCursor(CursorAction cursorAction, + Qt::KeyboardModifiers modifiers) = 0; + + virtual int horizontalOffset() const = 0; + virtual int verticalOffset() const = 0; + + virtual bool isIndexHidden(const QModelIndex &index) const = 0; + + virtual void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command) = 0; + virtual QRegion visualRegionForSelection(const QItemSelection &selection) const = 0; + virtual QModelIndexList selectedIndexes() const; + + virtual bool edit(const QModelIndex &index, EditTrigger trigger, QEvent *event); + + virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex &index, + const QEvent *event = nullptr) const; + +#if QT_CONFIG(draganddrop) + virtual void startDrag(Qt::DropActions supportedActions); +#endif + + virtual void initViewItemOption(QStyleOptionViewItem *option) const; + + enum State { + NoState, + DraggingState, + DragSelectingState, + EditingState, + ExpandingState, + CollapsingState, + AnimatingState + }; + + State state() const; + void setState(State state); + + void scheduleDelayedItemsLayout(); + void executeDelayedItemsLayout(); + + void setDirtyRegion(const QRegion ®ion); + void scrollDirtyRegion(int dx, int dy); + QPoint dirtyRegionOffset() const; + + void startAutoScroll(); + void stopAutoScroll(); + void doAutoScroll(); + + bool focusNextPrevChild(bool next) override; + bool event(QEvent *event) override; + bool viewportEvent(QEvent *event) override; + void mousePressEvent(QMouseEvent *event) override; + void mouseMoveEvent(QMouseEvent *event) override; + void mouseReleaseEvent(QMouseEvent *event) override; + void mouseDoubleClickEvent(QMouseEvent *event) override; +#if QT_CONFIG(draganddrop) + void dragEnterEvent(QDragEnterEvent *event) override; + void dragMoveEvent(QDragMoveEvent *event) override; + void dragLeaveEvent(QDragLeaveEvent *event) override; + void dropEvent(QDropEvent *event) override; +#endif + void focusInEvent(QFocusEvent *event) override; + void focusOutEvent(QFocusEvent *event) override; + void keyPressEvent(QKeyEvent *event) override; + void resizeEvent(QResizeEvent *event) override; + void timerEvent(QTimerEvent *event) override; + void inputMethodEvent(QInputMethodEvent *event) override; + bool eventFilter(QObject *object, QEvent *event) override; + +#if QT_CONFIG(draganddrop) + enum DropIndicatorPosition { OnItem, AboveItem, BelowItem, OnViewport }; + DropIndicatorPosition dropIndicatorPosition() const; +#endif + + QSize viewportSizeHint() const override; + +private: + Q_DECLARE_PRIVATE(QAbstractItemView) + Q_DISABLE_COPY(QAbstractItemView) + + friend class ::tst_QAbstractItemView; + friend class ::tst_QTreeView; + friend class QTreeViewPrivate; // needed to compile with MSVC + friend class QListModeViewBase; + friend class QListViewPrivate; + friend class QAbstractSlider; +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QAbstractItemView::EditTriggers) + +QT_END_NAMESPACE + +#endif // QABSTRACTITEMVIEW_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractscrollarea.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractscrollarea.h new file mode 100644 index 0000000000000000000000000000000000000000..53da33e5d33f649330d134eeea5580dec6d8a674 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractscrollarea.h @@ -0,0 +1,119 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTSCROLLAREA_H +#define QABSTRACTSCROLLAREA_H + +#include +#include + +QT_BEGIN_NAMESPACE + + +#if QT_CONFIG(scrollarea) + +class QMargins; +class QScrollBar; +class QAbstractScrollAreaPrivate; + +class Q_WIDGETS_EXPORT QAbstractScrollArea : public QFrame +{ + Q_OBJECT + + Q_PROPERTY(Qt::ScrollBarPolicy verticalScrollBarPolicy READ verticalScrollBarPolicy + WRITE setVerticalScrollBarPolicy) + Q_PROPERTY(Qt::ScrollBarPolicy horizontalScrollBarPolicy READ horizontalScrollBarPolicy + WRITE setHorizontalScrollBarPolicy) + Q_PROPERTY(SizeAdjustPolicy sizeAdjustPolicy READ sizeAdjustPolicy WRITE setSizeAdjustPolicy) + +public: + explicit QAbstractScrollArea(QWidget *parent = nullptr); + ~QAbstractScrollArea(); + + enum SizeAdjustPolicy { + AdjustIgnored, + AdjustToContentsOnFirstShow, + AdjustToContents + }; + Q_ENUM(SizeAdjustPolicy) + + Qt::ScrollBarPolicy verticalScrollBarPolicy() const; + void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy); + QScrollBar *verticalScrollBar() const; + void setVerticalScrollBar(QScrollBar *scrollbar); + + Qt::ScrollBarPolicy horizontalScrollBarPolicy() const; + void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy); + QScrollBar *horizontalScrollBar() const; + void setHorizontalScrollBar(QScrollBar *scrollbar); + + QWidget *cornerWidget() const; + void setCornerWidget(QWidget *widget); + + void addScrollBarWidget(QWidget *widget, Qt::Alignment alignment); + QWidgetList scrollBarWidgets(Qt::Alignment alignment); + + QWidget *viewport() const; + void setViewport(QWidget *widget); + QSize maximumViewportSize() const; + + QSize minimumSizeHint() const override; + + QSize sizeHint() const override; + + virtual void setupViewport(QWidget *viewport); + + SizeAdjustPolicy sizeAdjustPolicy() const; + void setSizeAdjustPolicy(SizeAdjustPolicy policy); + +protected: + QAbstractScrollArea(QAbstractScrollAreaPrivate &dd, QWidget *parent = nullptr); + void setViewportMargins(int left, int top, int right, int bottom); + void setViewportMargins(const QMargins &margins); + QMargins viewportMargins() const; + + bool eventFilter(QObject *, QEvent *) override; + bool event(QEvent *) override; + virtual bool viewportEvent(QEvent *); + + void resizeEvent(QResizeEvent *) override; + void paintEvent(QPaintEvent *) override; + void mousePressEvent(QMouseEvent *) override; + void mouseReleaseEvent(QMouseEvent *) override; + void mouseDoubleClickEvent(QMouseEvent *) override; + void mouseMoveEvent(QMouseEvent *) override; +#if QT_CONFIG(wheelevent) + void wheelEvent(QWheelEvent *) override; +#endif +#ifndef QT_NO_CONTEXTMENU + void contextMenuEvent(QContextMenuEvent *) override; +#endif +#if QT_CONFIG(draganddrop) + void dragEnterEvent(QDragEnterEvent *) override; + void dragMoveEvent(QDragMoveEvent *) override; + void dragLeaveEvent(QDragLeaveEvent *) override; + void dropEvent(QDropEvent *) override; +#endif + + void keyPressEvent(QKeyEvent *) override; + + virtual void scrollContentsBy(int dx, int dy); + + virtual QSize viewportSizeHint() const; + +private: + Q_DECLARE_PRIVATE(QAbstractScrollArea) + Q_DISABLE_COPY(QAbstractScrollArea) + Q_PRIVATE_SLOT(d_func(), void _q_hslide(int)) + Q_PRIVATE_SLOT(d_func(), void _q_vslide(int)) + Q_PRIVATE_SLOT(d_func(), void _q_showOrHideScrollBars()) + + friend class QStyleSheetStyle; + friend class QWidgetPrivate; +}; + +#endif // QT_CONFIG(scrollarea) + +QT_END_NAMESPACE + +#endif // QABSTRACTSCROLLAREA_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractslider.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractslider.h new file mode 100644 index 0000000000000000000000000000000000000000..3468f3b2b9940e0d44a52ab3ebe279554cfc79cb --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractslider.h @@ -0,0 +1,129 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTSLIDER_H +#define QABSTRACTSLIDER_H + +#include +#include + +QT_REQUIRE_CONFIG(abstractslider); + +QT_BEGIN_NAMESPACE + + +class QAbstractSliderPrivate; + +class Q_WIDGETS_EXPORT QAbstractSlider : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(int minimum READ minimum WRITE setMinimum) + Q_PROPERTY(int maximum READ maximum WRITE setMaximum) + Q_PROPERTY(int singleStep READ singleStep WRITE setSingleStep) + Q_PROPERTY(int pageStep READ pageStep WRITE setPageStep) + Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged USER true) + Q_PROPERTY(int sliderPosition READ sliderPosition WRITE setSliderPosition NOTIFY sliderMoved) + Q_PROPERTY(bool tracking READ hasTracking WRITE setTracking) + Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation) + Q_PROPERTY(bool invertedAppearance READ invertedAppearance WRITE setInvertedAppearance) + Q_PROPERTY(bool invertedControls READ invertedControls WRITE setInvertedControls) + Q_PROPERTY(bool sliderDown READ isSliderDown WRITE setSliderDown DESIGNABLE false) + +public: + explicit QAbstractSlider(QWidget *parent = nullptr); + ~QAbstractSlider(); + + Qt::Orientation orientation() const; + + void setMinimum(int); + int minimum() const; + + void setMaximum(int); + int maximum() const; + + void setSingleStep(int); + int singleStep() const; + + void setPageStep(int); + int pageStep() const; + + void setTracking(bool enable); + bool hasTracking() const; + + void setSliderDown(bool); + bool isSliderDown() const; + + void setSliderPosition(int); + int sliderPosition() const; + + void setInvertedAppearance(bool); + bool invertedAppearance() const; + + void setInvertedControls(bool); + bool invertedControls() const; + + enum SliderAction { + SliderNoAction, + SliderSingleStepAdd, + SliderSingleStepSub, + SliderPageStepAdd, + SliderPageStepSub, + SliderToMinimum, + SliderToMaximum, + SliderMove + }; + + int value() const; + + void triggerAction(SliderAction action); + +public Q_SLOTS: + void setValue(int); + void setOrientation(Qt::Orientation); + void setRange(int min, int max); + +Q_SIGNALS: + void valueChanged(int value); + + void sliderPressed(); + void sliderMoved(int position); + void sliderReleased(); + + void rangeChanged(int min, int max); + + void actionTriggered(int action); + +protected: + bool event(QEvent *e) override; + + void setRepeatAction(SliderAction action, int thresholdTime = 500, int repeatTime = 50); + SliderAction repeatAction() const; + + enum SliderChange { + SliderRangeChange, + SliderOrientationChange, + SliderStepsChange, + SliderValueChange + }; + virtual void sliderChange(SliderChange change); + + void keyPressEvent(QKeyEvent *ev) override; + void timerEvent(QTimerEvent *) override; +#if QT_CONFIG(wheelevent) + void wheelEvent(QWheelEvent *e) override; +#endif + void changeEvent(QEvent *e) override; + + +protected: + QAbstractSlider(QAbstractSliderPrivate &dd, QWidget *parent = nullptr); + +private: + Q_DISABLE_COPY(QAbstractSlider) + Q_DECLARE_PRIVATE(QAbstractSlider) +}; + +QT_END_NAMESPACE + +#endif // QABSTRACTSLIDER_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractspinbox.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractspinbox.h new file mode 100644 index 0000000000000000000000000000000000000000..93f3bfa2dcec0931bc5f2905a5af79d392de2fd2 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qabstractspinbox.h @@ -0,0 +1,147 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QABSTRACTSPINBOX_H +#define QABSTRACTSPINBOX_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(spinbox); + +QT_BEGIN_NAMESPACE + +class QLineEdit; + +class QAbstractSpinBoxPrivate; +class QStyleOptionSpinBox; + +class Q_WIDGETS_EXPORT QAbstractSpinBox : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(bool wrapping READ wrapping WRITE setWrapping) + Q_PROPERTY(bool frame READ hasFrame WRITE setFrame) + Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment) + Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly) + Q_PROPERTY(ButtonSymbols buttonSymbols READ buttonSymbols WRITE setButtonSymbols) + Q_PROPERTY(QString specialValueText READ specialValueText WRITE setSpecialValueText) + Q_PROPERTY(QString text READ text) + Q_PROPERTY(bool accelerated READ isAccelerated WRITE setAccelerated) + Q_PROPERTY(CorrectionMode correctionMode READ correctionMode WRITE setCorrectionMode) + Q_PROPERTY(bool acceptableInput READ hasAcceptableInput) + Q_PROPERTY(bool keyboardTracking READ keyboardTracking WRITE setKeyboardTracking) + Q_PROPERTY(bool showGroupSeparator READ isGroupSeparatorShown WRITE setGroupSeparatorShown) +public: + explicit QAbstractSpinBox(QWidget *parent = nullptr); + ~QAbstractSpinBox(); + + enum StepEnabledFlag { StepNone = 0x00, StepUpEnabled = 0x01, + StepDownEnabled = 0x02 }; + Q_DECLARE_FLAGS(StepEnabled, StepEnabledFlag) + + enum ButtonSymbols { UpDownArrows, PlusMinus, NoButtons }; + Q_ENUM(ButtonSymbols) + + ButtonSymbols buttonSymbols() const; + void setButtonSymbols(ButtonSymbols bs); + + enum CorrectionMode { CorrectToPreviousValue, CorrectToNearestValue }; + Q_ENUM(CorrectionMode) + + void setCorrectionMode(CorrectionMode cm); + CorrectionMode correctionMode() const; + + bool hasAcceptableInput() const; + QString text() const; + + QString specialValueText() const; + void setSpecialValueText(const QString &txt); + + bool wrapping() const; + void setWrapping(bool w); + + void setReadOnly(bool r); + bool isReadOnly() const; + + void setKeyboardTracking(bool kt); + bool keyboardTracking() const; + + void setAlignment(Qt::Alignment flag); + Qt::Alignment alignment() const; + + void setFrame(bool); + bool hasFrame() const; + + void setAccelerated(bool on); + bool isAccelerated() const; + + void setGroupSeparatorShown(bool shown); + bool isGroupSeparatorShown() const; + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + void interpretText(); + bool event(QEvent *event) override; + + QVariant inputMethodQuery(Qt::InputMethodQuery) const override; + + virtual QValidator::State validate(QString &input, int &pos) const; + virtual void fixup(QString &input) const; + + virtual void stepBy(int steps); + + enum StepType { + DefaultStepType, + AdaptiveDecimalStepType + }; + Q_ENUM(StepType) + +public Q_SLOTS: + void stepUp(); + void stepDown(); + void selectAll(); + virtual void clear(); +protected: + void resizeEvent(QResizeEvent *event) override; + void keyPressEvent(QKeyEvent *event) override; + void keyReleaseEvent(QKeyEvent *event) override; +#if QT_CONFIG(wheelevent) + void wheelEvent(QWheelEvent *event) override; +#endif + void focusInEvent(QFocusEvent *event) override; + void focusOutEvent(QFocusEvent *event) override; +#if QT_CONFIG(contextmenu) + void contextMenuEvent(QContextMenuEvent *event) override; +#endif + void changeEvent(QEvent *event) override; + void closeEvent(QCloseEvent *event) override; + void hideEvent(QHideEvent *event) override; + void mousePressEvent(QMouseEvent *event) override; + void mouseReleaseEvent(QMouseEvent *event) override; + void mouseMoveEvent(QMouseEvent *event) override; + void timerEvent(QTimerEvent *event) override; + void paintEvent(QPaintEvent *event) override; + void showEvent(QShowEvent *event) override; + virtual void initStyleOption(QStyleOptionSpinBox *option) const; + + QLineEdit *lineEdit() const; + void setLineEdit(QLineEdit *edit); + + virtual StepEnabled stepEnabled() const; +Q_SIGNALS: + void editingFinished(); +protected: + QAbstractSpinBox(QAbstractSpinBoxPrivate &dd, QWidget *parent = nullptr); + +private: + Q_DECLARE_PRIVATE(QAbstractSpinBox) + Q_DISABLE_COPY(QAbstractSpinBox) + friend class QAccessibleAbstractSpinBox; +}; +Q_DECLARE_OPERATORS_FOR_FLAGS(QAbstractSpinBox::StepEnabled) + +QT_END_NAMESPACE + +#endif // QABSTRACTSPINBOX_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qaccessiblewidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qaccessiblewidget.h new file mode 100644 index 0000000000000000000000000000000000000000..75de93750671e04de14865ea1eb13572d2e5dce5 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qaccessiblewidget.h @@ -0,0 +1,65 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QACCESSIBLEWIDGET_H +#define QACCESSIBLEWIDGET_H + +#include +#include + +QT_BEGIN_NAMESPACE + + +#if QT_CONFIG(accessibility) + +class QAccessibleWidgetPrivate; + +class Q_WIDGETS_EXPORT QAccessibleWidget : public QAccessibleObject, public QAccessibleActionInterface +{ +public: + explicit QAccessibleWidget(QWidget *o, QAccessible::Role r = QAccessible::Client, const QString& name = QString()); + bool isValid() const override; + + QWindow *window() const override; + int childCount() const override; + int indexOfChild(const QAccessibleInterface *child) const override; + QList> + relations(QAccessible::Relation match = QAccessible::AllRelations) const override; + QAccessibleInterface *focusChild() const override; + + QRect rect() const override; + + QAccessibleInterface *parent() const override; + QAccessibleInterface *child(int index) const override; + + QString text(QAccessible::Text t) const override; + QAccessible::Role role() const override; + QAccessible::State state() const override; + + QColor foregroundColor() const override; + QColor backgroundColor() const override; + + void *interface_cast(QAccessible::InterfaceType t) override; + + // QAccessibleActionInterface + QStringList actionNames() const override; + void doAction(const QString &actionName) override; + QStringList keyBindingsForAction(const QString &actionName) const override; +protected: + ~QAccessibleWidget(); + QWidget *widget() const; + QObject *parentObject() const; + + void addControllingSignal(const QString &signal); + +private: + QAccessibleWidgetPrivate *d; + Q_DISABLE_COPY(QAccessibleWidget) +}; + + +#endif // QT_CONFIG(accessibility) + +QT_END_NAMESPACE + +#endif // QACCESSIBLEWIDGET_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qaction.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qaction.h new file mode 100644 index 0000000000000000000000000000000000000000..86aac36a75a30939919f8901a84a9fbb08ec36f9 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qaction.h @@ -0,0 +1,7 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#include + +QT_BEGIN_NAMESPACE +QT_END_NAMESPACE diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qactiongroup.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qactiongroup.h new file mode 100644 index 0000000000000000000000000000000000000000..666b1edff73740293542a92d0dd54d8a12508090 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qactiongroup.h @@ -0,0 +1,7 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#include + +QT_BEGIN_NAMESPACE +QT_END_NAMESPACE diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qapplication.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qapplication.h new file mode 100644 index 0000000000000000000000000000000000000000..f39f0a2092ff01b1239d1b2c6f26383f06d3c8fe --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qapplication.h @@ -0,0 +1,172 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QAPPLICATION_H +#define QAPPLICATION_H + +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + + +class QStyle; +class QEventLoop; +class QIcon; +class QLocale; +class QPlatformNativeInterface; + +class QApplication; +class QApplicationPrivate; +#if defined(qApp) +#undef qApp +#endif +#define qApp (static_cast(QCoreApplication::instance())) + +class Q_WIDGETS_EXPORT QApplication : public QGuiApplication +{ + Q_OBJECT + Q_PROPERTY(int cursorFlashTime READ cursorFlashTime WRITE setCursorFlashTime) + Q_PROPERTY(int doubleClickInterval READ doubleClickInterval WRITE setDoubleClickInterval) + Q_PROPERTY(int keyboardInputInterval READ keyboardInputInterval WRITE setKeyboardInputInterval) +#if QT_CONFIG(wheelevent) + Q_PROPERTY(int wheelScrollLines READ wheelScrollLines WRITE setWheelScrollLines) +#endif + Q_PROPERTY(int startDragTime READ startDragTime WRITE setStartDragTime) + Q_PROPERTY(int startDragDistance READ startDragDistance WRITE setStartDragDistance) +#ifndef QT_NO_STYLE_STYLESHEET + Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet) +#endif + Q_PROPERTY(bool autoSipEnabled READ autoSipEnabled WRITE setAutoSipEnabled) + +public: +#ifdef Q_QDOC + QApplication(int &argc, char **argv); +#else + QApplication(int &argc, char **argv, int = ApplicationFlags); +#endif + virtual ~QApplication(); + + static QStyle *style(); + static void setStyle(QStyle*); + static QStyle *setStyle(const QString&); + + using QGuiApplication::palette; + static QPalette palette(const QWidget *); + static QPalette palette(const char *className); + static void setPalette(const QPalette &, const char* className = nullptr); + static QFont font(); + static QFont font(const QWidget*); + static QFont font(const char *className); + static void setFont(const QFont &, const char* className = nullptr); + +#if QT_DEPRECATED_SINCE(6,0) + QT_DEPRECATED_VERSION_X_6_0("Use the QFontMetricsF constructor instead.") + static QFontMetrics fontMetrics(); +#endif + + static QWidgetList allWidgets(); + static QWidgetList topLevelWidgets(); + + static QWidget *activePopupWidget(); + static QWidget *activeModalWidget(); + static QWidget *focusWidget(); + + static QWidget *activeWindow(); + +#if QT_DEPRECATED_SINCE(6, 5) + QT_DEPRECATED_VERSION_X_6_5("Use QWidget::activateWindow() instead.") + static void setActiveWindow(QWidget* act); +#endif + + static QWidget *widgetAt(const QPoint &p); + static inline QWidget *widgetAt(int x, int y) { return widgetAt(QPoint(x, y)); } + static QWidget *topLevelAt(const QPoint &p); + static inline QWidget *topLevelAt(int x, int y) { return topLevelAt(QPoint(x, y)); } + + static void beep(); + static void alert(QWidget *widget, int duration = 0); + + static void setCursorFlashTime(int); + static int cursorFlashTime(); + + static void setDoubleClickInterval(int); + static int doubleClickInterval(); + + static void setKeyboardInputInterval(int); + static int keyboardInputInterval(); + +#if QT_CONFIG(wheelevent) + static void setWheelScrollLines(int); + static int wheelScrollLines(); +#endif + + static void setStartDragTime(int ms); + static int startDragTime(); + static void setStartDragDistance(int l); + static int startDragDistance(); + + static bool isEffectEnabled(Qt::UIEffect); + static void setEffectEnabled(Qt::UIEffect, bool enable = true); + + static int exec(); + bool notify(QObject *, QEvent *) override; + +#ifdef QT_KEYPAD_NAVIGATION + static void setNavigationMode(Qt::NavigationMode mode); + static Qt::NavigationMode navigationMode(); +#endif + + QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(QApplication) + +Q_SIGNALS: + void focusChanged(QWidget *old, QWidget *now); + +public: + QString styleSheet() const; + bool autoSipEnabled() const; +public Q_SLOTS: +#ifndef QT_NO_STYLE_STYLESHEET + void setStyleSheet(const QString& sheet); +#endif + void setAutoSipEnabled(const bool enabled); + static void closeAllWindows(); + static void aboutQt(); + +protected: + bool event(QEvent *) override; + bool compressEvent(QEvent *, QObject *receiver, QPostEventList *) override; + +private: + Q_DISABLE_COPY(QApplication) + Q_DECLARE_PRIVATE(QApplication) + + friend class QGraphicsWidget; + friend class QGraphicsItem; + friend class QGraphicsScene; + friend class QGraphicsScenePrivate; + friend class QWidget; + friend class QWidgetPrivate; + friend class QWidgetWindow; + friend class QTranslator; + friend class QWidgetAnimator; +#ifndef QT_NO_SHORTCUT + friend class QShortcut; + friend class QLineEdit; + friend class QWidgetTextControl; +#endif + friend class QAction; + +#ifndef QT_NO_GESTURES + friend class QGestureManager; +#endif +}; + +QT_END_NAMESPACE + +#endif // QAPPLICATION_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qboxlayout.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qboxlayout.h new file mode 100644 index 0000000000000000000000000000000000000000..e85df301422b19a479f07a8e49876a9b08becf01 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qboxlayout.h @@ -0,0 +1,105 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QBOXLAYOUT_H +#define QBOXLAYOUT_H + +#include +#include +#ifdef QT_INCLUDE_COMPAT +#include +#endif + +#include + +QT_BEGIN_NAMESPACE + + +class QBoxLayoutPrivate; + +class Q_WIDGETS_EXPORT QBoxLayout : public QLayout +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QBoxLayout) +public: + enum Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop, + Down = TopToBottom, Up = BottomToTop }; + + explicit QBoxLayout(Direction, QWidget *parent = nullptr); + + ~QBoxLayout(); + + Direction direction() const; + void setDirection(Direction); + + void addSpacing(int size); + void addStretch(int stretch = 0); + void addSpacerItem(QSpacerItem *spacerItem); + void addWidget(QWidget *, int stretch = 0, Qt::Alignment alignment = Qt::Alignment()); + void addLayout(QLayout *layout, int stretch = 0); + void addStrut(int); + void addItem(QLayoutItem *) override; + + void insertSpacing(int index, int size); + void insertStretch(int index, int stretch = 0); + void insertSpacerItem(int index, QSpacerItem *spacerItem); + void insertWidget(int index, QWidget *widget, int stretch = 0, Qt::Alignment alignment = Qt::Alignment()); + void insertLayout(int index, QLayout *layout, int stretch = 0); + void insertItem(int index, QLayoutItem *); + + int spacing() const override; + void setSpacing(int spacing) override; + + bool setStretchFactor(QWidget *w, int stretch); + bool setStretchFactor(QLayout *l, int stretch); + void setStretch(int index, int stretch); + int stretch(int index) const; + + QSize sizeHint() const override; + QSize minimumSize() const override; + QSize maximumSize() const override; + + bool hasHeightForWidth() const override; + int heightForWidth(int) const override; + int minimumHeightForWidth(int) const override; + + Qt::Orientations expandingDirections() const override; + void invalidate() override; + QLayoutItem *itemAt(int) const override; + QLayoutItem *takeAt(int) override; + int count() const override; + void setGeometry(const QRect&) override; + +private: + Q_DISABLE_COPY(QBoxLayout) +}; + +class Q_WIDGETS_EXPORT QHBoxLayout : public QBoxLayout +{ + Q_OBJECT +public: + QHBoxLayout(); + explicit QHBoxLayout(QWidget *parent); + ~QHBoxLayout(); + + +private: + Q_DISABLE_COPY(QHBoxLayout) +}; + +class Q_WIDGETS_EXPORT QVBoxLayout : public QBoxLayout +{ + Q_OBJECT +public: + QVBoxLayout(); + explicit QVBoxLayout(QWidget *parent); + ~QVBoxLayout(); + + +private: + Q_DISABLE_COPY(QVBoxLayout) +}; + +QT_END_NAMESPACE + +#endif // QBOXLAYOUT_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qbuttongroup.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qbuttongroup.h new file mode 100644 index 0000000000000000000000000000000000000000..63433c13fd257239c9b207f4f8984ad8bf6a833a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qbuttongroup.h @@ -0,0 +1,62 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QBUTTONGROUP_H +#define QBUTTONGROUP_H + +#include +#include + +QT_REQUIRE_CONFIG(buttongroup); + +QT_BEGIN_NAMESPACE + +class QAbstractButton; +class QAbstractButtonPrivate; +class QButtonGroupPrivate; + +class Q_WIDGETS_EXPORT QButtonGroup : public QObject +{ + Q_OBJECT + + Q_PROPERTY(bool exclusive READ exclusive WRITE setExclusive) +public: + explicit QButtonGroup(QObject *parent = nullptr); + ~QButtonGroup(); + + void setExclusive(bool); + bool exclusive() const; + + void addButton(QAbstractButton *, int id = -1); + void removeButton(QAbstractButton *); + + QList buttons() const; + + QAbstractButton * checkedButton() const; + // no setter on purpose! + + QAbstractButton *button(int id) const; + void setId(QAbstractButton *button, int id); + int id(QAbstractButton *button) const; + int checkedId() const; + +Q_SIGNALS: + void buttonClicked(QAbstractButton *); + void buttonPressed(QAbstractButton *); + void buttonReleased(QAbstractButton *); + void buttonToggled(QAbstractButton *, bool); + void idClicked(int); + void idPressed(int); + void idReleased(int); + void idToggled(int, bool); + +private: + Q_DISABLE_COPY(QButtonGroup) + Q_DECLARE_PRIVATE(QButtonGroup) + friend class QAbstractButton; + friend class QAbstractButtonPrivate; +}; + +QT_END_NAMESPACE + +#endif // QBUTTONGROUP_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qcalendarwidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcalendarwidget.h new file mode 100644 index 0000000000000000000000000000000000000000..4d8d4219bfff54f21a84b140c2dbc0e847cc007d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcalendarwidget.h @@ -0,0 +1,159 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QCALENDARWIDGET_H +#define QCALENDARWIDGET_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(calendarwidget); + +QT_BEGIN_NAMESPACE + +class QDate; +class QTextCharFormat; +class QCalendarWidgetPrivate; + +class Q_WIDGETS_EXPORT QCalendarWidget : public QWidget +{ + Q_OBJECT + Q_ENUMS(Qt::DayOfWeek) + Q_PROPERTY(QDate selectedDate READ selectedDate WRITE setSelectedDate) + Q_PROPERTY(QDate minimumDate READ minimumDate WRITE setMinimumDate RESET clearMinimumDate) + Q_PROPERTY(QDate maximumDate READ maximumDate WRITE setMaximumDate RESET clearMaximumDate) + Q_PROPERTY(Qt::DayOfWeek firstDayOfWeek READ firstDayOfWeek WRITE setFirstDayOfWeek) + Q_PROPERTY(bool gridVisible READ isGridVisible WRITE setGridVisible) + Q_PROPERTY(SelectionMode selectionMode READ selectionMode WRITE setSelectionMode) + Q_PROPERTY(HorizontalHeaderFormat horizontalHeaderFormat READ horizontalHeaderFormat + WRITE setHorizontalHeaderFormat) + Q_PROPERTY(VerticalHeaderFormat verticalHeaderFormat READ verticalHeaderFormat + WRITE setVerticalHeaderFormat) + Q_PROPERTY(bool navigationBarVisible READ isNavigationBarVisible WRITE setNavigationBarVisible) + Q_PROPERTY(bool dateEditEnabled READ isDateEditEnabled WRITE setDateEditEnabled) + Q_PROPERTY(int dateEditAcceptDelay READ dateEditAcceptDelay WRITE setDateEditAcceptDelay) + +public: + enum HorizontalHeaderFormat { + NoHorizontalHeader, + SingleLetterDayNames, + ShortDayNames, + LongDayNames + }; + Q_ENUM(HorizontalHeaderFormat) + + enum VerticalHeaderFormat { + NoVerticalHeader, + ISOWeekNumbers + }; + Q_ENUM(VerticalHeaderFormat) + + enum SelectionMode { + NoSelection, + SingleSelection + }; + Q_ENUM(SelectionMode) + + explicit QCalendarWidget(QWidget *parent = nullptr); + ~QCalendarWidget(); + + virtual QSize sizeHint() const override; + virtual QSize minimumSizeHint() const override; + + QDate selectedDate() const; + + int yearShown() const; + int monthShown() const; + + QDate minimumDate() const; + void setMinimumDate(QDate date); + void clearMinimumDate(); + + QDate maximumDate() const; + void setMaximumDate(QDate date); + void clearMaximumDate(); + + Qt::DayOfWeek firstDayOfWeek() const; + void setFirstDayOfWeek(Qt::DayOfWeek dayOfWeek); + + bool isNavigationBarVisible() const; + bool isGridVisible() const; + + QCalendar calendar() const; + void setCalendar(QCalendar calendar); + + SelectionMode selectionMode() const; + void setSelectionMode(SelectionMode mode); + + HorizontalHeaderFormat horizontalHeaderFormat() const; + void setHorizontalHeaderFormat(HorizontalHeaderFormat format); + + VerticalHeaderFormat verticalHeaderFormat() const; + void setVerticalHeaderFormat(VerticalHeaderFormat format); + + QTextCharFormat headerTextFormat() const; + void setHeaderTextFormat(const QTextCharFormat &format); + + QTextCharFormat weekdayTextFormat(Qt::DayOfWeek dayOfWeek) const; + void setWeekdayTextFormat(Qt::DayOfWeek dayOfWeek, const QTextCharFormat &format); + + QMap dateTextFormat() const; + QTextCharFormat dateTextFormat(QDate date) const; + void setDateTextFormat(QDate date, const QTextCharFormat &format); + + bool isDateEditEnabled() const; + void setDateEditEnabled(bool enable); + + int dateEditAcceptDelay() const; + void setDateEditAcceptDelay(int delay); + +protected: + bool event(QEvent *event) override; + bool eventFilter(QObject *watched, QEvent *event) override; + void mousePressEvent(QMouseEvent *event) override; + void resizeEvent(QResizeEvent * event) override; + void keyPressEvent(QKeyEvent * event) override; + + virtual void paintCell(QPainter *painter, const QRect &rect, QDate date) const; + void updateCell(QDate date); + void updateCells(); + +public Q_SLOTS: + void setSelectedDate(QDate date); + void setDateRange(QDate min, QDate max); + void setCurrentPage(int year, int month); + void setGridVisible(bool show); + void setNavigationBarVisible(bool visible); + void showNextMonth(); + void showPreviousMonth(); + void showNextYear(); + void showPreviousYear(); + void showSelectedDate(); + void showToday(); + +Q_SIGNALS: + void selectionChanged(); + void clicked(QDate date); + void activated(QDate date); + void currentPageChanged(int year, int month); + +private: + Q_DECLARE_PRIVATE(QCalendarWidget) + Q_DISABLE_COPY(QCalendarWidget) + + Q_PRIVATE_SLOT(d_func(), void _q_slotShowDate(QDate date)) + Q_PRIVATE_SLOT(d_func(), void _q_slotChangeDate(QDate date)) + Q_PRIVATE_SLOT(d_func(), void _q_slotChangeDate(QDate date, bool changeMonth)) + Q_PRIVATE_SLOT(d_func(), void _q_editingFinished()) + Q_PRIVATE_SLOT(d_func(), void _q_prevMonthClicked()) + Q_PRIVATE_SLOT(d_func(), void _q_nextMonthClicked()) + Q_PRIVATE_SLOT(d_func(), void _q_yearEditingFinished()) + Q_PRIVATE_SLOT(d_func(), void _q_yearClicked()) + Q_PRIVATE_SLOT(d_func(), void _q_monthChanged(QAction *act)) + +}; + +QT_END_NAMESPACE + +#endif // QCALENDARWIDGET_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qcheckbox.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcheckbox.h new file mode 100644 index 0000000000000000000000000000000000000000..7a7d8e4210d039f3fcf2b2759686731020d627ae --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcheckbox.h @@ -0,0 +1,63 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QCHECKBOX_H +#define QCHECKBOX_H + +#include +#include + +QT_REQUIRE_CONFIG(checkbox); + +QT_BEGIN_NAMESPACE + + +class QCheckBoxPrivate; +class QStyleOptionButton; + +class Q_WIDGETS_EXPORT QCheckBox : public QAbstractButton +{ + Q_OBJECT + + Q_PROPERTY(bool tristate READ isTristate WRITE setTristate) + +public: + explicit QCheckBox(QWidget *parent = nullptr); + explicit QCheckBox(const QString &text, QWidget *parent = nullptr); + ~QCheckBox(); + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + void setTristate(bool y = true); + bool isTristate() const; + + Qt::CheckState checkState() const; + void setCheckState(Qt::CheckState state); + +Q_SIGNALS: +#if QT_DEPRECATED_SINCE(6, 9) + QT_MOC_COMPAT QT_DEPRECATED_VERSION_X_6_9("Use checkStateChanged() instead") + void stateChanged(int); +#endif + void checkStateChanged(Qt::CheckState); + +protected: + bool event(QEvent *e) override; + bool hitButton(const QPoint &pos) const override; + void checkStateSet() override; + void nextCheckState() override; + void paintEvent(QPaintEvent *) override; + void mouseMoveEvent(QMouseEvent *) override; + virtual void initStyleOption(QStyleOptionButton *option) const; + + +private: + Q_DECLARE_PRIVATE(QCheckBox) + Q_DISABLE_COPY(QCheckBox) + friend class QAccessibleButton; +}; + +QT_END_NAMESPACE + +#endif // QCHECKBOX_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qcolordialog.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcolordialog.h new file mode 100644 index 0000000000000000000000000000000000000000..cb4ef0e480e02b2df24ca5d9d5db5c7b059e6424 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcolordialog.h @@ -0,0 +1,82 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QCOLORDIALOG_H +#define QCOLORDIALOG_H + +#include + +#include + +QT_REQUIRE_CONFIG(colordialog); + +QT_BEGIN_NAMESPACE + +class QColorDialogPrivate; + +class Q_WIDGETS_EXPORT QColorDialog : public QDialog +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QColorDialog) + Q_PROPERTY(QColor currentColor READ currentColor WRITE setCurrentColor + NOTIFY currentColorChanged) + Q_PROPERTY(ColorDialogOptions options READ options WRITE setOptions) + +public: + enum ColorDialogOption { + ShowAlphaChannel = 0x00000001, + NoButtons = 0x00000002, + DontUseNativeDialog = 0x00000004, + NoEyeDropperButton = 0x00000008, + }; + Q_ENUM(ColorDialogOption) + + Q_DECLARE_FLAGS(ColorDialogOptions, ColorDialogOption) + + explicit QColorDialog(QWidget *parent = nullptr); + explicit QColorDialog(const QColor &initial, QWidget *parent = nullptr); + ~QColorDialog(); + + void setCurrentColor(const QColor &color); + QColor currentColor() const; + + QColor selectedColor() const; + + void setOption(ColorDialogOption option, bool on = true); + bool testOption(ColorDialogOption option) const; + void setOptions(ColorDialogOptions options); + ColorDialogOptions options() const; + + using QDialog::open; + void open(QObject *receiver, const char *member); + + void setVisible(bool visible) override; + + static QColor getColor(const QColor &initial = Qt::white, + QWidget *parent = nullptr, + const QString &title = QString(), + ColorDialogOptions options = ColorDialogOptions()); + + static int customCount(); + static QColor customColor(int index); + static void setCustomColor(int index, QColor color); + static QColor standardColor(int index); + static void setStandardColor(int index, QColor color); + +Q_SIGNALS: + void currentColorChanged(const QColor &color); + void colorSelected(const QColor &color); + +protected: + void changeEvent(QEvent *event) override; + void done(int result) override; + +private: + Q_DISABLE_COPY(QColorDialog) +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QColorDialog::ColorDialogOptions) + +QT_END_NAMESPACE + +#endif // QCOLORDIALOG_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qcolormap.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcolormap.h new file mode 100644 index 0000000000000000000000000000000000000000..618c2120e1ebe216e227df4446f0663d9058d495 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcolormap.h @@ -0,0 +1,51 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QCOLORMAP_H +#define QCOLORMAP_H + +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + + +class QColor; +class QColormapPrivate; + +class Q_WIDGETS_EXPORT QColormap +{ +public: + enum Mode { Direct, Indexed, Gray }; + + static void initialize(); + static void cleanup(); + + static QColormap instance(int screen = -1); + + QColormap(const QColormap &colormap); + ~QColormap(); + + QColormap &operator=(const QColormap &colormap); + + Mode mode() const; + + int depth() const; + int size() const; + + uint pixel(const QColor &color) const; + const QColor colorAt(uint pixel) const; + + const QList colormap() const; + +private: + QColormap(); + QColormapPrivate *d; +}; + +QT_END_NAMESPACE + +#endif // QCOLORMAP_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qcolumnview.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcolumnview.h new file mode 100644 index 0000000000000000000000000000000000000000..7fd939c29ef3799d59c4b09c28ce1585f86999e4 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcolumnview.h @@ -0,0 +1,75 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QCOLUMNVIEW_H +#define QCOLUMNVIEW_H + +#include +#include + +QT_REQUIRE_CONFIG(columnview); + +QT_BEGIN_NAMESPACE + +class QColumnViewPrivate; + +class Q_WIDGETS_EXPORT QColumnView : public QAbstractItemView { + +Q_OBJECT + Q_PROPERTY(bool resizeGripsVisible READ resizeGripsVisible WRITE setResizeGripsVisible) + +Q_SIGNALS: + void updatePreviewWidget(const QModelIndex &index); + +public: + explicit QColumnView(QWidget *parent = nullptr); + ~QColumnView(); + + // QAbstractItemView overloads + QModelIndex indexAt(const QPoint &point) const override; + void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible) override; + QSize sizeHint() const override; + QRect visualRect(const QModelIndex &index) const override; + void setModel(QAbstractItemModel *model) override; + void setSelectionModel(QItemSelectionModel * selectionModel) override; + void setRootIndex(const QModelIndex &index) override; + void selectAll() override; + + // QColumnView functions + void setResizeGripsVisible(bool visible); + bool resizeGripsVisible() const; + + QWidget *previewWidget() const; + void setPreviewWidget(QWidget *widget); + + void setColumnWidths(const QList &list); + QList columnWidths() const; + +protected: + QColumnView(QColumnViewPrivate &dd, QWidget *parent = nullptr); + + // QAbstractItemView overloads + bool isIndexHidden(const QModelIndex &index) const override; + QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override; + void resizeEvent(QResizeEvent *event) override; + void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) override; + QRegion visualRegionForSelection(const QItemSelection &selection) const override; + int horizontalOffset() const override; + int verticalOffset() const override; + void rowsInserted(const QModelIndex &parent, int start, int end) override; + void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override; + + // QColumnView functions + void scrollContentsBy(int dx, int dy) override; + virtual QAbstractItemView* createColumn(const QModelIndex &rootIndex); + void initializeColumn(QAbstractItemView *column) const; + +private: + Q_DECLARE_PRIVATE(QColumnView) + Q_DISABLE_COPY(QColumnView) +}; + +QT_END_NAMESPACE + +#endif // QCOLUMNVIEW_H + diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qcombobox.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcombobox.h new file mode 100644 index 0000000000000000000000000000000000000000..f6fe732efcf79326d8324ffa2022918ebf6d757f --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcombobox.h @@ -0,0 +1,221 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QCOMBOBOX_H +#define QCOMBOBOX_H + +#include +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(combobox); + +QT_BEGIN_NAMESPACE + +class QAbstractItemView; +class QLineEdit; +class QComboBoxPrivate; +class QCompleter; + +class Q_WIDGETS_EXPORT QComboBox : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(bool editable READ isEditable WRITE setEditable) + Q_PROPERTY(int count READ count) + Q_PROPERTY(QString currentText READ currentText WRITE setCurrentText NOTIFY currentTextChanged + USER true) + Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged) + Q_PROPERTY(QVariant currentData READ currentData) + Q_PROPERTY(int maxVisibleItems READ maxVisibleItems WRITE setMaxVisibleItems) + Q_PROPERTY(int maxCount READ maxCount WRITE setMaxCount) + Q_PROPERTY(InsertPolicy insertPolicy READ insertPolicy WRITE setInsertPolicy) + Q_PROPERTY(SizeAdjustPolicy sizeAdjustPolicy READ sizeAdjustPolicy WRITE setSizeAdjustPolicy) + Q_PROPERTY(int minimumContentsLength READ minimumContentsLength WRITE setMinimumContentsLength) + Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize) + Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText) + Q_PROPERTY(bool duplicatesEnabled READ duplicatesEnabled WRITE setDuplicatesEnabled) + Q_PROPERTY(bool frame READ hasFrame WRITE setFrame) + Q_PROPERTY(int modelColumn READ modelColumn WRITE setModelColumn) + +public: + explicit QComboBox(QWidget *parent = nullptr); + ~QComboBox(); + + int maxVisibleItems() const; + void setMaxVisibleItems(int maxItems); + + int count() const; + void setMaxCount(int max); + int maxCount() const; + + bool duplicatesEnabled() const; + void setDuplicatesEnabled(bool enable); + + void setFrame(bool); + bool hasFrame() const; + + inline int findText(const QString &text, + Qt::MatchFlags flags = static_cast(Qt::MatchExactly|Qt::MatchCaseSensitive)) const + { return findData(text, Qt::DisplayRole, flags); } + int findData(const QVariant &data, int role = Qt::UserRole, + Qt::MatchFlags flags = static_cast(Qt::MatchExactly|Qt::MatchCaseSensitive)) const; + + enum InsertPolicy { + NoInsert, + InsertAtTop, + InsertAtCurrent, + InsertAtBottom, + InsertAfterCurrent, + InsertBeforeCurrent, + InsertAlphabetically + }; + Q_ENUM(InsertPolicy) + + InsertPolicy insertPolicy() const; + void setInsertPolicy(InsertPolicy policy); + + enum SizeAdjustPolicy { + AdjustToContents, + AdjustToContentsOnFirstShow, + AdjustToMinimumContentsLengthWithIcon + }; + Q_ENUM(SizeAdjustPolicy) + + SizeAdjustPolicy sizeAdjustPolicy() const; + void setSizeAdjustPolicy(SizeAdjustPolicy policy); + int minimumContentsLength() const; + void setMinimumContentsLength(int characters); + QSize iconSize() const; + void setIconSize(const QSize &size); + + void setPlaceholderText(const QString &placeholderText); + QString placeholderText() const; + + bool isEditable() const; + void setEditable(bool editable); + void setLineEdit(QLineEdit *edit); + QLineEdit *lineEdit() const; +#ifndef QT_NO_VALIDATOR + void setValidator(const QValidator *v); + const QValidator *validator() const; +#endif + +#if QT_CONFIG(completer) + void setCompleter(QCompleter *c); + QCompleter *completer() const; +#endif + + QAbstractItemDelegate *itemDelegate() const; + void setItemDelegate(QAbstractItemDelegate *delegate); + + QAbstractItemModel *model() const; + virtual void setModel(QAbstractItemModel *model); + + QModelIndex rootModelIndex() const; + void setRootModelIndex(const QModelIndex &index); + + int modelColumn() const; + void setModelColumn(int visibleColumn); + + int currentIndex() const; + QString currentText() const; + QVariant currentData(int role = Qt::UserRole) const; + + QString itemText(int index) const; + QIcon itemIcon(int index) const; + QVariant itemData(int index, int role = Qt::UserRole) const; + + inline void addItem(const QString &text, const QVariant &userData = QVariant()); + inline void addItem(const QIcon &icon, const QString &text, + const QVariant &userData = QVariant()); + inline void addItems(const QStringList &texts) + { insertItems(count(), texts); } + + inline void insertItem(int index, const QString &text, const QVariant &userData = QVariant()); + void insertItem(int index, const QIcon &icon, const QString &text, + const QVariant &userData = QVariant()); + void insertItems(int index, const QStringList &texts); + void insertSeparator(int index); + + void removeItem(int index); + + void setItemText(int index, const QString &text); + void setItemIcon(int index, const QIcon &icon); + void setItemData(int index, const QVariant &value, int role = Qt::UserRole); + + QAbstractItemView *view() const; + void setView(QAbstractItemView *itemView); + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + virtual void showPopup(); + virtual void hidePopup(); + + bool event(QEvent *event) override; + QVariant inputMethodQuery(Qt::InputMethodQuery) const override; + Q_INVOKABLE QVariant inputMethodQuery(Qt::InputMethodQuery query, const QVariant &argument) const; + +public Q_SLOTS: + void clear(); + void clearEditText(); + void setEditText(const QString &text); + void setCurrentIndex(int index); + void setCurrentText(const QString &text); + +Q_SIGNALS: + void editTextChanged(const QString &); + void activated(int index); + void textActivated(const QString &); + void highlighted(int index); + void textHighlighted(const QString &); + void currentIndexChanged(int index); + void currentTextChanged(const QString &); + +protected: + void focusInEvent(QFocusEvent *e) override; + void focusOutEvent(QFocusEvent *e) override; + void changeEvent(QEvent *e) override; + void resizeEvent(QResizeEvent *e) override; + void paintEvent(QPaintEvent *e) override; + void showEvent(QShowEvent *e) override; + void hideEvent(QHideEvent *e) override; + void mousePressEvent(QMouseEvent *e) override; + void mouseReleaseEvent(QMouseEvent *e) override; + void keyPressEvent(QKeyEvent *e) override; + void keyReleaseEvent(QKeyEvent *e) override; +#if QT_CONFIG(wheelevent) + void wheelEvent(QWheelEvent *e) override; +#endif +#ifndef QT_NO_CONTEXTMENU + void contextMenuEvent(QContextMenuEvent *e) override; +#endif // QT_NO_CONTEXTMENU + void inputMethodEvent(QInputMethodEvent *) override; + virtual void initStyleOption(QStyleOptionComboBox *option) const; + + +protected: + QComboBox(QComboBoxPrivate &, QWidget *); + +private: + Q_DECLARE_PRIVATE(QComboBox) + Q_DISABLE_COPY(QComboBox) +}; + +inline void QComboBox::addItem(const QString &atext, const QVariant &auserData) +{ insertItem(count(), atext, auserData); } +inline void QComboBox::addItem(const QIcon &aicon, const QString &atext, + const QVariant &auserData) +{ insertItem(count(), aicon, atext, auserData); } + +inline void QComboBox::insertItem(int aindex, const QString &atext, + const QVariant &auserData) +{ insertItem(aindex, QIcon(), atext, auserData); } + +QT_END_NAMESPACE + +#endif // QCOMBOBOX_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qcommandlinkbutton.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcommandlinkbutton.h new file mode 100644 index 0000000000000000000000000000000000000000..47e8bb1bcc7e4fdb9c63279526d84b95cd78b03c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcommandlinkbutton.h @@ -0,0 +1,49 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QCOMMANDLINKBUTTON_H +#define QCOMMANDLINKBUTTON_H + +#include +#include + +QT_REQUIRE_CONFIG(commandlinkbutton); + +QT_BEGIN_NAMESPACE + + +class QCommandLinkButtonPrivate; + +class Q_WIDGETS_EXPORT QCommandLinkButton: public QPushButton +{ + Q_OBJECT + + Q_PROPERTY(QString description READ description WRITE setDescription) + Q_PROPERTY(bool flat READ isFlat WRITE setFlat DESIGNABLE false) + +public: + explicit QCommandLinkButton(QWidget *parent = nullptr); + explicit QCommandLinkButton(const QString &text, QWidget *parent = nullptr); + explicit QCommandLinkButton(const QString &text, const QString &description, QWidget *parent = nullptr); + ~QCommandLinkButton(); + + QString description() const; + void setDescription(const QString &description); + + QSize sizeHint() const override; + int heightForWidth(int) const override; + QSize minimumSizeHint() const override; + void initStyleOption(QStyleOptionButton *option) const override; + +protected: + bool event(QEvent *e) override; + void paintEvent(QPaintEvent *) override; + +private: + Q_DISABLE_COPY(QCommandLinkButton) + Q_DECLARE_PRIVATE(QCommandLinkButton) +}; + +QT_END_NAMESPACE + +#endif // QCOMMANDLINKBUTTON diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qcommonstyle.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcommonstyle.h new file mode 100644 index 0000000000000000000000000000000000000000..b996536e8575253807c866c4b84ec2ee0d2aa47b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcommonstyle.h @@ -0,0 +1,68 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QCOMMONSTYLE_H +#define QCOMMONSTYLE_H + +#include +#include + +QT_BEGIN_NAMESPACE + +class QCommonStylePrivate; + +class Q_WIDGETS_EXPORT QCommonStyle: public QStyle +{ + Q_OBJECT + +public: + QCommonStyle(); + ~QCommonStyle(); + + void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p, + const QWidget *w = nullptr) const override; + void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p, + const QWidget *w = nullptr) const override; + QRect subElementRect(SubElement r, const QStyleOption *opt, const QWidget *widget = nullptr) const override; + void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, + const QWidget *w = nullptr) const override; + SubControl hitTestComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, + const QPoint &pt, const QWidget *w = nullptr) const override; + QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, + const QWidget *w = nullptr) const override; + QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, + const QSize &contentsSize, const QWidget *widget = nullptr) const override; + + int pixelMetric(PixelMetric m, const QStyleOption *opt = nullptr, const QWidget *widget = nullptr) const override; + + int styleHint(StyleHint sh, const QStyleOption *opt = nullptr, const QWidget *w = nullptr, + QStyleHintReturn *shret = nullptr) const override; + + QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *opt = nullptr, + const QWidget *widget = nullptr) const override; + QPixmap standardPixmap(StandardPixmap sp, const QStyleOption *opt = nullptr, + const QWidget *widget = nullptr) const override; + + QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, + const QStyleOption *opt) const override; + int layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, + Qt::Orientation orientation, const QStyleOption *option = nullptr, + const QWidget *widget = nullptr) const override; + + void polish(QPalette &) override; + void polish(QApplication *app) override; + void polish(QWidget *widget) override; + void unpolish(QWidget *widget) override; + void unpolish(QApplication *application) override; + +protected: + QCommonStyle(QCommonStylePrivate &dd); + +private: + Q_DECLARE_PRIVATE(QCommonStyle) + Q_DISABLE_COPY(QCommonStyle) +}; + +QT_END_NAMESPACE + +#endif // QCOMMONSTYLE_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qcompleter.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcompleter.h new file mode 100644 index 0000000000000000000000000000000000000000..302bfd634565900f30f6287bcac0393fa10855b1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qcompleter.h @@ -0,0 +1,132 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QCOMPLETER_H +#define QCOMPLETER_H + +#include +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(completer); + +QT_BEGIN_NAMESPACE + +class QCompleterPrivate; +class QAbstractItemView; +class QAbstractProxyModel; +class QWidget; + +class Q_WIDGETS_EXPORT QCompleter : public QObject +{ + Q_OBJECT + Q_PROPERTY(QString completionPrefix READ completionPrefix WRITE setCompletionPrefix) + Q_PROPERTY(ModelSorting modelSorting READ modelSorting WRITE setModelSorting) + Q_PROPERTY(Qt::MatchFlags filterMode READ filterMode WRITE setFilterMode) + Q_PROPERTY(CompletionMode completionMode READ completionMode WRITE setCompletionMode) + Q_PROPERTY(int completionColumn READ completionColumn WRITE setCompletionColumn) + Q_PROPERTY(int completionRole READ completionRole WRITE setCompletionRole) + Q_PROPERTY(int maxVisibleItems READ maxVisibleItems WRITE setMaxVisibleItems) + Q_PROPERTY(Qt::CaseSensitivity caseSensitivity READ caseSensitivity WRITE setCaseSensitivity) + Q_PROPERTY(bool wrapAround READ wrapAround WRITE setWrapAround) + +public: + enum CompletionMode { + PopupCompletion, + UnfilteredPopupCompletion, + InlineCompletion + }; + Q_ENUM(CompletionMode) + + enum ModelSorting { + UnsortedModel = 0, + CaseSensitivelySortedModel, + CaseInsensitivelySortedModel + }; + Q_ENUM(ModelSorting) + + QCompleter(QObject *parent = nullptr); + QCompleter(QAbstractItemModel *model, QObject *parent = nullptr); +#if QT_CONFIG(stringlistmodel) + QCompleter(const QStringList& completions, QObject *parent = nullptr); +#endif + ~QCompleter() override; + + void setWidget(QWidget *widget); + QWidget *widget() const; + + void setModel(QAbstractItemModel *c); + QAbstractItemModel *model() const; + + void setCompletionMode(CompletionMode mode); + CompletionMode completionMode() const; + + void setFilterMode(Qt::MatchFlags filterMode); + Qt::MatchFlags filterMode() const; + + QAbstractItemView *popup() const; + void setPopup(QAbstractItemView *popup); + + void setCaseSensitivity(Qt::CaseSensitivity caseSensitivity); + Qt::CaseSensitivity caseSensitivity() const; + + void setModelSorting(ModelSorting sorting); + ModelSorting modelSorting() const; + + void setCompletionColumn(int column); + int completionColumn() const; + + void setCompletionRole(int role); + int completionRole() const; + + bool wrapAround() const; + + int maxVisibleItems() const; + void setMaxVisibleItems(int maxItems); + + int completionCount() const; + bool setCurrentRow(int row); + int currentRow() const; + + QModelIndex currentIndex() const; + QString currentCompletion() const; + + QAbstractItemModel *completionModel() const; + + QString completionPrefix() const; + +public Q_SLOTS: + void setCompletionPrefix(const QString &prefix); + void complete(const QRect& rect = QRect()); + void setWrapAround(bool wrap); + +public: + virtual QString pathFromIndex(const QModelIndex &index) const; + virtual QStringList splitPath(const QString &path) const; + +protected: + bool eventFilter(QObject *o, QEvent *e) override; + bool event(QEvent *) override; + +Q_SIGNALS: + void activated(const QString &text); + void activated(const QModelIndex &index); + void highlighted(const QString &text); + void highlighted(const QModelIndex &index); + +private: + Q_DISABLE_COPY(QCompleter) + Q_DECLARE_PRIVATE(QCompleter) + + Q_PRIVATE_SLOT(d_func(), void _q_complete(QModelIndex)) + Q_PRIVATE_SLOT(d_func(), void _q_completionSelected(const QItemSelection&)) + Q_PRIVATE_SLOT(d_func(), void _q_autoResizePopup()) + Q_PRIVATE_SLOT(d_func(), void _q_fileSystemModelDirectoryLoaded(const QString&)) +}; + +QT_END_NAMESPACE + +#endif // QCOMPLETER_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qdatawidgetmapper.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdatawidgetmapper.h new file mode 100644 index 0000000000000000000000000000000000000000..3dc316094c3f6a5545d4c7538a1224b6b1a1838f --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdatawidgetmapper.h @@ -0,0 +1,79 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QDATAWIDGETMAPPER_H +#define QDATAWIDGETMAPPER_H + +#include +#include "QtCore/qobject.h" + +QT_REQUIRE_CONFIG(datawidgetmapper); + +QT_BEGIN_NAMESPACE + +class QAbstractItemDelegate; +class QAbstractItemModel; +class QModelIndex; +class QDataWidgetMapperPrivate; + +class Q_WIDGETS_EXPORT QDataWidgetMapper: public QObject +{ + Q_OBJECT + + Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged) + Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation) + Q_PROPERTY(SubmitPolicy submitPolicy READ submitPolicy WRITE setSubmitPolicy) + +public: + explicit QDataWidgetMapper(QObject *parent = nullptr); + ~QDataWidgetMapper(); + + void setModel(QAbstractItemModel *model); + QAbstractItemModel *model() const; + + void setItemDelegate(QAbstractItemDelegate *delegate); + QAbstractItemDelegate *itemDelegate() const; + + void setRootIndex(const QModelIndex &index); + QModelIndex rootIndex() const; + + void setOrientation(Qt::Orientation aOrientation); + Qt::Orientation orientation() const; + + enum SubmitPolicy { AutoSubmit, ManualSubmit }; + Q_ENUM(SubmitPolicy) + void setSubmitPolicy(SubmitPolicy policy); + SubmitPolicy submitPolicy() const; + + void addMapping(QWidget *widget, int section); + void addMapping(QWidget *widget, int section, const QByteArray &propertyName); + void removeMapping(QWidget *widget); + int mappedSection(QWidget *widget) const; + QByteArray mappedPropertyName(QWidget *widget) const; + QWidget *mappedWidgetAt(int section) const; + void clearMapping(); + + int currentIndex() const; + +public Q_SLOTS: + void revert(); + bool submit(); + + void toFirst(); + void toLast(); + void toNext(); + void toPrevious(); + virtual void setCurrentIndex(int index); + void setCurrentModelIndex(const QModelIndex &index); + +Q_SIGNALS: + void currentIndexChanged(int index); + +private: + Q_DECLARE_PRIVATE(QDataWidgetMapper) + Q_DISABLE_COPY(QDataWidgetMapper) +}; + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qdatetimeedit.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdatetimeedit.h new file mode 100644 index 0000000000000000000000000000000000000000..4c469e7fa577eabe77f8e352d9a5cbd0b869dc50 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdatetimeedit.h @@ -0,0 +1,211 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QDATETIMEEDIT_H +#define QDATETIMEEDIT_H + +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(datetimeedit); + +QT_BEGIN_NAMESPACE + +class QDateTimeEditPrivate; +class QStyleOptionSpinBox; +class QCalendarWidget; + +class Q_WIDGETS_EXPORT QDateTimeEdit : public QAbstractSpinBox +{ + Q_OBJECT + + Q_PROPERTY(QDateTime dateTime READ dateTime WRITE setDateTime NOTIFY dateTimeChanged USER true) + Q_PROPERTY(QDate date READ date WRITE setDate NOTIFY dateChanged) + Q_PROPERTY(QTime time READ time WRITE setTime NOTIFY timeChanged) + Q_PROPERTY(QDateTime maximumDateTime READ maximumDateTime WRITE setMaximumDateTime + RESET clearMaximumDateTime) + Q_PROPERTY(QDateTime minimumDateTime READ minimumDateTime WRITE setMinimumDateTime + RESET clearMinimumDateTime) + Q_PROPERTY(QDate maximumDate READ maximumDate WRITE setMaximumDate RESET clearMaximumDate) + Q_PROPERTY(QDate minimumDate READ minimumDate WRITE setMinimumDate RESET clearMinimumDate) + Q_PROPERTY(QTime maximumTime READ maximumTime WRITE setMaximumTime RESET clearMaximumTime) + Q_PROPERTY(QTime minimumTime READ minimumTime WRITE setMinimumTime RESET clearMinimumTime) + Q_PROPERTY(Section currentSection READ currentSection WRITE setCurrentSection) + Q_PROPERTY(Sections displayedSections READ displayedSections) + Q_PROPERTY(QString displayFormat READ displayFormat WRITE setDisplayFormat) + Q_PROPERTY(bool calendarPopup READ calendarPopup WRITE setCalendarPopup) + Q_PROPERTY(int currentSectionIndex READ currentSectionIndex WRITE setCurrentSectionIndex) + Q_PROPERTY(int sectionCount READ sectionCount) +#if QT_DEPRECATED_SINCE(6, 10) + Q_PROPERTY(Qt::TimeSpec timeSpec READ timeSpec WRITE setTimeSpec) +#endif + Q_PROPERTY(QTimeZone timeZone READ timeZone WRITE setTimeZone) +public: + enum Section { // a sub-type of QDateTimeParser's like-named enum. + NoSection = 0x0000, + AmPmSection = 0x0001, + MSecSection = 0x0002, + SecondSection = 0x0004, + MinuteSection = 0x0008, + HourSection = 0x0010, + DaySection = 0x0100, + MonthSection = 0x0200, + YearSection = 0x0400, + TimeSections_Mask = AmPmSection|MSecSection|SecondSection|MinuteSection|HourSection, + DateSections_Mask = DaySection|MonthSection|YearSection + }; + Q_ENUM(Section) + + Q_DECLARE_FLAGS(Sections, Section) + Q_FLAG(Sections) + + explicit QDateTimeEdit(QWidget *parent = nullptr); + explicit QDateTimeEdit(const QDateTime &dt, QWidget *parent = nullptr); + explicit QDateTimeEdit(QDate d, QWidget *parent = nullptr); + explicit QDateTimeEdit(QTime t, QWidget *parent = nullptr); + ~QDateTimeEdit(); + + QDateTime dateTime() const; + QDate date() const; + QTime time() const; + + QCalendar calendar() const; + void setCalendar(QCalendar calendar); + + QDateTime minimumDateTime() const; + void clearMinimumDateTime(); + void setMinimumDateTime(const QDateTime &dt); + + QDateTime maximumDateTime() const; + void clearMaximumDateTime(); + void setMaximumDateTime(const QDateTime &dt); + + void setDateTimeRange(const QDateTime &min, const QDateTime &max); + + QDate minimumDate() const; + void setMinimumDate(QDate min); + void clearMinimumDate(); + + QDate maximumDate() const; + void setMaximumDate(QDate max); + void clearMaximumDate(); + + void setDateRange(QDate min, QDate max); + + QTime minimumTime() const; + void setMinimumTime(QTime min); + void clearMinimumTime(); + + QTime maximumTime() const; + void setMaximumTime(QTime max); + void clearMaximumTime(); + + void setTimeRange(QTime min, QTime max); + + Sections displayedSections() const; + Section currentSection() const; + Section sectionAt(int index) const; + void setCurrentSection(Section section); + + int currentSectionIndex() const; + void setCurrentSectionIndex(int index); + + QCalendarWidget *calendarWidget() const; + void setCalendarWidget(QCalendarWidget *calendarWidget); + + int sectionCount() const; + + void setSelectedSection(Section section); + + QString sectionText(Section section) const; + + QString displayFormat() const; + void setDisplayFormat(const QString &format); + + bool calendarPopup() const; + void setCalendarPopup(bool enable); + +#if QT_DEPRECATED_SINCE(6, 10) + QT_DEPRECATED_VERSION_X_6_10("Use timeZone() instead") + Qt::TimeSpec timeSpec() const; + QT_DEPRECATED_VERSION_X_6_10("Use setTimeZone() instead") + void setTimeSpec(Qt::TimeSpec spec); +#endif + QTimeZone timeZone() const; + void setTimeZone(const QTimeZone &zone); + + QSize sizeHint() const override; + + void clear() override; + void stepBy(int steps) override; + + bool event(QEvent *event) override; +Q_SIGNALS: + void dateTimeChanged(const QDateTime &dateTime); + void timeChanged(QTime time); + void dateChanged(QDate date); + +public Q_SLOTS: + void setDateTime(const QDateTime &dateTime); + void setDate(QDate date); + void setTime(QTime time); + +protected: + void keyPressEvent(QKeyEvent *event) override; +#if QT_CONFIG(wheelevent) + void wheelEvent(QWheelEvent *event) override; +#endif + void focusInEvent(QFocusEvent *event) override; + bool focusNextPrevChild(bool next) override; + QValidator::State validate(QString &input, int &pos) const override; + void fixup(QString &input) const override; + + virtual QDateTime dateTimeFromText(const QString &text) const; + virtual QString textFromDateTime(const QDateTime &dt) const; + StepEnabled stepEnabled() const override; + void mousePressEvent(QMouseEvent *event) override; + void paintEvent(QPaintEvent *event) override; + void initStyleOption(QStyleOptionSpinBox *option) const override; + + QDateTimeEdit(const QVariant &val, QMetaType::Type parserType, QWidget *parent = nullptr); +private: + Q_DECLARE_PRIVATE(QDateTimeEdit) + Q_DISABLE_COPY(QDateTimeEdit) + + Q_PRIVATE_SLOT(d_func(), void _q_resetButton()) +}; + +class Q_WIDGETS_EXPORT QTimeEdit : public QDateTimeEdit +{ + Q_OBJECT + Q_PROPERTY(QTime time READ time WRITE setTime NOTIFY userTimeChanged USER true) +public: + explicit QTimeEdit(QWidget *parent = nullptr); + explicit QTimeEdit(QTime time, QWidget *parent = nullptr); + ~QTimeEdit(); + +Q_SIGNALS: + void userTimeChanged(QTime time); +}; + +class Q_WIDGETS_EXPORT QDateEdit : public QDateTimeEdit +{ + Q_OBJECT + Q_PROPERTY(QDate date READ date WRITE setDate NOTIFY userDateChanged USER true) +public: + explicit QDateEdit(QWidget *parent = nullptr); + explicit QDateEdit(QDate date, QWidget *parent = nullptr); + ~QDateEdit(); + +Q_SIGNALS: + void userDateChanged(QDate date); +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QDateTimeEdit::Sections) + +QT_END_NAMESPACE + +#endif // QDATETIMEEDIT_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qdial.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdial.h new file mode 100644 index 0000000000000000000000000000000000000000..794b811b61e84c36c6f0a7431e33072bbc224a3e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdial.h @@ -0,0 +1,67 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + + +#ifndef QDIAL_H +#define QDIAL_H + +#include + +#include + +QT_REQUIRE_CONFIG(dial); + +QT_BEGIN_NAMESPACE + +class QDialPrivate; +class QStyleOptionSlider; + +class Q_WIDGETS_EXPORT QDial: public QAbstractSlider +{ + Q_OBJECT + + Q_PROPERTY(bool wrapping READ wrapping WRITE setWrapping) + Q_PROPERTY(int notchSize READ notchSize) + Q_PROPERTY(qreal notchTarget READ notchTarget WRITE setNotchTarget) + Q_PROPERTY(bool notchesVisible READ notchesVisible WRITE setNotchesVisible) +public: + explicit QDial(QWidget *parent = nullptr); + + ~QDial(); + + bool wrapping() const; + + int notchSize() const; + + void setNotchTarget(double target); + qreal notchTarget() const; + bool notchesVisible() const; + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + +public Q_SLOTS: + void setNotchesVisible(bool visible); + void setWrapping(bool on); + +protected: + bool event(QEvent *e) override; + void resizeEvent(QResizeEvent *re) override; + void paintEvent(QPaintEvent *pe) override; + + void mousePressEvent(QMouseEvent *me) override; + void mouseReleaseEvent(QMouseEvent *me) override; + void mouseMoveEvent(QMouseEvent *me) override; + + void sliderChange(SliderChange change) override; + virtual void initStyleOption(QStyleOptionSlider *option) const; + + +private: + Q_DECLARE_PRIVATE(QDial) + Q_DISABLE_COPY(QDial) +}; + +QT_END_NAMESPACE + +#endif // QDIAL_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qdialog.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdialog.h new file mode 100644 index 0000000000000000000000000000000000000000..19578a49edb51629a2664e1b05be8554274f799a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdialog.h @@ -0,0 +1,77 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QDIALOG_H +#define QDIALOG_H + +#include +#include + +QT_REQUIRE_CONFIG(dialog); + +QT_BEGIN_NAMESPACE + + +class QPushButton; +class QDialogPrivate; + +class Q_WIDGETS_EXPORT QDialog : public QWidget +{ + Q_OBJECT + friend class QPushButton; + + Q_PROPERTY(bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled) + Q_PROPERTY(bool modal READ isModal WRITE setModal) + +public: + explicit QDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags()); + ~QDialog(); + + enum DialogCode { Rejected, Accepted }; + Q_ENUM(DialogCode) + + int result() const; + + void setVisible(bool visible) override; + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + void setSizeGripEnabled(bool); + bool isSizeGripEnabled() const; + + void setModal(bool modal); + void setResult(int r); + +Q_SIGNALS: + void finished(int result); + void accepted(); + void rejected(); + +public Q_SLOTS: + virtual void open(); + virtual int exec(); + virtual void done(int); + virtual void accept(); + virtual void reject(); + +protected: + QDialog(QDialogPrivate &, QWidget *parent, Qt::WindowFlags f = Qt::WindowFlags()); + + void keyPressEvent(QKeyEvent *) override; + void closeEvent(QCloseEvent *) override; + void showEvent(QShowEvent *) override; + void resizeEvent(QResizeEvent *) override; +#ifndef QT_NO_CONTEXTMENU + void contextMenuEvent(QContextMenuEvent *) override; +#endif + bool eventFilter(QObject *, QEvent *) override; + void adjustPosition(QWidget*); +private: + Q_DECLARE_PRIVATE(QDialog) + Q_DISABLE_COPY(QDialog) +}; + +QT_END_NAMESPACE + +#endif // QDIALOG_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qdialogbuttonbox.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdialogbuttonbox.h new file mode 100644 index 0000000000000000000000000000000000000000..de1704b297544f43dfb1584f504b0a4a627401d2 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdialogbuttonbox.h @@ -0,0 +1,129 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QDIALOGBUTTONBOX_H +#define QDIALOGBUTTONBOX_H + +#include +#include + +QT_REQUIRE_CONFIG(dialogbuttonbox); + +QT_BEGIN_NAMESPACE + + +class QAbstractButton; +class QPushButton; +class QDialogButtonBoxPrivate; + +class Q_WIDGETS_EXPORT QDialogButtonBox : public QWidget +{ + Q_OBJECT + Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation) + Q_PROPERTY(StandardButtons standardButtons READ standardButtons WRITE setStandardButtons) + Q_PROPERTY(bool centerButtons READ centerButtons WRITE setCenterButtons) + +public: + enum ButtonRole { + // keep this in sync with QMessageBox::ButtonRole and QPlatformDialogHelper::ButtonRole + InvalidRole = -1, + AcceptRole, + RejectRole, + DestructiveRole, + ActionRole, + HelpRole, + YesRole, + NoRole, + ResetRole, + ApplyRole, + + NRoles + }; + + enum StandardButton { + // keep this in sync with QMessageBox::StandardButton and QPlatformDialogHelper::StandardButton + NoButton = 0x00000000, + Ok = 0x00000400, + Save = 0x00000800, + SaveAll = 0x00001000, + Open = 0x00002000, + Yes = 0x00004000, + YesToAll = 0x00008000, + No = 0x00010000, + NoToAll = 0x00020000, + Abort = 0x00040000, + Retry = 0x00080000, + Ignore = 0x00100000, + Close = 0x00200000, + Cancel = 0x00400000, + Discard = 0x00800000, + Help = 0x01000000, + Apply = 0x02000000, + Reset = 0x04000000, + RestoreDefaults = 0x08000000, + +#ifndef Q_MOC_RUN + FirstButton = Ok, + LastButton = RestoreDefaults +#endif + }; + + Q_DECLARE_FLAGS(StandardButtons, StandardButton) + Q_FLAG(StandardButtons) + + enum ButtonLayout { + // keep this in sync with QPlatformDialogHelper::ButtonLayout + WinLayout, + MacLayout, + KdeLayout, + GnomeLayout, + AndroidLayout + }; + + QDialogButtonBox(QWidget *parent = nullptr); + QDialogButtonBox(Qt::Orientation orientation, QWidget *parent = nullptr); + explicit QDialogButtonBox(StandardButtons buttons, QWidget *parent = nullptr); + QDialogButtonBox(StandardButtons buttons, Qt::Orientation orientation, + QWidget *parent = nullptr); + ~QDialogButtonBox(); + + void setOrientation(Qt::Orientation orientation); + Qt::Orientation orientation() const; + + void addButton(QAbstractButton *button, ButtonRole role); + QPushButton *addButton(const QString &text, ButtonRole role); + QPushButton *addButton(StandardButton button); + void removeButton(QAbstractButton *button); + void clear(); + + QList buttons() const; + ButtonRole buttonRole(QAbstractButton *button) const; + + void setStandardButtons(StandardButtons buttons); + StandardButtons standardButtons() const; + StandardButton standardButton(QAbstractButton *button) const; + QPushButton *button(StandardButton which) const; + + void setCenterButtons(bool center); + bool centerButtons() const; + +Q_SIGNALS: + void clicked(QAbstractButton *button); + void accepted(); + void helpRequested(); + void rejected(); + +protected: + void changeEvent(QEvent *event) override; + bool event(QEvent *event) override; + +private: + Q_DISABLE_COPY(QDialogButtonBox) + Q_DECLARE_PRIVATE(QDialogButtonBox) +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QDialogButtonBox::StandardButtons) + +QT_END_NAMESPACE + +#endif // QDIALOGBUTTONBOX_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qdockwidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdockwidget.h new file mode 100644 index 0000000000000000000000000000000000000000..559a3a3792a54f574935fc0d0cb98327ae064ac3 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdockwidget.h @@ -0,0 +1,103 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QDYNAMICDOCKWIDGET_H +#define QDYNAMICDOCKWIDGET_H + +#include +#include + +QT_REQUIRE_CONFIG(dockwidget); + +QT_BEGIN_NAMESPACE + +class QDockAreaLayout; +class QDockWidgetPrivate; +class QMainWindow; +class QStyleOptionDockWidget; + +class Q_WIDGETS_EXPORT QDockWidget : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(bool floating READ isFloating WRITE setFloating NOTIFY topLevelChanged) + Q_PROPERTY(DockWidgetFeatures features READ features WRITE setFeatures NOTIFY featuresChanged) + Q_PROPERTY(Qt::DockWidgetAreas allowedAreas READ allowedAreas + WRITE setAllowedAreas NOTIFY allowedAreasChanged) + Q_PROPERTY(QString windowTitle READ windowTitle WRITE setWindowTitle DESIGNABLE true) + +public: + explicit QDockWidget(const QString &title, QWidget *parent = nullptr, + Qt::WindowFlags flags = Qt::WindowFlags()); + explicit QDockWidget(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()); + ~QDockWidget(); + + QWidget *widget() const; + void setWidget(QWidget *widget); + + enum DockWidgetFeature { + DockWidgetClosable = 0x01, + DockWidgetMovable = 0x02, + DockWidgetFloatable = 0x04, + DockWidgetVerticalTitleBar = 0x08, + + DockWidgetFeatureMask = 0x0f, + NoDockWidgetFeatures = 0x00, + + Reserved = 0xff + }; + Q_DECLARE_FLAGS(DockWidgetFeatures, DockWidgetFeature) + Q_FLAG(DockWidgetFeatures) + + void setFeatures(DockWidgetFeatures features); + DockWidgetFeatures features() const; + + void setFloating(bool floating); + inline bool isFloating() const { return isWindow(); } + + void setAllowedAreas(Qt::DockWidgetAreas areas); + Qt::DockWidgetAreas allowedAreas() const; + + void setTitleBarWidget(QWidget *widget); + QWidget *titleBarWidget() const; + + inline bool isAreaAllowed(Qt::DockWidgetArea area) const + { return (allowedAreas() & area) == area; } + +#ifndef QT_NO_DEBUG_STREAM + friend Q_WIDGETS_EXPORT QDebug operator<<(QDebug dbg, const QDockWidget *dockWidget); +#endif + +#ifndef QT_NO_ACTION + QAction *toggleViewAction() const; +#endif + +Q_SIGNALS: + void featuresChanged(QDockWidget::DockWidgetFeatures features); + void topLevelChanged(bool topLevel); + void allowedAreasChanged(Qt::DockWidgetAreas allowedAreas); + void visibilityChanged(bool visible); // ### Qt7: Deprecate this. Better listen to hide/show events + void dockLocationChanged(Qt::DockWidgetArea area); + +protected: + void changeEvent(QEvent *event) override; + void closeEvent(QCloseEvent *event) override; + void paintEvent(QPaintEvent *event) override; + bool event(QEvent *event) override; + virtual void initStyleOption(QStyleOptionDockWidget *option) const; + +private: + Q_DECLARE_PRIVATE(QDockWidget) + Q_DISABLE_COPY(QDockWidget) + friend class QDockAreaLayout; + friend class QDockWidgetItem; + friend class QMainWindowLayout; + friend class QDockWidgetLayout; + friend class QDockAreaLayoutInfo; +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QDockWidget::DockWidgetFeatures) + +QT_END_NAMESPACE + +#endif // QDYNAMICDOCKWIDGET_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qdrawutil.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdrawutil.h new file mode 100644 index 0000000000000000000000000000000000000000..49e5cb3a71969ec83634667c145fb5971d416052 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qdrawutil.h @@ -0,0 +1,144 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QDRAWUTIL_H +#define QDRAWUTIL_H + +#include +#include +#include // char*->QString conversion +#include +#include +QT_BEGIN_NAMESPACE + + +class QPainter; +class QPalette; +class QPoint; +class QColor; +class QBrush; +class QRect; + +// +// Standard shade drawing +// + +Q_WIDGETS_EXPORT void qDrawShadeLine(QPainter *p, int x1, int y1, int x2, int y2, + const QPalette &pal, bool sunken = true, + int lineWidth = 1, int midLineWidth = 0); + +Q_WIDGETS_EXPORT void qDrawShadeLine(QPainter *p, const QPoint &p1, const QPoint &p2, + const QPalette &pal, bool sunken = true, + int lineWidth = 1, int midLineWidth = 0); + +Q_WIDGETS_EXPORT void qDrawShadeRect(QPainter *p, int x, int y, int w, int h, + const QPalette &pal, bool sunken = false, + int lineWidth = 1, int midLineWidth = 0, + const QBrush *fill = nullptr); + +Q_WIDGETS_EXPORT void qDrawShadeRect(QPainter *p, const QRect &r, + const QPalette &pal, bool sunken = false, + int lineWidth = 1, int midLineWidth = 0, + const QBrush *fill = nullptr); + +Q_WIDGETS_EXPORT void qDrawShadePanel(QPainter *p, int x, int y, int w, int h, + const QPalette &pal, bool sunken = false, + int lineWidth = 1, const QBrush *fill = nullptr); + +Q_WIDGETS_EXPORT void qDrawShadePanel(QPainter *p, const QRect &r, + const QPalette &pal, bool sunken = false, + int lineWidth = 1, const QBrush *fill = nullptr); + +Q_WIDGETS_EXPORT void qDrawWinButton(QPainter *p, int x, int y, int w, int h, + const QPalette &pal, bool sunken = false, + const QBrush *fill = nullptr); + +Q_WIDGETS_EXPORT void qDrawWinButton(QPainter *p, const QRect &r, + const QPalette &pal, bool sunken = false, + const QBrush *fill = nullptr); + +Q_WIDGETS_EXPORT void qDrawWinPanel(QPainter *p, int x, int y, int w, int h, + const QPalette &pal, bool sunken = false, + const QBrush *fill = nullptr); + +Q_WIDGETS_EXPORT void qDrawWinPanel(QPainter *p, const QRect &r, + const QPalette &pal, bool sunken = false, + const QBrush *fill = nullptr); + +Q_WIDGETS_EXPORT void qDrawPlainRect(QPainter *p, int x, int y, int w, int h, const QColor &, + int lineWidth = 1, const QBrush *fill = nullptr); + +Q_WIDGETS_EXPORT void qDrawPlainRect(QPainter *p, const QRect &r, const QColor &, + int lineWidth = 1, const QBrush *fill = nullptr); + +Q_WIDGETS_EXPORT void qDrawPlainRoundedRect(QPainter *p, int x, int y, int w, int h, + qreal rx, qreal ry, const QColor &, int lineWidth = 1, + const QBrush *fill = nullptr); + +inline void qDrawPlainRoundedRect(QPainter *painter, const QRect& rect, qreal rx, qreal ry, + const QColor &lineColor, int lineWidth = 1, + const QBrush *fill = nullptr) +{ + qDrawPlainRoundedRect(painter, rect.x(), rect.y(), rect.width(), rect.height(), + rx, ry, lineColor, lineWidth, fill); +} + + +struct QTileRules +{ + inline QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule) + : horizontal(horizontalRule), vertical(verticalRule) {} + inline QTileRules(Qt::TileRule rule = Qt::StretchTile) + : horizontal(rule), vertical(rule) {} + Qt::TileRule horizontal; + Qt::TileRule vertical; +}; + +#ifndef Q_QDOC +// For internal use only. +namespace QDrawBorderPixmap +{ + enum DrawingHint + { + OpaqueTopLeft = 0x0001, + OpaqueTop = 0x0002, + OpaqueTopRight = 0x0004, + OpaqueLeft = 0x0008, + OpaqueCenter = 0x0010, + OpaqueRight = 0x0020, + OpaqueBottomLeft = 0x0040, + OpaqueBottom = 0x0080, + OpaqueBottomRight = 0x0100, + OpaqueCorners = OpaqueTopLeft | OpaqueTopRight | OpaqueBottomLeft | OpaqueBottomRight, + OpaqueEdges = OpaqueTop | OpaqueLeft | OpaqueRight | OpaqueBottom, + OpaqueFrame = OpaqueCorners | OpaqueEdges, + OpaqueAll = OpaqueCenter | OpaqueFrame + }; + + Q_DECLARE_FLAGS(DrawingHints, DrawingHint) +} +#endif + +Q_WIDGETS_EXPORT void qDrawBorderPixmap(QPainter *painter, + const QRect &targetRect, + const QMargins &targetMargins, + const QPixmap &pixmap, + const QRect &sourceRect, + const QMargins &sourceMargins, + const QTileRules &rules = QTileRules() +#ifndef Q_QDOC + , QDrawBorderPixmap::DrawingHints hints = QDrawBorderPixmap::DrawingHints() +#endif + ); + +inline void qDrawBorderPixmap(QPainter *painter, + const QRect &target, + const QMargins &margins, + const QPixmap &pixmap) +{ + qDrawBorderPixmap(painter, target, margins, pixmap, pixmap.rect(), margins); +} + +QT_END_NAMESPACE + +#endif // QDRAWUTIL_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qerrormessage.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qerrormessage.h new file mode 100644 index 0000000000000000000000000000000000000000..64be81aace1ce2c0c4307f25b07c3d9844f9f579 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qerrormessage.h @@ -0,0 +1,41 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QERRORMESSAGE_H +#define QERRORMESSAGE_H + +#include + +#include + +QT_REQUIRE_CONFIG(errormessage); + +QT_BEGIN_NAMESPACE + +class QErrorMessagePrivate; + +class Q_WIDGETS_EXPORT QErrorMessage: public QDialog +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QErrorMessage) +public: + explicit QErrorMessage(QWidget* parent = nullptr); + ~QErrorMessage(); + + static QErrorMessage * qtHandler(); + +public Q_SLOTS: + void showMessage(const QString &message); + void showMessage(const QString &message, const QString &type); + +protected: + void done(int) override; + void changeEvent(QEvent *e) override; + +private: + Q_DISABLE_COPY(QErrorMessage) +}; + +QT_END_NAMESPACE + +#endif // QERRORMESSAGE_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qfiledialog.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfiledialog.h new file mode 100644 index 0000000000000000000000000000000000000000..364972f49184b2e1c2db39ffbb144fdf9dc514e7 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfiledialog.h @@ -0,0 +1,251 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QFILEDIALOG_H +#define QFILEDIALOG_H + +#include +#include +#include +#include +#include + +#include + +QT_REQUIRE_CONFIG(filedialog); + +QT_BEGIN_NAMESPACE + +class QModelIndex; +class QItemSelection; +struct QFileDialogArgs; +class QFileDialogPrivate; +class QAbstractFileIconProvider; +class QAbstractItemDelegate; +class QAbstractProxyModel; + +class Q_WIDGETS_EXPORT QFileDialog : public QDialog +{ + Q_OBJECT + Q_PROPERTY(ViewMode viewMode READ viewMode WRITE setViewMode) + Q_PROPERTY(FileMode fileMode READ fileMode WRITE setFileMode) + Q_PROPERTY(AcceptMode acceptMode READ acceptMode WRITE setAcceptMode) + Q_PROPERTY(QString defaultSuffix READ defaultSuffix WRITE setDefaultSuffix) + Q_PROPERTY(Options options READ options WRITE setOptions) + Q_PROPERTY(QStringList supportedSchemes READ supportedSchemes WRITE setSupportedSchemes) + +public: + enum ViewMode { Detail, List }; + Q_ENUM(ViewMode) + enum FileMode { AnyFile, ExistingFile, Directory, ExistingFiles }; + Q_ENUM(FileMode) + enum AcceptMode { AcceptOpen, AcceptSave }; + Q_ENUM(AcceptMode) + enum DialogLabel { LookIn, FileName, FileType, Accept, Reject }; + + // keep this in sync with QFileDialogOption::FileDialogOptions + enum Option + { + ShowDirsOnly = 0x00000001, + DontResolveSymlinks = 0x00000002, + DontConfirmOverwrite = 0x00000004, + DontUseNativeDialog = 0x00000008, + ReadOnly = 0x00000010, + HideNameFilterDetails = 0x00000020, + DontUseCustomDirectoryIcons = 0x00000040 + }; + Q_ENUM(Option) + Q_DECLARE_FLAGS(Options, Option) + Q_FLAG(Options) + + QFileDialog(QWidget *parent, Qt::WindowFlags f); + explicit QFileDialog(QWidget *parent = nullptr, + const QString &caption = QString(), + const QString &directory = QString(), + const QString &filter = QString()); + ~QFileDialog(); + + void setDirectory(const QString &directory); + inline void setDirectory(const QDir &directory); + QDir directory() const; + + void setDirectoryUrl(const QUrl &directory); + QUrl directoryUrl() const; + + void selectFile(const QString &filename); + QStringList selectedFiles() const; + + void selectUrl(const QUrl &url); + QList selectedUrls() const; + + void setNameFilter(const QString &filter); + void setNameFilters(const QStringList &filters); + QStringList nameFilters() const; + void selectNameFilter(const QString &filter); + QString selectedMimeTypeFilter() const; + QString selectedNameFilter() const; + +#if QT_CONFIG(mimetype) + void setMimeTypeFilters(const QStringList &filters); + QStringList mimeTypeFilters() const; + void selectMimeTypeFilter(const QString &filter); +#endif + + QDir::Filters filter() const; + void setFilter(QDir::Filters filters); + + void setViewMode(ViewMode mode); + ViewMode viewMode() const; + + void setFileMode(FileMode mode); + FileMode fileMode() const; + + void setAcceptMode(AcceptMode mode); + AcceptMode acceptMode() const; + + void setSidebarUrls(const QList &urls); + QList sidebarUrls() const; + + QByteArray saveState() const; + bool restoreState(const QByteArray &state); + + void setDefaultSuffix(const QString &suffix); + QString defaultSuffix() const; + + void setHistory(const QStringList &paths); + QStringList history() const; + + void setItemDelegate(QAbstractItemDelegate *delegate); + QAbstractItemDelegate *itemDelegate() const; + + void setIconProvider(QAbstractFileIconProvider *provider); + QAbstractFileIconProvider *iconProvider() const; + + void setLabelText(DialogLabel label, const QString &text); + QString labelText(DialogLabel label) const; + + void setSupportedSchemes(const QStringList &schemes); + QStringList supportedSchemes() const; + +#if QT_CONFIG(proxymodel) + void setProxyModel(QAbstractProxyModel *model); + QAbstractProxyModel *proxyModel() const; +#endif + + void setOption(Option option, bool on = true); + bool testOption(Option option) const; + void setOptions(Options options); + Options options() const; + + using QDialog::open; + void open(QObject *receiver, const char *member); + void setVisible(bool visible) override; + +Q_SIGNALS: + void fileSelected(const QString &file); + void filesSelected(const QStringList &files); + void currentChanged(const QString &path); + void directoryEntered(const QString &directory); + + void urlSelected(const QUrl &url); + void urlsSelected(const QList &urls); + void currentUrlChanged(const QUrl &url); + void directoryUrlEntered(const QUrl &directory); + + void filterSelected(const QString &filter); + +public: + + static QString getOpenFileName(QWidget *parent = nullptr, + const QString &caption = QString(), + const QString &dir = QString(), + const QString &filter = QString(), + QString *selectedFilter = nullptr, + Options options = Options()); + + static QUrl getOpenFileUrl(QWidget *parent = nullptr, + const QString &caption = QString(), + const QUrl &dir = QUrl(), + const QString &filter = QString(), + QString *selectedFilter = nullptr, + Options options = Options(), + const QStringList &supportedSchemes = QStringList()); + + static QString getSaveFileName(QWidget *parent = nullptr, + const QString &caption = QString(), + const QString &dir = QString(), + const QString &filter = QString(), + QString *selectedFilter = nullptr, + Options options = Options()); + + static QUrl getSaveFileUrl(QWidget *parent = nullptr, + const QString &caption = QString(), + const QUrl &dir = QUrl(), + const QString &filter = QString(), + QString *selectedFilter = nullptr, + Options options = Options(), + const QStringList &supportedSchemes = QStringList()); + + static QString getExistingDirectory(QWidget *parent = nullptr, + const QString &caption = QString(), + const QString &dir = QString(), + Options options = ShowDirsOnly); + + static QUrl getExistingDirectoryUrl(QWidget *parent = nullptr, + const QString &caption = QString(), + const QUrl &dir = QUrl(), + Options options = ShowDirsOnly, + const QStringList &supportedSchemes = QStringList()); + + static QStringList getOpenFileNames(QWidget *parent = nullptr, + const QString &caption = QString(), + const QString &dir = QString(), + const QString &filter = QString(), + QString *selectedFilter = nullptr, + Options options = Options()); + + static QList getOpenFileUrls(QWidget *parent = nullptr, + const QString &caption = QString(), + const QUrl &dir = QUrl(), + const QString &filter = QString(), + QString *selectedFilter = nullptr, + Options options = Options(), + const QStringList &supportedSchemes = QStringList()); + + static void getOpenFileContent(const QString &nameFilter, + const std::function &fileContentsReady, + QWidget *parent= nullptr); + + static void saveFileContent(const QByteArray &fileContent, + const QString &fileNameHint, + QWidget *parent = nullptr); + +#if QT_WIDGETS_REMOVED_SINCE(6, 7) + static void getOpenFileContent(const QString &nameFilter, + const std::function &fileContentsReady); + static void saveFileContent(const QByteArray &fileContent, + const QString &fileNameHint = QString()); +#endif + + +protected: + QFileDialog(const QFileDialogArgs &args); + void done(int result) override; + void accept() override; + void changeEvent(QEvent *e) override; + +private: + Q_DECLARE_PRIVATE(QFileDialog) + Q_DISABLE_COPY(QFileDialog) + + friend class QPlatformDialogHelper; +}; + +inline void QFileDialog::setDirectory(const QDir &adirectory) +{ setDirectory(adirectory.absolutePath()); } + +Q_DECLARE_OPERATORS_FOR_FLAGS(QFileDialog::Options) + +QT_END_NAMESPACE + +#endif // QFILEDIALOG_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qfileiconprovider.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfileiconprovider.h new file mode 100644 index 0000000000000000000000000000000000000000..1e3d2f600aebf8b784f227f5975e488cd73934c7 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfileiconprovider.h @@ -0,0 +1,34 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QFILEICONPROVIDER_H +#define QFILEICONPROVIDER_H + +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + + +class QFileIconProviderPrivate; + +class Q_WIDGETS_EXPORT QFileIconProvider : public QAbstractFileIconProvider +{ +public: + QFileIconProvider(); + ~QFileIconProvider(); + + QIcon icon(IconType type) const override; + QIcon icon(const QFileInfo &info) const override; + +private: + Q_DECLARE_PRIVATE(QFileIconProvider) + Q_DISABLE_COPY(QFileIconProvider) +}; + +QT_END_NAMESPACE + +#endif // QFILEICONPROVIDER_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qfilesystemmodel.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfilesystemmodel.h new file mode 100644 index 0000000000000000000000000000000000000000..170680dbe26f39c10ae2d9278c7c277de616dcc1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfilesystemmodel.h @@ -0,0 +1,7 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#include + +QT_BEGIN_NAMESPACE +QT_END_NAMESPACE diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qfocusframe.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfocusframe.h new file mode 100644 index 0000000000000000000000000000000000000000..c99937f936e43b527abe78d0e3164227be28968f --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfocusframe.h @@ -0,0 +1,40 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QFOCUSFRAME_H +#define QFOCUSFRAME_H + +#include +#include + +QT_BEGIN_NAMESPACE + + +class QFocusFramePrivate; +class QStyleOption; + +class Q_WIDGETS_EXPORT QFocusFrame : public QWidget +{ + Q_OBJECT +public: + QFocusFrame(QWidget *parent = nullptr); + ~QFocusFrame(); + + void setWidget(QWidget *widget); + QWidget *widget() const; + +protected: + bool event(QEvent *e) override; + + bool eventFilter(QObject *, QEvent *) override; + void paintEvent(QPaintEvent *) override; + virtual void initStyleOption(QStyleOption *option) const; + +private: + Q_DECLARE_PRIVATE(QFocusFrame) + Q_DISABLE_COPY(QFocusFrame) +}; + +QT_END_NAMESPACE + +#endif // QFOCUSFRAME_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qfontcombobox.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfontcombobox.h new file mode 100644 index 0000000000000000000000000000000000000000..2ab6cdb4a6e6b3b80837e71dc32cdc683726857a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfontcombobox.h @@ -0,0 +1,74 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QFONTCOMBOBOX_H +#define QFONTCOMBOBOX_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(fontcombobox); + +QT_BEGIN_NAMESPACE + +class QFontComboBoxPrivate; + +class Q_WIDGETS_EXPORT QFontComboBox : public QComboBox +{ + Q_OBJECT + Q_PROPERTY(QFontDatabase::WritingSystem writingSystem READ writingSystem WRITE setWritingSystem) + Q_PROPERTY(FontFilters fontFilters READ fontFilters WRITE setFontFilters) + Q_PROPERTY(QFont currentFont READ currentFont WRITE setCurrentFont NOTIFY currentFontChanged) + +public: + explicit QFontComboBox(QWidget *parent = nullptr); + ~QFontComboBox(); + + void setWritingSystem(QFontDatabase::WritingSystem); + QFontDatabase::WritingSystem writingSystem() const; + + enum FontFilter { + AllFonts = 0, + ScalableFonts = 0x1, + NonScalableFonts = 0x2, + MonospacedFonts = 0x4, + ProportionalFonts = 0x8 + }; + Q_DECLARE_FLAGS(FontFilters, FontFilter) + Q_FLAG(FontFilters) + + void setFontFilters(FontFilters filters); + FontFilters fontFilters() const; + + QFont currentFont() const; + QSize sizeHint() const override; + + void setSampleTextForSystem(QFontDatabase::WritingSystem writingSystem, const QString &sampleText); + QString sampleTextForSystem(QFontDatabase::WritingSystem writingSystem) const; + + void setSampleTextForFont(const QString &fontFamily, const QString &sampleText); + QString sampleTextForFont(const QString &fontFamily) const; + + void setDisplayFont(const QString &fontFamily, const QFont &font); + std::optional displayFont(const QString &fontFamily) const; + +public Q_SLOTS: + void setCurrentFont(const QFont &f); + +Q_SIGNALS: + void currentFontChanged(const QFont &f); + +protected: + bool event(QEvent *e) override; + +private: + Q_DISABLE_COPY(QFontComboBox) + Q_DECLARE_PRIVATE(QFontComboBox) +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QFontComboBox::FontFilters) + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qfontdialog.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfontdialog.h new file mode 100644 index 0000000000000000000000000000000000000000..2007fd1b40ed3463d2b52dddd2a401bc1df6e6ab --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qfontdialog.h @@ -0,0 +1,79 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QFONTDIALOG_H +#define QFONTDIALOG_H + +#include +#include +#include + +#include + +QT_REQUIRE_CONFIG(fontdialog); + +QT_BEGIN_NAMESPACE + +class QFontDialogPrivate; + +class Q_WIDGETS_EXPORT QFontDialog : public QDialog +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QFontDialog) + Q_PROPERTY(QFont currentFont READ currentFont WRITE setCurrentFont NOTIFY currentFontChanged) + Q_PROPERTY(FontDialogOptions options READ options WRITE setOptions) + +public: + enum FontDialogOption { + NoButtons = 0x00000001, + DontUseNativeDialog = 0x00000002, + ScalableFonts = 0x00000004, + NonScalableFonts = 0x00000008, + MonospacedFonts = 0x00000010, + ProportionalFonts = 0x00000020 + }; + Q_ENUM(FontDialogOption) + + Q_DECLARE_FLAGS(FontDialogOptions, FontDialogOption) + + explicit QFontDialog(QWidget *parent = nullptr); + explicit QFontDialog(const QFont &initial, QWidget *parent = nullptr); + ~QFontDialog(); + + void setCurrentFont(const QFont &font); + QFont currentFont() const; + + QFont selectedFont() const; + + void setOption(FontDialogOption option, bool on = true); + bool testOption(FontDialogOption option) const; + void setOptions(FontDialogOptions options); + FontDialogOptions options() const; + + using QDialog::open; + void open(QObject *receiver, const char *member); + + void setVisible(bool visible) override; + + static QFont getFont(bool *ok, QWidget *parent = nullptr); + static QFont getFont(bool *ok, const QFont &initial, QWidget *parent = nullptr, const QString &title = QString(), + FontDialogOptions options = FontDialogOptions()); + +Q_SIGNALS: + void currentFontChanged(const QFont &font); + void fontSelected(const QFont &font); + +protected: + void changeEvent(QEvent *event) override; + void done(int result) override; + bool eventFilter(QObject *object, QEvent *event) override; + +private: + Q_DISABLE_COPY(QFontDialog) +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QFontDialog::FontDialogOptions) + +QT_END_NAMESPACE + +#endif // QFONTDIALOG_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qformlayout.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qformlayout.h new file mode 100644 index 0000000000000000000000000000000000000000..02b08268808a379bfe52146f07d832362f7663e5 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qformlayout.h @@ -0,0 +1,152 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QFORMLAYOUT_H +#define QFORMLAYOUT_H + +#include +#include + +QT_REQUIRE_CONFIG(formlayout); + +QT_BEGIN_NAMESPACE + + +class QFormLayoutPrivate; + +class Q_WIDGETS_EXPORT QFormLayout : public QLayout +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QFormLayout) + Q_PROPERTY(FieldGrowthPolicy fieldGrowthPolicy READ fieldGrowthPolicy WRITE setFieldGrowthPolicy + RESET resetFieldGrowthPolicy) + Q_PROPERTY(RowWrapPolicy rowWrapPolicy READ rowWrapPolicy WRITE setRowWrapPolicy + RESET resetRowWrapPolicy) + Q_PROPERTY(Qt::Alignment labelAlignment READ labelAlignment WRITE setLabelAlignment + RESET resetLabelAlignment) + Q_PROPERTY(Qt::Alignment formAlignment READ formAlignment WRITE setFormAlignment + RESET resetFormAlignment) + Q_PROPERTY(int horizontalSpacing READ horizontalSpacing WRITE setHorizontalSpacing) + Q_PROPERTY(int verticalSpacing READ verticalSpacing WRITE setVerticalSpacing) + +public: + enum FieldGrowthPolicy { + FieldsStayAtSizeHint, + ExpandingFieldsGrow, + AllNonFixedFieldsGrow + }; + Q_ENUM(FieldGrowthPolicy) + + enum RowWrapPolicy { + DontWrapRows, + WrapLongRows, + WrapAllRows + }; + Q_ENUM(RowWrapPolicy) + + enum ItemRole { + LabelRole = 0, + FieldRole = 1, + SpanningRole = 2 + }; + Q_ENUM(ItemRole) + + struct TakeRowResult { + QLayoutItem *labelItem; + QLayoutItem *fieldItem; + }; + + explicit QFormLayout(QWidget *parent = nullptr); + ~QFormLayout(); + + void setFieldGrowthPolicy(FieldGrowthPolicy policy); + FieldGrowthPolicy fieldGrowthPolicy() const; + void setRowWrapPolicy(RowWrapPolicy policy); + RowWrapPolicy rowWrapPolicy() const; + void setLabelAlignment(Qt::Alignment alignment); + Qt::Alignment labelAlignment() const; + void setFormAlignment(Qt::Alignment alignment); + Qt::Alignment formAlignment() const; + + void setHorizontalSpacing(int spacing); + int horizontalSpacing() const; + void setVerticalSpacing(int spacing); + int verticalSpacing() const; + + int spacing() const override; + void setSpacing(int) override; + + void addRow(QWidget *label, QWidget *field); + void addRow(QWidget *label, QLayout *field); + void addRow(const QString &labelText, QWidget *field); + void addRow(const QString &labelText, QLayout *field); + void addRow(QWidget *widget); + void addRow(QLayout *layout); + + void insertRow(int row, QWidget *label, QWidget *field); + void insertRow(int row, QWidget *label, QLayout *field); + void insertRow(int row, const QString &labelText, QWidget *field); + void insertRow(int row, const QString &labelText, QLayout *field); + void insertRow(int row, QWidget *widget); + void insertRow(int row, QLayout *layout); + + void removeRow(int row); + void removeRow(QWidget *widget); + void removeRow(QLayout *layout); + + TakeRowResult takeRow(int row); + TakeRowResult takeRow(QWidget *widget); + TakeRowResult takeRow(QLayout *layout); + + void setItem(int row, ItemRole role, QLayoutItem *item); + void setWidget(int row, ItemRole role, QWidget *widget); + void setLayout(int row, ItemRole role, QLayout *layout); + + void setRowVisible(int row, bool on); + void setRowVisible(QWidget *widget, bool on); + void setRowVisible(QLayout *layout, bool on); + + bool isRowVisible(int row) const; + bool isRowVisible(QWidget *widget) const; + bool isRowVisible(QLayout *layout) const; + + QLayoutItem *itemAt(int row, ItemRole role) const; + void getItemPosition(int index, int *rowPtr, ItemRole *rolePtr) const; + void getWidgetPosition(QWidget *widget, int *rowPtr, ItemRole *rolePtr) const; + void getLayoutPosition(QLayout *layout, int *rowPtr, ItemRole *rolePtr) const; + QWidget *labelForField(QWidget *field) const; + QWidget *labelForField(QLayout *field) const; + + // reimplemented from QLayout + void addItem(QLayoutItem *item) override; + QLayoutItem *itemAt(int index) const override; + QLayoutItem *takeAt(int index) override; + + void setGeometry(const QRect &rect) override; + QSize minimumSize() const override; + QSize sizeHint() const override; + void invalidate() override; + + bool hasHeightForWidth() const override; + int heightForWidth(int width) const override; + Qt::Orientations expandingDirections() const override; + int count() const override; + + int rowCount() const; + +#if 0 + void dump() const; +#endif + +private: + void resetFieldGrowthPolicy(); + void resetRowWrapPolicy(); + void resetLabelAlignment(); + void resetFormAlignment(); +}; + +Q_DECLARE_TYPEINFO(QFormLayout::TakeRowResult, Q_PRIMITIVE_TYPE); + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qframe.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qframe.h new file mode 100644 index 0000000000000000000000000000000000000000..c866e1d8b5fc406c74f686bbc18ec47bf7a2a357 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qframe.h @@ -0,0 +1,94 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QFRAME_H +#define QFRAME_H + +#include +#include + +QT_BEGIN_NAMESPACE + + +class QFramePrivate; +class QStyleOptionFrame; + +class Q_WIDGETS_EXPORT QFrame : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(Shape frameShape READ frameShape WRITE setFrameShape) + Q_PROPERTY(Shadow frameShadow READ frameShadow WRITE setFrameShadow) + Q_PROPERTY(int lineWidth READ lineWidth WRITE setLineWidth) + Q_PROPERTY(int midLineWidth READ midLineWidth WRITE setMidLineWidth) + Q_PROPERTY(int frameWidth READ frameWidth) + Q_PROPERTY(QRect frameRect READ frameRect WRITE setFrameRect DESIGNABLE false) + +public: + explicit QFrame(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags()); + ~QFrame(); + + int frameStyle() const; + void setFrameStyle(int); + + int frameWidth() const; + + QSize sizeHint() const override; + + enum Shape { + NoFrame = 0, // no frame + Box = 0x0001, // rectangular box + Panel = 0x0002, // rectangular panel + WinPanel = 0x0003, // rectangular panel (Windows) + HLine = 0x0004, // horizontal line + VLine = 0x0005, // vertical line + StyledPanel = 0x0006 // rectangular panel depending on the GUI style + }; + Q_ENUM(Shape) + enum Shadow { + Plain = 0x0010, // plain line + Raised = 0x0020, // raised shadow effect + Sunken = 0x0030 // sunken shadow effect + }; + Q_ENUM(Shadow) + + enum StyleMask { + Shadow_Mask = 0x00f0, // mask for the shadow + Shape_Mask = 0x000f // mask for the shape + }; + + Shape frameShape() const; + void setFrameShape(Shape); + Shadow frameShadow() const; + void setFrameShadow(Shadow); + + int lineWidth() const; + void setLineWidth(int); + + int midLineWidth() const; + void setMidLineWidth(int); + + QRect frameRect() const; + void setFrameRect(const QRect &); + +protected: + bool event(QEvent *e) override; + void paintEvent(QPaintEvent *) override; + void changeEvent(QEvent *) override; + void drawFrame(QPainter *); + + +protected: + QFrame(QFramePrivate &dd, QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags()); + virtual void initStyleOption(QStyleOptionFrame *option) const; + +private: + Q_DISABLE_COPY(QFrame) + Q_DECLARE_PRIVATE(QFrame) +}; + +Q_DECLARE_MIXED_ENUM_OPERATORS_SYMMETRIC(int, QFrame::Shape, QFrame::Shadow) + +QT_END_NAMESPACE + +#endif // QFRAME_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgesture.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgesture.h new file mode 100644 index 0000000000000000000000000000000000000000..05ce54698771a5f5b32524196fd831aff95dc8c8 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgesture.h @@ -0,0 +1,299 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGESTURE_H +#define QGESTURE_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef QT_NO_GESTURES + +// ### move to qnamespace.h +QT_DECL_METATYPE_EXTERN_TAGGED(Qt::GestureState, Qt__GestureState, Q_WIDGETS_EXPORT) +// ### move to qnamespace.h +QT_DECL_METATYPE_EXTERN_TAGGED(Qt::GestureType, Qt__GestureType, Q_WIDGETS_EXPORT) + +QT_BEGIN_NAMESPACE + + +class QGesturePrivate; +class Q_WIDGETS_EXPORT QGesture : public QObject +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QGesture) + + Q_PROPERTY(Qt::GestureState state READ state) + Q_PROPERTY(Qt::GestureType gestureType READ gestureType) + Q_PROPERTY(QGesture::GestureCancelPolicy gestureCancelPolicy READ gestureCancelPolicy + WRITE setGestureCancelPolicy) + Q_PROPERTY(QPointF hotSpot READ hotSpot WRITE setHotSpot RESET unsetHotSpot) + Q_PROPERTY(bool hasHotSpot READ hasHotSpot) + +public: + explicit QGesture(QObject *parent = nullptr); + ~QGesture(); + + Qt::GestureType gestureType() const; + + Qt::GestureState state() const; + + QPointF hotSpot() const; + void setHotSpot(const QPointF &value); + bool hasHotSpot() const; + void unsetHotSpot(); + + enum GestureCancelPolicy { + CancelNone = 0, + CancelAllInContext + }; + + void setGestureCancelPolicy(GestureCancelPolicy policy); + GestureCancelPolicy gestureCancelPolicy() const; + +protected: + QGesture(QGesturePrivate &dd, QObject *parent); + +private: + friend class QGestureEvent; + friend class QGestureRecognizer; + friend class QGestureManager; + friend class QGraphicsScenePrivate; +}; + +class QPanGesturePrivate; +class Q_WIDGETS_EXPORT QPanGesture : public QGesture +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QPanGesture) + + Q_PROPERTY(QPointF lastOffset READ lastOffset WRITE setLastOffset) + Q_PROPERTY(QPointF offset READ offset WRITE setOffset) + Q_PROPERTY(QPointF delta READ delta STORED false) + Q_PROPERTY(qreal acceleration READ acceleration WRITE setAcceleration) + Q_PRIVATE_PROPERTY(QPanGesture::d_func(), qreal horizontalVelocity READ horizontalVelocity WRITE setHorizontalVelocity) + Q_PRIVATE_PROPERTY(QPanGesture::d_func(), qreal verticalVelocity READ verticalVelocity WRITE setVerticalVelocity) + +public: + explicit QPanGesture(QObject *parent = nullptr); + ~QPanGesture(); + + QPointF lastOffset() const; + QPointF offset() const; + QPointF delta() const; + qreal acceleration() const; + + void setLastOffset(const QPointF &value); + void setOffset(const QPointF &value); + void setAcceleration(qreal value); + + friend class QPanGestureRecognizer; + friend class QWinNativePanGestureRecognizer; +}; + +class QPinchGesturePrivate; +class Q_WIDGETS_EXPORT QPinchGesture : public QGesture +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QPinchGesture) + +public: + enum ChangeFlag { + ScaleFactorChanged = 0x1, + RotationAngleChanged = 0x2, + CenterPointChanged = 0x4 + }; + Q_ENUM(ChangeFlag) + Q_DECLARE_FLAGS(ChangeFlags, ChangeFlag) + Q_FLAG(ChangeFlags) + + Q_PROPERTY(ChangeFlags totalChangeFlags READ totalChangeFlags WRITE setTotalChangeFlags) + Q_PROPERTY(ChangeFlags changeFlags READ changeFlags WRITE setChangeFlags) + + Q_PROPERTY(qreal totalScaleFactor READ totalScaleFactor WRITE setTotalScaleFactor) + Q_PROPERTY(qreal lastScaleFactor READ lastScaleFactor WRITE setLastScaleFactor) + Q_PROPERTY(qreal scaleFactor READ scaleFactor WRITE setScaleFactor) + + Q_PROPERTY(qreal totalRotationAngle READ totalRotationAngle WRITE setTotalRotationAngle) + Q_PROPERTY(qreal lastRotationAngle READ lastRotationAngle WRITE setLastRotationAngle) + Q_PROPERTY(qreal rotationAngle READ rotationAngle WRITE setRotationAngle) + + Q_PROPERTY(QPointF startCenterPoint READ startCenterPoint WRITE setStartCenterPoint) + Q_PROPERTY(QPointF lastCenterPoint READ lastCenterPoint WRITE setLastCenterPoint) + Q_PROPERTY(QPointF centerPoint READ centerPoint WRITE setCenterPoint) + +public: + explicit QPinchGesture(QObject *parent = nullptr); + ~QPinchGesture(); + + ChangeFlags totalChangeFlags() const; + void setTotalChangeFlags(ChangeFlags value); + + ChangeFlags changeFlags() const; + void setChangeFlags(ChangeFlags value); + + QPointF startCenterPoint() const; + QPointF lastCenterPoint() const; + QPointF centerPoint() const; + void setStartCenterPoint(const QPointF &value); + void setLastCenterPoint(const QPointF &value); + void setCenterPoint(const QPointF &value); + + qreal totalScaleFactor() const; + qreal lastScaleFactor() const; + qreal scaleFactor() const; + void setTotalScaleFactor(qreal value); + void setLastScaleFactor(qreal value); + void setScaleFactor(qreal value); + + qreal totalRotationAngle() const; + qreal lastRotationAngle() const; + qreal rotationAngle() const; + void setTotalRotationAngle(qreal value); + void setLastRotationAngle(qreal value); + void setRotationAngle(qreal value); + + friend class QPinchGestureRecognizer; +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QPinchGesture::ChangeFlags) + +QT_END_NAMESPACE + +QT_DECL_METATYPE_EXTERN_TAGGED(QPinchGesture::ChangeFlags, + QPinchGesture__ChangeFlags, Q_WIDGETS_EXPORT) + +QT_BEGIN_NAMESPACE + +class QSwipeGesturePrivate; +class Q_WIDGETS_EXPORT QSwipeGesture : public QGesture +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QSwipeGesture) + + Q_PROPERTY(SwipeDirection horizontalDirection READ horizontalDirection STORED false) + Q_PROPERTY(SwipeDirection verticalDirection READ verticalDirection STORED false) + Q_PROPERTY(qreal swipeAngle READ swipeAngle WRITE setSwipeAngle) + Q_PRIVATE_PROPERTY(QSwipeGesture::d_func(), qreal velocity READ velocity WRITE setVelocity) + +public: + enum SwipeDirection { NoDirection, Left, Right, Up, Down }; + Q_ENUM(SwipeDirection) + + explicit QSwipeGesture(QObject *parent = nullptr); + ~QSwipeGesture(); + + SwipeDirection horizontalDirection() const; + SwipeDirection verticalDirection() const; + + qreal swipeAngle() const; + void setSwipeAngle(qreal value); + + friend class QSwipeGestureRecognizer; +}; + +class QTapGesturePrivate; +class Q_WIDGETS_EXPORT QTapGesture : public QGesture +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QTapGesture) + + Q_PROPERTY(QPointF position READ position WRITE setPosition) + +public: + explicit QTapGesture(QObject *parent = nullptr); + ~QTapGesture(); + + QPointF position() const; + void setPosition(const QPointF &pos); + + friend class QTapGestureRecognizer; +}; + +class QTapAndHoldGesturePrivate; +class Q_WIDGETS_EXPORT QTapAndHoldGesture : public QGesture +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QTapAndHoldGesture) + + Q_PROPERTY(QPointF position READ position WRITE setPosition) + +public: + explicit QTapAndHoldGesture(QObject *parent = nullptr); + ~QTapAndHoldGesture(); + + QPointF position() const; + void setPosition(const QPointF &pos); + + static void setTimeout(int msecs); + static int timeout(); + + friend class QTapAndHoldGestureRecognizer; +}; + +class QGesture; +class QGestureEventPrivate; +class Q_WIDGETS_EXPORT QGestureEvent : public QEvent +{ +public: + explicit QGestureEvent(const QList &gestures); + ~QGestureEvent(); + + QList gestures() const; + QGesture *gesture(Qt::GestureType type) const; + + QList activeGestures() const; + QList canceledGestures() const; + + using QEvent::setAccepted; + using QEvent::isAccepted; + using QEvent::accept; + using QEvent::ignore; + + void setAccepted(QGesture *, bool); + void accept(QGesture *); + void ignore(QGesture *); + bool isAccepted(QGesture *) const; + + void setAccepted(Qt::GestureType, bool); + void accept(Qt::GestureType); + void ignore(Qt::GestureType); + bool isAccepted(Qt::GestureType) const; + + void setWidget(QWidget *widget); + QWidget *widget() const; + +#if QT_CONFIG(graphicsview) + QPointF mapToGraphicsScene(const QPointF &gesturePoint) const; +#endif + +private: + QList m_gestures; + QWidget *m_widget; + QMap m_accepted; + QMap m_targetWidgets; + + friend class QApplication; + friend class QGestureManager; +}; + +# ifndef QT_NO_DEBUG_STREAM +Q_WIDGETS_EXPORT QDebug operator<<(QDebug, const QGesture *); +Q_WIDGETS_EXPORT QDebug operator<<(QDebug, const QGestureEvent *); +# endif + +QT_END_NAMESPACE + +QT_DECL_METATYPE_EXTERN_TAGGED(QGesture::GestureCancelPolicy, + QGesture__GestureCancelPolicy, Q_WIDGETS_EXPORT) + +#endif // QT_NO_GESTURES + +#endif // QGESTURE_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgesturerecognizer.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgesturerecognizer.h new file mode 100644 index 0000000000000000000000000000000000000000..bb5ab9ca3cf6d4acb59e3f8641a340fbff47677d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgesturerecognizer.h @@ -0,0 +1,59 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGESTURERECOGNIZER_H +#define QGESTURERECOGNIZER_H + +#include +#include + +#ifndef QT_NO_GESTURES + +QT_BEGIN_NAMESPACE + + +class QObject; +class QEvent; +class QGesture; +class Q_WIDGETS_EXPORT QGestureRecognizer +{ +public: + enum ResultFlag + { + Ignore = 0x0001, + + MayBeGesture = 0x0002, + TriggerGesture = 0x0004, + FinishGesture = 0x0008, + CancelGesture = 0x0010, + + ResultState_Mask = 0x00ff, + + ConsumeEventHint = 0x0100, + // StoreEventHint = 0x0200, + // ReplayStoredEventsHint = 0x0400, + // DiscardStoredEventsHint = 0x0800, + + ResultHint_Mask = 0xff00 + }; + Q_DECLARE_FLAGS(Result, ResultFlag) + + QGestureRecognizer(); + virtual ~QGestureRecognizer(); + + virtual QGesture *create(QObject *target); + virtual Result recognize(QGesture *state, QObject *watched, + QEvent *event) = 0; + virtual void reset(QGesture *state); + + static Qt::GestureType registerRecognizer(QGestureRecognizer *recognizer); + static void unregisterRecognizer(Qt::GestureType type); +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QGestureRecognizer::Result) + +QT_END_NAMESPACE + +#endif // QT_NO_GESTURES + +#endif // QGESTURERECOGNIZER_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsanchorlayout.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsanchorlayout.h new file mode 100644 index 0000000000000000000000000000000000000000..a632703f03d4b964c3f3854f9a08534a9fc47675 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsanchorlayout.h @@ -0,0 +1,81 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSANCHORLAYOUT_H +#define QGRAPHICSANCHORLAYOUT_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QGraphicsAnchorPrivate; +class QGraphicsAnchorLayout; +class QGraphicsAnchorLayoutPrivate; + +class Q_WIDGETS_EXPORT QGraphicsAnchor : public QObject +{ + Q_OBJECT + Q_PROPERTY(qreal spacing READ spacing WRITE setSpacing RESET unsetSpacing) + Q_PROPERTY(QSizePolicy::Policy sizePolicy READ sizePolicy WRITE setSizePolicy) +public: + void setSpacing(qreal spacing); + void unsetSpacing(); + qreal spacing() const; + void setSizePolicy(QSizePolicy::Policy policy); + QSizePolicy::Policy sizePolicy() const; + ~QGraphicsAnchor(); +private: + QGraphicsAnchor(QGraphicsAnchorLayout *parent); + + Q_DECLARE_PRIVATE(QGraphicsAnchor) + + friend class QGraphicsAnchorLayoutPrivate; +}; + +class Q_WIDGETS_EXPORT QGraphicsAnchorLayout : public QGraphicsLayout +{ +public: + QGraphicsAnchorLayout(QGraphicsLayoutItem *parent = nullptr); + virtual ~QGraphicsAnchorLayout(); + + QGraphicsAnchor *addAnchor(QGraphicsLayoutItem *firstItem, Qt::AnchorPoint firstEdge, + QGraphicsLayoutItem *secondItem, Qt::AnchorPoint secondEdge); + QGraphicsAnchor *anchor(QGraphicsLayoutItem *firstItem, Qt::AnchorPoint firstEdge, + QGraphicsLayoutItem *secondItem, Qt::AnchorPoint secondEdge); + + void addCornerAnchors(QGraphicsLayoutItem *firstItem, Qt::Corner firstCorner, + QGraphicsLayoutItem *secondItem, Qt::Corner secondCorner); + + void addAnchors(QGraphicsLayoutItem *firstItem, + QGraphicsLayoutItem *secondItem, + Qt::Orientations orientations = Qt::Horizontal | Qt::Vertical); + + void setHorizontalSpacing(qreal spacing); + void setVerticalSpacing(qreal spacing); + void setSpacing(qreal spacing); + qreal horizontalSpacing() const; + qreal verticalSpacing() const; + + void removeAt(int index) override; + void setGeometry(const QRectF &rect) override; + int count() const override; + QGraphicsLayoutItem *itemAt(int index) const override; + + void invalidate() override; +protected: + QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const override; + +private: + Q_DISABLE_COPY(QGraphicsAnchorLayout) + Q_DECLARE_PRIVATE(QGraphicsAnchorLayout) + + friend class QGraphicsAnchor; +}; + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicseffect.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicseffect.h new file mode 100644 index 0000000000000000000000000000000000000000..a34835be45b650e16fac75620ed16775828e0412 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicseffect.h @@ -0,0 +1,247 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSEFFECT_H +#define QGRAPHICSEFFECT_H + +#include +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(graphicseffect); + +QT_BEGIN_NAMESPACE + +class QGraphicsItem; +class QStyleOption; +class QPainter; +class QPixmap; + +class QGraphicsEffectSource; + +class QGraphicsEffectPrivate; +class Q_WIDGETS_EXPORT QGraphicsEffect : public QObject +{ + Q_OBJECT + Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged) +public: + enum ChangeFlag { + SourceAttached = 0x1, + SourceDetached = 0x2, + SourceBoundingRectChanged = 0x4, + SourceInvalidated = 0x8 + }; + Q_DECLARE_FLAGS(ChangeFlags, ChangeFlag) + Q_FLAG(ChangeFlags) + + enum PixmapPadMode { + NoPad, + PadToTransparentBorder, + PadToEffectiveBoundingRect + }; + + QGraphicsEffect(QObject *parent = nullptr); + virtual ~QGraphicsEffect(); + + virtual QRectF boundingRectFor(const QRectF &sourceRect) const; + QRectF boundingRect() const; + + bool isEnabled() const; + +public Q_SLOTS: + void setEnabled(bool enable); + void update(); + +Q_SIGNALS: + void enabledChanged(bool enabled); + +protected: + QGraphicsEffect(QGraphicsEffectPrivate &d, QObject *parent = nullptr); + virtual void draw(QPainter *painter) = 0; + virtual void sourceChanged(ChangeFlags flags); + void updateBoundingRect(); + + bool sourceIsPixmap() const; + QRectF sourceBoundingRect(Qt::CoordinateSystem system = Qt::LogicalCoordinates) const; + void drawSource(QPainter *painter); + QPixmap sourcePixmap(Qt::CoordinateSystem system = Qt::LogicalCoordinates, + QPoint *offset = nullptr, + PixmapPadMode mode = PadToEffectiveBoundingRect) const; + +private: + Q_DECLARE_PRIVATE(QGraphicsEffect) + Q_DISABLE_COPY(QGraphicsEffect) + friend class QGraphicsItem; + friend class QGraphicsItemPrivate; + friend class QGraphicsScenePrivate; + friend class QWidget; + friend class QWidgetPrivate; + +public: + QGraphicsEffectSource *source() const; // internal + +}; +Q_DECLARE_OPERATORS_FOR_FLAGS(QGraphicsEffect::ChangeFlags) + +class QGraphicsColorizeEffectPrivate; +class Q_WIDGETS_EXPORT QGraphicsColorizeEffect: public QGraphicsEffect +{ + Q_OBJECT + Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) + Q_PROPERTY(qreal strength READ strength WRITE setStrength NOTIFY strengthChanged) +public: + QGraphicsColorizeEffect(QObject *parent = nullptr); + ~QGraphicsColorizeEffect(); + + QColor color() const; + qreal strength() const; + +public Q_SLOTS: + void setColor(const QColor &c); + void setStrength(qreal strength); + +Q_SIGNALS: + void colorChanged(const QColor &color); + void strengthChanged(qreal strength); + +protected: + void draw(QPainter *painter) override; + +private: + Q_DECLARE_PRIVATE(QGraphicsColorizeEffect) + Q_DISABLE_COPY(QGraphicsColorizeEffect) +}; + +class QGraphicsBlurEffectPrivate; +class Q_WIDGETS_EXPORT QGraphicsBlurEffect: public QGraphicsEffect +{ + Q_OBJECT + Q_PROPERTY(qreal blurRadius READ blurRadius WRITE setBlurRadius NOTIFY blurRadiusChanged) + Q_PROPERTY(BlurHints blurHints READ blurHints WRITE setBlurHints NOTIFY blurHintsChanged) +public: + enum BlurHint { + PerformanceHint = 0x00, + QualityHint = 0x01, + AnimationHint = 0x02 + }; + Q_ENUM(BlurHint) + Q_DECLARE_FLAGS(BlurHints, BlurHint) + Q_FLAG(BlurHints) + + QGraphicsBlurEffect(QObject *parent = nullptr); + ~QGraphicsBlurEffect(); + + QRectF boundingRectFor(const QRectF &rect) const override; + qreal blurRadius() const; + BlurHints blurHints() const; + +public Q_SLOTS: + void setBlurRadius(qreal blurRadius); + void setBlurHints(BlurHints hints); + +Q_SIGNALS: + void blurRadiusChanged(qreal blurRadius); + void blurHintsChanged(BlurHints hints); + +protected: + void draw(QPainter *painter) override; + +private: + Q_DECLARE_PRIVATE(QGraphicsBlurEffect) + Q_DISABLE_COPY(QGraphicsBlurEffect) +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QGraphicsBlurEffect::BlurHints) + +class QGraphicsDropShadowEffectPrivate; +class Q_WIDGETS_EXPORT QGraphicsDropShadowEffect: public QGraphicsEffect +{ + Q_OBJECT + Q_PROPERTY(QPointF offset READ offset WRITE setOffset NOTIFY offsetChanged) + Q_PROPERTY(qreal xOffset READ xOffset WRITE setXOffset NOTIFY offsetChanged) + Q_PROPERTY(qreal yOffset READ yOffset WRITE setYOffset NOTIFY offsetChanged) + Q_PROPERTY(qreal blurRadius READ blurRadius WRITE setBlurRadius NOTIFY blurRadiusChanged) + Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) +public: + QGraphicsDropShadowEffect(QObject *parent = nullptr); + ~QGraphicsDropShadowEffect(); + + QRectF boundingRectFor(const QRectF &rect) const override; + QPointF offset() const; + + inline qreal xOffset() const + { return offset().x(); } + + inline qreal yOffset() const + { return offset().y(); } + + qreal blurRadius() const; + QColor color() const; + +public Q_SLOTS: + void setOffset(const QPointF &ofs); + + inline void setOffset(qreal dx, qreal dy) + { setOffset(QPointF(dx, dy)); } + + inline void setOffset(qreal d) + { setOffset(QPointF(d, d)); } + + inline void setXOffset(qreal dx) + { setOffset(QPointF(dx, yOffset())); } + + inline void setYOffset(qreal dy) + { setOffset(QPointF(xOffset(), dy)); } + + void setBlurRadius(qreal blurRadius); + void setColor(const QColor &color); + +Q_SIGNALS: + void offsetChanged(const QPointF &offset); + void blurRadiusChanged(qreal blurRadius); + void colorChanged(const QColor &color); + +protected: + void draw(QPainter *painter) override; + +private: + Q_DECLARE_PRIVATE(QGraphicsDropShadowEffect) + Q_DISABLE_COPY(QGraphicsDropShadowEffect) +}; + +class QGraphicsOpacityEffectPrivate; +class Q_WIDGETS_EXPORT QGraphicsOpacityEffect: public QGraphicsEffect +{ + Q_OBJECT + Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged) + Q_PROPERTY(QBrush opacityMask READ opacityMask WRITE setOpacityMask NOTIFY opacityMaskChanged) +public: + QGraphicsOpacityEffect(QObject *parent = nullptr); + ~QGraphicsOpacityEffect(); + + qreal opacity() const; + QBrush opacityMask() const; + +public Q_SLOTS: + void setOpacity(qreal opacity); + void setOpacityMask(const QBrush &mask); + +Q_SIGNALS: + void opacityChanged(qreal opacity); + void opacityMaskChanged(const QBrush &mask); + +protected: + void draw(QPainter *painter) override; + +private: + Q_DECLARE_PRIVATE(QGraphicsOpacityEffect) + Q_DISABLE_COPY(QGraphicsOpacityEffect) +}; + +QT_END_NAMESPACE + +#endif // QGRAPHICSEFFECT_H + diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsgridlayout.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsgridlayout.h new file mode 100644 index 0000000000000000000000000000000000000000..044a2c0898d53216402bc3f903d9cb5ee3394155 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsgridlayout.h @@ -0,0 +1,98 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSGRIDLAYOUT_H +#define QGRAPHICSGRIDLAYOUT_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QGraphicsGridLayoutPrivate; + +class Q_WIDGETS_EXPORT QGraphicsGridLayout : public QGraphicsLayout +{ +public: + QGraphicsGridLayout(QGraphicsLayoutItem *parent = nullptr); + virtual ~QGraphicsGridLayout(); + + void addItem(QGraphicsLayoutItem *item, int row, int column, int rowSpan, int columnSpan, + Qt::Alignment alignment = Qt::Alignment()); + inline void addItem(QGraphicsLayoutItem *item, int row, int column, Qt::Alignment alignment = Qt::Alignment()); + + void setHorizontalSpacing(qreal spacing); + qreal horizontalSpacing() const; + void setVerticalSpacing(qreal spacing); + qreal verticalSpacing() const; + void setSpacing(qreal spacing); + + void setRowSpacing(int row, qreal spacing); + qreal rowSpacing(int row) const; + void setColumnSpacing(int column, qreal spacing); + qreal columnSpacing(int column) const; + + void setRowStretchFactor(int row, int stretch); + int rowStretchFactor(int row) const; + void setColumnStretchFactor(int column, int stretch); + int columnStretchFactor(int column) const; + + void setRowMinimumHeight(int row, qreal height); + qreal rowMinimumHeight(int row) const; + void setRowPreferredHeight(int row, qreal height); + qreal rowPreferredHeight(int row) const; + void setRowMaximumHeight(int row, qreal height); + qreal rowMaximumHeight(int row) const; + void setRowFixedHeight(int row, qreal height); + + void setColumnMinimumWidth(int column, qreal width); + qreal columnMinimumWidth(int column) const; + void setColumnPreferredWidth(int column, qreal width); + qreal columnPreferredWidth(int column) const; + void setColumnMaximumWidth(int column, qreal width); + qreal columnMaximumWidth(int column) const; + void setColumnFixedWidth(int column, qreal width); + + void setRowAlignment(int row, Qt::Alignment alignment); + Qt::Alignment rowAlignment(int row) const; + void setColumnAlignment(int column, Qt::Alignment alignment); + Qt::Alignment columnAlignment(int column) const; + + void setAlignment(QGraphicsLayoutItem *item, Qt::Alignment alignment); + Qt::Alignment alignment(QGraphicsLayoutItem *item) const; + + int rowCount() const; + int columnCount() const; + + QGraphicsLayoutItem *itemAt(int row, int column) const; + + // inherited from QGraphicsLayout + int count() const override; + QGraphicsLayoutItem *itemAt(int index) const override; + void removeAt(int index) override; + void removeItem(QGraphicsLayoutItem *item); + + void invalidate() override; + + // inherited from QGraphicsLayoutItem + void setGeometry(const QRectF &rect) override; + QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const override; + + // #### + //QRect cellRect(int row, int column, int rowSpan = 1, int columnSpan = 1) const; + //QSizePolicy::ControlTypes controlTypes(LayoutSide side) const; + +private: + Q_DISABLE_COPY(QGraphicsGridLayout) + Q_DECLARE_PRIVATE(QGraphicsGridLayout) +}; + +inline void QGraphicsGridLayout::addItem(QGraphicsLayoutItem *aitem, int arow, int acolumn, Qt::Alignment aalignment) +{ addItem(aitem, arow, acolumn, 1, 1, aalignment); } + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsitem.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsitem.h new file mode 100644 index 0000000000000000000000000000000000000000..75f04aee814f144b8f983af86fc7069e48ae65b7 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsitem.h @@ -0,0 +1,995 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSITEM_H +#define QGRAPHICSITEM_H + +#include +#include +#include +#include +#include +#include +#include + +class tst_QGraphicsItem; + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QBrush; +class QCursor; +class QFocusEvent; +class QGraphicsEffect; +class QGraphicsItemGroup; +class QGraphicsObject; +class QGraphicsSceneContextMenuEvent; +class QGraphicsSceneDragDropEvent; +class QGraphicsSceneEvent; +class QGraphicsSceneHoverEvent; +class QGraphicsSceneMouseEvent; +class QGraphicsSceneWheelEvent; +class QGraphicsScene; +class QGraphicsTransform; +class QGraphicsWidget; +class QInputMethodEvent; +class QKeyEvent; +class QMenu; +class QPainter; +class QPen; +class QPointF; +class QRectF; +class QStyleOptionGraphicsItem; + +class QGraphicsItemPrivate; +class Q_WIDGETS_EXPORT QGraphicsItem +{ +public: + enum GraphicsItemFlag { + ItemIsMovable = 0x1, + ItemIsSelectable = 0x2, + ItemIsFocusable = 0x4, + ItemClipsToShape = 0x8, + ItemClipsChildrenToShape = 0x10, + ItemIgnoresTransformations = 0x20, + ItemIgnoresParentOpacity = 0x40, + ItemDoesntPropagateOpacityToChildren = 0x80, + ItemStacksBehindParent = 0x100, + ItemUsesExtendedStyleOption = 0x200, + ItemHasNoContents = 0x400, + ItemSendsGeometryChanges = 0x800, + ItemAcceptsInputMethod = 0x1000, + ItemNegativeZStacksBehindParent = 0x2000, + ItemIsPanel = 0x4000, + ItemIsFocusScope = 0x8000, // internal + ItemSendsScenePositionChanges = 0x10000, + ItemStopsClickFocusPropagation = 0x20000, + ItemStopsFocusHandling = 0x40000, + ItemContainsChildrenInShape = 0x80000 + // NB! Don't forget to increase the d_ptr->flags bit field by 1 when adding a new flag. + }; + Q_DECLARE_FLAGS(GraphicsItemFlags, GraphicsItemFlag) + + enum GraphicsItemChange { + ItemPositionChange, + ItemVisibleChange = 2, + ItemEnabledChange, + ItemSelectedChange, + ItemParentChange, + ItemChildAddedChange, + ItemChildRemovedChange, + ItemTransformChange, + ItemPositionHasChanged, + ItemTransformHasChanged, + ItemSceneChange, + ItemVisibleHasChanged, + ItemEnabledHasChanged, + ItemSelectedHasChanged, + ItemParentHasChanged, + ItemSceneHasChanged, + ItemCursorChange, + ItemCursorHasChanged, + ItemToolTipChange, + ItemToolTipHasChanged, + ItemFlagsChange, + ItemFlagsHaveChanged, + ItemZValueChange, + ItemZValueHasChanged, + ItemOpacityChange, + ItemOpacityHasChanged, + ItemScenePositionHasChanged, + ItemRotationChange, + ItemRotationHasChanged, + ItemScaleChange, + ItemScaleHasChanged, + ItemTransformOriginPointChange, + ItemTransformOriginPointHasChanged + }; + + enum CacheMode { + NoCache, + ItemCoordinateCache, + DeviceCoordinateCache + }; + + enum PanelModality + { + NonModal, + PanelModal, + SceneModal + }; + + explicit QGraphicsItem(QGraphicsItem *parent = nullptr); + virtual ~QGraphicsItem(); + + QGraphicsScene *scene() const; + + QGraphicsItem *parentItem() const; + QGraphicsItem *topLevelItem() const; + QGraphicsObject *parentObject() const; + QGraphicsWidget *parentWidget() const; + QGraphicsWidget *topLevelWidget() const; + QGraphicsWidget *window() const; + QGraphicsItem *panel() const; + void setParentItem(QGraphicsItem *parent); + QList childItems() const; + bool isWidget() const; + bool isWindow() const; + bool isPanel() const; + + QGraphicsObject *toGraphicsObject(); + const QGraphicsObject *toGraphicsObject() const; + + QGraphicsItemGroup *group() const; + void setGroup(QGraphicsItemGroup *group); + + GraphicsItemFlags flags() const; + void setFlag(GraphicsItemFlag flag, bool enabled = true); + void setFlags(GraphicsItemFlags flags); + + CacheMode cacheMode() const; + void setCacheMode(CacheMode mode, const QSize &cacheSize = QSize()); + + PanelModality panelModality() const; + void setPanelModality(PanelModality panelModality); + bool isBlockedByModalPanel(QGraphicsItem **blockingPanel = nullptr) const; + +#if QT_CONFIG(tooltip) + QString toolTip() const; + void setToolTip(const QString &toolTip); +#endif + +#ifndef QT_NO_CURSOR + QCursor cursor() const; + void setCursor(const QCursor &cursor); + bool hasCursor() const; + void unsetCursor(); +#endif + + bool isVisible() const; + bool isVisibleTo(const QGraphicsItem *parent) const; + void setVisible(bool visible); + inline void hide() { setVisible(false); } + inline void show() { setVisible(true); } + + bool isEnabled() const; + void setEnabled(bool enabled); + + bool isSelected() const; + void setSelected(bool selected); + + bool acceptDrops() const; + void setAcceptDrops(bool on); + + qreal opacity() const; + qreal effectiveOpacity() const; + void setOpacity(qreal opacity); + +#if QT_CONFIG(graphicseffect) + // Effect + QGraphicsEffect *graphicsEffect() const; + void setGraphicsEffect(QGraphicsEffect *effect); +#endif // QT_CONFIG(graphicseffect) + + Qt::MouseButtons acceptedMouseButtons() const; + void setAcceptedMouseButtons(Qt::MouseButtons buttons); + bool acceptHoverEvents() const; + void setAcceptHoverEvents(bool enabled); + bool acceptTouchEvents() const; + void setAcceptTouchEvents(bool enabled); + + bool filtersChildEvents() const; + void setFiltersChildEvents(bool enabled); + + bool handlesChildEvents() const; + void setHandlesChildEvents(bool enabled); + + bool isActive() const; + void setActive(bool active); + + bool hasFocus() const; + void setFocus(Qt::FocusReason focusReason = Qt::OtherFocusReason); + void clearFocus(); + + QGraphicsItem *focusProxy() const; + void setFocusProxy(QGraphicsItem *item); + + QGraphicsItem *focusItem() const; + QGraphicsItem *focusScopeItem() const; + + void grabMouse(); + void ungrabMouse(); + void grabKeyboard(); + void ungrabKeyboard(); + + // Positioning in scene coordinates + QPointF pos() const; + inline qreal x() const { return pos().x(); } + void setX(qreal x); + inline qreal y() const { return pos().y(); } + void setY(qreal y); + QPointF scenePos() const; + void setPos(const QPointF &pos); + inline void setPos(qreal x, qreal y); + inline void moveBy(qreal dx, qreal dy) { setPos(pos().x() + dx, pos().y() + dy); } + + void ensureVisible(const QRectF &rect = QRectF(), int xmargin = 50, int ymargin = 50); + inline void ensureVisible(qreal x, qreal y, qreal w, qreal h, int xmargin = 50, int ymargin = 50); + + // Local transformation + QTransform transform() const; + QTransform sceneTransform() const; + QTransform deviceTransform(const QTransform &viewportTransform) const; + QTransform itemTransform(const QGraphicsItem *other, bool *ok = nullptr) const; + void setTransform(const QTransform &matrix, bool combine = false); + void resetTransform(); + void setRotation(qreal angle); + qreal rotation() const; + + void setScale(qreal scale); + qreal scale() const; + + QList transformations() const; + void setTransformations(const QList &transformations); + + QPointF transformOriginPoint() const; + void setTransformOriginPoint(const QPointF &origin); + inline void setTransformOriginPoint(qreal ax, qreal ay) + { setTransformOriginPoint(QPointF(ax,ay)); } + + virtual void advance(int phase); + + // Stacking order + qreal zValue() const; + void setZValue(qreal z); + void stackBefore(const QGraphicsItem *sibling); + + // Hit test + virtual QRectF boundingRect() const = 0; + QRectF childrenBoundingRect() const; + QRectF sceneBoundingRect() const; + virtual QPainterPath shape() const; + bool isClipped() const; + QPainterPath clipPath() const; + virtual bool contains(const QPointF &point) const; + virtual bool collidesWithItem(const QGraphicsItem *other, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + virtual bool collidesWithPath(const QPainterPath &path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + QList collidingItems(Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + bool isObscured(const QRectF &rect = QRectF()) const; + inline bool isObscured(qreal x, qreal y, qreal w, qreal h) const; + virtual bool isObscuredBy(const QGraphicsItem *item) const; + virtual QPainterPath opaqueArea() const; + + QRegion boundingRegion(const QTransform &itemToDeviceTransform) const; + qreal boundingRegionGranularity() const; + void setBoundingRegionGranularity(qreal granularity); + + // Drawing + virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) = 0; + void update(const QRectF &rect = QRectF()); + inline void update(qreal x, qreal y, qreal width, qreal height); + void scroll(qreal dx, qreal dy, const QRectF &rect = QRectF()); + + // Coordinate mapping + QPointF mapToItem(const QGraphicsItem *item, const QPointF &point) const; + QPointF mapToParent(const QPointF &point) const; + QPointF mapToScene(const QPointF &point) const; + QPolygonF mapToItem(const QGraphicsItem *item, const QRectF &rect) const; + QPolygonF mapToParent(const QRectF &rect) const; + QPolygonF mapToScene(const QRectF &rect) const; + QRectF mapRectToItem(const QGraphicsItem *item, const QRectF &rect) const; + QRectF mapRectToParent(const QRectF &rect) const; + QRectF mapRectToScene(const QRectF &rect) const; + QPolygonF mapToItem(const QGraphicsItem *item, const QPolygonF &polygon) const; + QPolygonF mapToParent(const QPolygonF &polygon) const; + QPolygonF mapToScene(const QPolygonF &polygon) const; + QPainterPath mapToItem(const QGraphicsItem *item, const QPainterPath &path) const; + QPainterPath mapToParent(const QPainterPath &path) const; + QPainterPath mapToScene(const QPainterPath &path) const; + QPointF mapFromItem(const QGraphicsItem *item, const QPointF &point) const; + QPointF mapFromParent(const QPointF &point) const; + QPointF mapFromScene(const QPointF &point) const; + QPolygonF mapFromItem(const QGraphicsItem *item, const QRectF &rect) const; + QPolygonF mapFromParent(const QRectF &rect) const; + QPolygonF mapFromScene(const QRectF &rect) const; + QRectF mapRectFromItem(const QGraphicsItem *item, const QRectF &rect) const; + QRectF mapRectFromParent(const QRectF &rect) const; + QRectF mapRectFromScene(const QRectF &rect) const; + QPolygonF mapFromItem(const QGraphicsItem *item, const QPolygonF &polygon) const; + QPolygonF mapFromParent(const QPolygonF &polygon) const; + QPolygonF mapFromScene(const QPolygonF &polygon) const; + QPainterPath mapFromItem(const QGraphicsItem *item, const QPainterPath &path) const; + QPainterPath mapFromParent(const QPainterPath &path) const; + QPainterPath mapFromScene(const QPainterPath &path) const; + + inline QPointF mapToItem(const QGraphicsItem *item, qreal x, qreal y) const; + inline QPointF mapToParent(qreal x, qreal y) const; + inline QPointF mapToScene(qreal x, qreal y) const; + inline QPolygonF mapToItem(const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const; + inline QPolygonF mapToParent(qreal x, qreal y, qreal w, qreal h) const; + inline QPolygonF mapToScene(qreal x, qreal y, qreal w, qreal h) const; + inline QRectF mapRectToItem(const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const; + inline QRectF mapRectToParent(qreal x, qreal y, qreal w, qreal h) const; + inline QRectF mapRectToScene(qreal x, qreal y, qreal w, qreal h) const; + inline QPointF mapFromItem(const QGraphicsItem *item, qreal x, qreal y) const; + inline QPointF mapFromParent(qreal x, qreal y) const; + inline QPointF mapFromScene(qreal x, qreal y) const; + inline QPolygonF mapFromItem(const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const; + inline QPolygonF mapFromParent(qreal x, qreal y, qreal w, qreal h) const; + inline QPolygonF mapFromScene(qreal x, qreal y, qreal w, qreal h) const; + inline QRectF mapRectFromItem(const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const; + inline QRectF mapRectFromParent(qreal x, qreal y, qreal w, qreal h) const; + inline QRectF mapRectFromScene(qreal x, qreal y, qreal w, qreal h) const; + + bool isAncestorOf(const QGraphicsItem *child) const; + QGraphicsItem *commonAncestorItem(const QGraphicsItem *other) const; + bool isUnderMouse() const; + + // Custom data + QVariant data(int key) const; + void setData(int key, const QVariant &value); + + Qt::InputMethodHints inputMethodHints() const; + void setInputMethodHints(Qt::InputMethodHints hints); + + enum { + Type = 1, + UserType = 65536 + }; + virtual int type() const; + + void installSceneEventFilter(QGraphicsItem *filterItem); + void removeSceneEventFilter(QGraphicsItem *filterItem); + +protected: + void updateMicroFocus(); + virtual bool sceneEventFilter(QGraphicsItem *watched, QEvent *event); + virtual bool sceneEvent(QEvent *event); + virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event); + virtual void dragEnterEvent(QGraphicsSceneDragDropEvent *event); + virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent *event); + virtual void dragMoveEvent(QGraphicsSceneDragDropEvent *event); + virtual void dropEvent(QGraphicsSceneDragDropEvent *event); + virtual void focusInEvent(QFocusEvent *event); + virtual void focusOutEvent(QFocusEvent *event); + virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event); + virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event); + virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event); + virtual void keyPressEvent(QKeyEvent *event); + virtual void keyReleaseEvent(QKeyEvent *event); + virtual void mousePressEvent(QGraphicsSceneMouseEvent *event); + virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event); + virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); + virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event); + virtual void wheelEvent(QGraphicsSceneWheelEvent *event); + virtual void inputMethodEvent(QInputMethodEvent *event); + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + + virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value); + + enum Extension { + UserExtension = 0x80000000 + }; + virtual bool supportsExtension(Extension extension) const; + virtual void setExtension(Extension extension, const QVariant &variant); + virtual QVariant extension(const QVariant &variant) const; + +protected: + QGraphicsItem(QGraphicsItemPrivate &dd, QGraphicsItem *parent); + QScopedPointer d_ptr; + + void addToIndex(); + void removeFromIndex(); + void prepareGeometryChange(); + +private: + Q_DISABLE_COPY(QGraphicsItem) + Q_DECLARE_PRIVATE(QGraphicsItem) + friend class QGraphicsItemGroup; + friend class QGraphicsScene; + friend class QGraphicsScenePrivate; + friend class QGraphicsSceneFindItemBspTreeVisitor; + friend class QGraphicsSceneBspTree; + friend class QGraphicsView; + friend class QGraphicsViewPrivate; + friend class QGraphicsObject; + friend class QGraphicsWidget; + friend class QGraphicsWidgetPrivate; + friend class QGraphicsProxyWidgetPrivate; + friend class QGraphicsSceneIndex; + friend class QGraphicsSceneIndexPrivate; + friend class QGraphicsSceneBspTreeIndex; + friend class QGraphicsSceneBspTreeIndexPrivate; + friend class QGraphicsItemEffectSourcePrivate; + friend class QGraphicsTransformPrivate; +#ifndef QT_NO_GESTURES + friend class QGestureManager; +#endif + friend class ::tst_QGraphicsItem; + friend bool qt_closestLeaf(const QGraphicsItem *, const QGraphicsItem *); + friend bool qt_closestItemFirst(const QGraphicsItem *, const QGraphicsItem *); +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QGraphicsItem::GraphicsItemFlags) +#ifndef Q_QDOC +Q_DECLARE_INTERFACE(QGraphicsItem, "org.qt-project.Qt.QGraphicsItem") +#endif + +inline void QGraphicsItem::setPos(qreal ax, qreal ay) +{ setPos(QPointF(ax, ay)); } +inline void QGraphicsItem::ensureVisible(qreal ax, qreal ay, qreal w, qreal h, int xmargin, int ymargin) +{ ensureVisible(QRectF(ax, ay, w, h), xmargin, ymargin); } +inline void QGraphicsItem::update(qreal ax, qreal ay, qreal width, qreal height) +{ update(QRectF(ax, ay, width, height)); } +inline bool QGraphicsItem::isObscured(qreal ax, qreal ay, qreal w, qreal h) const +{ return isObscured(QRectF(ax, ay, w, h)); } +inline QPointF QGraphicsItem::mapToItem(const QGraphicsItem *item, qreal ax, qreal ay) const +{ return mapToItem(item, QPointF(ax, ay)); } +inline QPointF QGraphicsItem::mapToParent(qreal ax, qreal ay) const +{ return mapToParent(QPointF(ax, ay)); } +inline QPointF QGraphicsItem::mapToScene(qreal ax, qreal ay) const +{ return mapToScene(QPointF(ax, ay)); } +inline QPointF QGraphicsItem::mapFromItem(const QGraphicsItem *item, qreal ax, qreal ay) const +{ return mapFromItem(item, QPointF(ax, ay)); } +inline QPointF QGraphicsItem::mapFromParent(qreal ax, qreal ay) const +{ return mapFromParent(QPointF(ax, ay)); } +inline QPointF QGraphicsItem::mapFromScene(qreal ax, qreal ay) const +{ return mapFromScene(QPointF(ax, ay)); } +inline QPolygonF QGraphicsItem::mapToItem(const QGraphicsItem *item, qreal ax, qreal ay, qreal w, qreal h) const +{ return mapToItem(item, QRectF(ax, ay, w, h)); } +inline QPolygonF QGraphicsItem::mapToParent(qreal ax, qreal ay, qreal w, qreal h) const +{ return mapToParent(QRectF(ax, ay, w, h)); } +inline QPolygonF QGraphicsItem::mapToScene(qreal ax, qreal ay, qreal w, qreal h) const +{ return mapToScene(QRectF(ax, ay, w, h)); } +inline QRectF QGraphicsItem::mapRectToItem(const QGraphicsItem *item, qreal ax, qreal ay, qreal w, qreal h) const +{ return mapRectToItem(item, QRectF(ax, ay, w, h)); } +inline QRectF QGraphicsItem::mapRectToParent(qreal ax, qreal ay, qreal w, qreal h) const +{ return mapRectToParent(QRectF(ax, ay, w, h)); } +inline QRectF QGraphicsItem::mapRectToScene(qreal ax, qreal ay, qreal w, qreal h) const +{ return mapRectToScene(QRectF(ax, ay, w, h)); } +inline QPolygonF QGraphicsItem::mapFromItem(const QGraphicsItem *item, qreal ax, qreal ay, qreal w, qreal h) const +{ return mapFromItem(item, QRectF(ax, ay, w, h)); } +inline QPolygonF QGraphicsItem::mapFromParent(qreal ax, qreal ay, qreal w, qreal h) const +{ return mapFromParent(QRectF(ax, ay, w, h)); } +inline QPolygonF QGraphicsItem::mapFromScene(qreal ax, qreal ay, qreal w, qreal h) const +{ return mapFromScene(QRectF(ax, ay, w, h)); } +inline QRectF QGraphicsItem::mapRectFromItem(const QGraphicsItem *item, qreal ax, qreal ay, qreal w, qreal h) const +{ return mapRectFromItem(item, QRectF(ax, ay, w, h)); } +inline QRectF QGraphicsItem::mapRectFromParent(qreal ax, qreal ay, qreal w, qreal h) const +{ return mapRectFromParent(QRectF(ax, ay, w, h)); } +inline QRectF QGraphicsItem::mapRectFromScene(qreal ax, qreal ay, qreal w, qreal h) const +{ return mapRectFromScene(QRectF(ax, ay, w, h)); } + + +class Q_WIDGETS_EXPORT QGraphicsObject : public QObject, public QGraphicsItem +{ + Q_OBJECT + Q_PROPERTY(QGraphicsObject* parent READ parentObject WRITE setParentItem NOTIFY parentChanged + DESIGNABLE false) + Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged FINAL) + Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged) + Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged FINAL) + Q_PROPERTY(QPointF pos READ pos WRITE setPos FINAL) + Q_PROPERTY(qreal x READ x WRITE setX NOTIFY xChanged FINAL) + Q_PROPERTY(qreal y READ y WRITE setY NOTIFY yChanged FINAL) + Q_PROPERTY(qreal z READ zValue WRITE setZValue NOTIFY zChanged FINAL) + Q_PROPERTY(qreal rotation READ rotation WRITE setRotation NOTIFY rotationChanged) + Q_PROPERTY(qreal scale READ scale WRITE setScale NOTIFY scaleChanged) + Q_PROPERTY(QPointF transformOriginPoint READ transformOriginPoint WRITE setTransformOriginPoint) +#if QT_CONFIG(graphicseffect) + Q_PROPERTY(QGraphicsEffect *effect READ graphicsEffect WRITE setGraphicsEffect) +#endif + Q_PRIVATE_PROPERTY(QGraphicsItem::d_func(), qreal width READ width WRITE setWidth + NOTIFY widthChanged RESET resetWidth FINAL) + Q_PRIVATE_PROPERTY(QGraphicsItem::d_func(), qreal height READ height WRITE setHeight + NOTIFY heightChanged RESET resetHeight FINAL) + Q_INTERFACES(QGraphicsItem) +public: + explicit QGraphicsObject(QGraphicsItem *parent = nullptr); + ~QGraphicsObject(); + + using QObject::children; + +#ifndef QT_NO_GESTURES + void grabGesture(Qt::GestureType type, Qt::GestureFlags flags = Qt::GestureFlags()); + void ungrabGesture(Qt::GestureType type); +#endif + +protected Q_SLOTS: + void updateMicroFocus(); + +Q_SIGNALS: + void parentChanged(); + void opacityChanged(); + void visibleChanged(); + void enabledChanged(); + void xChanged(); + void yChanged(); + void zChanged(); + void rotationChanged(); + void scaleChanged(); + void childrenChanged(); + void widthChanged(); + void heightChanged(); + +protected: + QGraphicsObject(QGraphicsItemPrivate &dd, QGraphicsItem *parent); + + bool event(QEvent *ev) override; + +private: + friend class QGraphicsItem; + friend class QGraphicsItemPrivate; +}; + + +class QAbstractGraphicsShapeItemPrivate; +class Q_WIDGETS_EXPORT QAbstractGraphicsShapeItem : public QGraphicsItem +{ +public: + explicit QAbstractGraphicsShapeItem(QGraphicsItem *parent = nullptr); + ~QAbstractGraphicsShapeItem(); + + QPen pen() const; + void setPen(const QPen &pen); + + QBrush brush() const; + void setBrush(const QBrush &brush); + + bool isObscuredBy(const QGraphicsItem *item) const override; + QPainterPath opaqueArea() const override; + +protected: + QAbstractGraphicsShapeItem(QAbstractGraphicsShapeItemPrivate &dd, + QGraphicsItem *parent); + +private: + Q_DISABLE_COPY(QAbstractGraphicsShapeItem) + Q_DECLARE_PRIVATE(QAbstractGraphicsShapeItem) +}; + +class QGraphicsPathItemPrivate; +class Q_WIDGETS_EXPORT QGraphicsPathItem : public QAbstractGraphicsShapeItem +{ +public: + explicit QGraphicsPathItem(QGraphicsItem *parent = nullptr); + explicit QGraphicsPathItem(const QPainterPath &path, QGraphicsItem *parent = nullptr); + ~QGraphicsPathItem(); + + QPainterPath path() const; + void setPath(const QPainterPath &path); + + QRectF boundingRect() const override; + QPainterPath shape() const override; + bool contains(const QPointF &point) const override; + + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override; + + bool isObscuredBy(const QGraphicsItem *item) const override; + QPainterPath opaqueArea() const override; + + enum { Type = 2 }; + int type() const override; + +protected: + bool supportsExtension(Extension extension) const override; + void setExtension(Extension extension, const QVariant &variant) override; + QVariant extension(const QVariant &variant) const override; + +private: + Q_DISABLE_COPY(QGraphicsPathItem) + Q_DECLARE_PRIVATE(QGraphicsPathItem) +}; + +class QGraphicsRectItemPrivate; +class Q_WIDGETS_EXPORT QGraphicsRectItem : public QAbstractGraphicsShapeItem +{ +public: + explicit QGraphicsRectItem(QGraphicsItem *parent = nullptr); + explicit QGraphicsRectItem(const QRectF &rect, QGraphicsItem *parent = nullptr); + explicit QGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem *parent = nullptr); + ~QGraphicsRectItem(); + + QRectF rect() const; + void setRect(const QRectF &rect); + inline void setRect(qreal x, qreal y, qreal w, qreal h); + + QRectF boundingRect() const override; + QPainterPath shape() const override; + bool contains(const QPointF &point) const override; + + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override; + + bool isObscuredBy(const QGraphicsItem *item) const override; + QPainterPath opaqueArea() const override; + + enum { Type = 3 }; + int type() const override; + +protected: + bool supportsExtension(Extension extension) const override; + void setExtension(Extension extension, const QVariant &variant) override; + QVariant extension(const QVariant &variant) const override; + +private: + Q_DISABLE_COPY(QGraphicsRectItem) + Q_DECLARE_PRIVATE(QGraphicsRectItem) +}; + +inline void QGraphicsRectItem::setRect(qreal ax, qreal ay, qreal w, qreal h) +{ setRect(QRectF(ax, ay, w, h)); } + +class QGraphicsEllipseItemPrivate; +class Q_WIDGETS_EXPORT QGraphicsEllipseItem : public QAbstractGraphicsShapeItem +{ +public: + explicit QGraphicsEllipseItem(QGraphicsItem *parent = nullptr); + explicit QGraphicsEllipseItem(const QRectF &rect, QGraphicsItem *parent = nullptr); + explicit QGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem *parent = nullptr); + ~QGraphicsEllipseItem(); + + QRectF rect() const; + void setRect(const QRectF &rect); + inline void setRect(qreal x, qreal y, qreal w, qreal h); + + int startAngle() const; + void setStartAngle(int angle); + + int spanAngle() const; + void setSpanAngle(int angle); + + QRectF boundingRect() const override; + QPainterPath shape() const override; + bool contains(const QPointF &point) const override; + + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override; + + bool isObscuredBy(const QGraphicsItem *item) const override; + QPainterPath opaqueArea() const override; + + enum { Type = 4 }; + int type() const override; + +protected: + bool supportsExtension(Extension extension) const override; + void setExtension(Extension extension, const QVariant &variant) override; + QVariant extension(const QVariant &variant) const override; + +private: + Q_DISABLE_COPY(QGraphicsEllipseItem) + Q_DECLARE_PRIVATE(QGraphicsEllipseItem) +}; + +inline void QGraphicsEllipseItem::setRect(qreal ax, qreal ay, qreal w, qreal h) +{ setRect(QRectF(ax, ay, w, h)); } + +class QGraphicsPolygonItemPrivate; +class Q_WIDGETS_EXPORT QGraphicsPolygonItem : public QAbstractGraphicsShapeItem +{ +public: + explicit QGraphicsPolygonItem(QGraphicsItem *parent = nullptr); + explicit QGraphicsPolygonItem(const QPolygonF &polygon, + QGraphicsItem *parent = nullptr); + ~QGraphicsPolygonItem(); + + QPolygonF polygon() const; + void setPolygon(const QPolygonF &polygon); + + Qt::FillRule fillRule() const; + void setFillRule(Qt::FillRule rule); + + QRectF boundingRect() const override; + QPainterPath shape() const override; + bool contains(const QPointF &point) const override; + + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override; + + bool isObscuredBy(const QGraphicsItem *item) const override; + QPainterPath opaqueArea() const override; + + enum { Type = 5 }; + int type() const override; + +protected: + bool supportsExtension(Extension extension) const override; + void setExtension(Extension extension, const QVariant &variant) override; + QVariant extension(const QVariant &variant) const override; + +private: + Q_DISABLE_COPY(QGraphicsPolygonItem) + Q_DECLARE_PRIVATE(QGraphicsPolygonItem) +}; + +class QGraphicsLineItemPrivate; +class Q_WIDGETS_EXPORT QGraphicsLineItem : public QGraphicsItem +{ +public: + explicit QGraphicsLineItem(QGraphicsItem *parent = nullptr); + explicit QGraphicsLineItem(const QLineF &line, QGraphicsItem *parent = nullptr); + explicit QGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2, QGraphicsItem *parent = nullptr); + ~QGraphicsLineItem(); + + QPen pen() const; + void setPen(const QPen &pen); + + QLineF line() const; + void setLine(const QLineF &line); + inline void setLine(qreal x1, qreal y1, qreal x2, qreal y2) + { setLine(QLineF(x1, y1, x2, y2)); } + + QRectF boundingRect() const override; + QPainterPath shape() const override; + bool contains(const QPointF &point) const override; + + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override; + + bool isObscuredBy(const QGraphicsItem *item) const override; + QPainterPath opaqueArea() const override; + + enum { Type = 6 }; + int type() const override; + +protected: + bool supportsExtension(Extension extension) const override; + void setExtension(Extension extension, const QVariant &variant) override; + QVariant extension(const QVariant &variant) const override; + +private: + Q_DISABLE_COPY(QGraphicsLineItem) + Q_DECLARE_PRIVATE(QGraphicsLineItem) +}; + +class QGraphicsPixmapItemPrivate; +class Q_WIDGETS_EXPORT QGraphicsPixmapItem : public QGraphicsItem +{ +public: + enum ShapeMode { + MaskShape, + BoundingRectShape, + HeuristicMaskShape + }; + + explicit QGraphicsPixmapItem(QGraphicsItem *parent = nullptr); + explicit QGraphicsPixmapItem(const QPixmap &pixmap, QGraphicsItem *parent = nullptr); + ~QGraphicsPixmapItem(); + + QPixmap pixmap() const; + void setPixmap(const QPixmap &pixmap); + + Qt::TransformationMode transformationMode() const; + void setTransformationMode(Qt::TransformationMode mode); + + QPointF offset() const; + void setOffset(const QPointF &offset); + inline void setOffset(qreal x, qreal y); + + QRectF boundingRect() const override; + QPainterPath shape() const override; + bool contains(const QPointF &point) const override; + + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override; + + bool isObscuredBy(const QGraphicsItem *item) const override; + QPainterPath opaqueArea() const override; + + enum { Type = 7 }; + int type() const override; + + ShapeMode shapeMode() const; + void setShapeMode(ShapeMode mode); + +protected: + bool supportsExtension(Extension extension) const override; + void setExtension(Extension extension, const QVariant &variant) override; + QVariant extension(const QVariant &variant) const override; + +private: + Q_DISABLE_COPY(QGraphicsPixmapItem) + Q_DECLARE_PRIVATE(QGraphicsPixmapItem) +}; + +inline void QGraphicsPixmapItem::setOffset(qreal ax, qreal ay) +{ setOffset(QPointF(ax, ay)); } + +class QGraphicsTextItemPrivate; +class QTextDocument; +class QTextCursor; +class Q_WIDGETS_EXPORT QGraphicsTextItem : public QGraphicsObject +{ + Q_OBJECT + QDOC_PROPERTY(bool openExternalLinks READ openExternalLinks WRITE setOpenExternalLinks) + QDOC_PROPERTY(QTextCursor textCursor READ textCursor WRITE setTextCursor) + +public: + explicit QGraphicsTextItem(QGraphicsItem *parent = nullptr); + explicit QGraphicsTextItem(const QString &text, QGraphicsItem *parent = nullptr); + ~QGraphicsTextItem(); + + QString toHtml() const; + void setHtml(const QString &html); + + QString toPlainText() const; + void setPlainText(const QString &text); + + QFont font() const; + void setFont(const QFont &font); + + void setDefaultTextColor(const QColor &c); + QColor defaultTextColor() const; + + QRectF boundingRect() const override; + QPainterPath shape() const override; + bool contains(const QPointF &point) const override; + + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override; + + bool isObscuredBy(const QGraphicsItem *item) const override; + QPainterPath opaqueArea() const override; + + enum { Type = 8 }; + int type() const override; + + void setTextWidth(qreal width); + qreal textWidth() const; + + void adjustSize(); + + void setDocument(QTextDocument *document); + QTextDocument *document() const; + + void setTextInteractionFlags(Qt::TextInteractionFlags flags); + Qt::TextInteractionFlags textInteractionFlags() const; + + void setTabChangesFocus(bool b); + bool tabChangesFocus() const; + + void setOpenExternalLinks(bool open); + bool openExternalLinks() const; + + void setTextCursor(const QTextCursor &cursor); + QTextCursor textCursor() const; + +Q_SIGNALS: + void linkActivated(const QString &); + void linkHovered(const QString &); + +protected: + bool sceneEvent(QEvent *event) override; + void mousePressEvent(QGraphicsSceneMouseEvent *event) override; + void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override; + void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override; + void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override; + void contextMenuEvent(QGraphicsSceneContextMenuEvent *event) override; + void keyPressEvent(QKeyEvent *event) override; + void keyReleaseEvent(QKeyEvent *event) override; + void focusInEvent(QFocusEvent *event) override; + void focusOutEvent(QFocusEvent *event) override; + void dragEnterEvent(QGraphicsSceneDragDropEvent *event) override; + void dragLeaveEvent(QGraphicsSceneDragDropEvent *event) override; + void dragMoveEvent(QGraphicsSceneDragDropEvent *event) override; + void dropEvent(QGraphicsSceneDragDropEvent *event) override; + void inputMethodEvent(QInputMethodEvent *event) override; + void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override; + void hoverMoveEvent(QGraphicsSceneHoverEvent *event) override; + void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override; + + QVariant inputMethodQuery(Qt::InputMethodQuery query) const override; + + bool supportsExtension(Extension extension) const override; + void setExtension(Extension extension, const QVariant &variant) override; + QVariant extension(const QVariant &variant) const override; + +private: + Q_DISABLE_COPY(QGraphicsTextItem) + QGraphicsTextItemPrivate *dd; + friend class QGraphicsTextItemPrivate; +}; + +class QGraphicsSimpleTextItemPrivate; +class Q_WIDGETS_EXPORT QGraphicsSimpleTextItem : public QAbstractGraphicsShapeItem +{ +public: + explicit QGraphicsSimpleTextItem(QGraphicsItem *parent = nullptr); + explicit QGraphicsSimpleTextItem(const QString &text, QGraphicsItem *parent = nullptr); + ~QGraphicsSimpleTextItem(); + + void setText(const QString &text); + QString text() const; + + void setFont(const QFont &font); + QFont font() const; + + QRectF boundingRect() const override; + QPainterPath shape() const override; + bool contains(const QPointF &point) const override; + + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override; + + bool isObscuredBy(const QGraphicsItem *item) const override; + QPainterPath opaqueArea() const override; + + enum { Type = 9 }; + int type() const override; + +protected: + bool supportsExtension(Extension extension) const override; + void setExtension(Extension extension, const QVariant &variant) override; + QVariant extension(const QVariant &variant) const override; + +private: + Q_DISABLE_COPY(QGraphicsSimpleTextItem) + Q_DECLARE_PRIVATE(QGraphicsSimpleTextItem) +}; + +class QGraphicsItemGroupPrivate; +class Q_WIDGETS_EXPORT QGraphicsItemGroup : public QGraphicsItem +{ +public: + explicit QGraphicsItemGroup(QGraphicsItem *parent = nullptr); + ~QGraphicsItemGroup(); + + void addToGroup(QGraphicsItem *item); + void removeFromGroup(QGraphicsItem *item); + + QRectF boundingRect() const override; + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override; + + bool isObscuredBy(const QGraphicsItem *item) const override; + QPainterPath opaqueArea() const override; + + enum { Type = 10 }; + int type() const override; + +private: + Q_DISABLE_COPY(QGraphicsItemGroup) + Q_DECLARE_PRIVATE(QGraphicsItemGroup) +}; + +template inline T qgraphicsitem_cast(QGraphicsItem *item) +{ + typedef typename std::remove_cv::type>::type Item; + return int(Item::Type) == int(QGraphicsItem::Type) + || (item && int(Item::Type) == item->type()) ? static_cast(item) : nullptr; +} + +template inline T qgraphicsitem_cast(const QGraphicsItem *item) +{ + typedef typename std::remove_cv::type>::type Item; + return int(Item::Type) == int(QGraphicsItem::Type) + || (item && int(Item::Type) == item->type()) ? static_cast(item) : nullptr; +} + +#ifndef QT_NO_DEBUG_STREAM +Q_WIDGETS_EXPORT QDebug operator<<(QDebug debug, const QGraphicsItem *item); +Q_WIDGETS_EXPORT QDebug operator<<(QDebug debug, const QGraphicsObject *item); +Q_WIDGETS_EXPORT QDebug operator<<(QDebug debug, QGraphicsItem::GraphicsItemChange change); +Q_WIDGETS_EXPORT QDebug operator<<(QDebug debug, QGraphicsItem::GraphicsItemFlag flag); +Q_WIDGETS_EXPORT QDebug operator<<(QDebug debug, QGraphicsItem::GraphicsItemFlags flags); +#endif + +QT_END_NAMESPACE + +QT_DECL_METATYPE_EXTERN_TAGGED(QGraphicsItem*, QGraphicsItem_ptr, Q_WIDGETS_EXPORT) + +#endif // QGRAPHICSITEM_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsitemanimation.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsitemanimation.h new file mode 100644 index 0000000000000000000000000000000000000000..c97579e1a6fb4a657f84882630be9ecb5fc0a680 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsitemanimation.h @@ -0,0 +1,74 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSITEMANIMATION_H +#define QGRAPHICSITEMANIMATION_H + +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QGraphicsItem; +class QPointF; +class QTimeLine; +class QTransform; + +class QGraphicsItemAnimationPrivate; +class Q_WIDGETS_EXPORT QGraphicsItemAnimation : public QObject +{ + Q_OBJECT +public: + QGraphicsItemAnimation(QObject *parent = nullptr); + virtual ~QGraphicsItemAnimation(); + + QGraphicsItem *item() const; + void setItem(QGraphicsItem *item); + + QTimeLine *timeLine() const; + void setTimeLine(QTimeLine *timeLine); + + QPointF posAt(qreal step) const; + QList > posList() const; + void setPosAt(qreal step, const QPointF &pos); + + QTransform transformAt(qreal step) const; + + qreal rotationAt(qreal step) const; + QList > rotationList() const; + void setRotationAt(qreal step, qreal angle); + + qreal xTranslationAt(qreal step) const; + qreal yTranslationAt(qreal step) const; + QList > translationList() const; + void setTranslationAt(qreal step, qreal dx, qreal dy); + + qreal verticalScaleAt(qreal step) const; + qreal horizontalScaleAt(qreal step) const; + QList > scaleList() const; + void setScaleAt(qreal step, qreal sx, qreal sy); + + qreal verticalShearAt(qreal step) const; + qreal horizontalShearAt(qreal step) const; + QList > shearList() const; + void setShearAt(qreal step, qreal sh, qreal sv); + + void clear(); + +public Q_SLOTS: + void setStep(qreal x); + +protected: + virtual void beforeAnimationStep(qreal step); + virtual void afterAnimationStep(qreal step); + +private: + Q_DISABLE_COPY(QGraphicsItemAnimation) + QGraphicsItemAnimationPrivate *d; +}; + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicslayout.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicslayout.h new file mode 100644 index 0000000000000000000000000000000000000000..0aa11ed2032342fae845995ce191587906567f49 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicslayout.h @@ -0,0 +1,56 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSLAYOUT_H +#define QGRAPHICSLAYOUT_H + +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QGraphicsLayoutPrivate; +class QGraphicsLayoutItem; +class QGraphicsWidget; + +class Q_WIDGETS_EXPORT QGraphicsLayout : public QGraphicsLayoutItem +{ +public: + QGraphicsLayout(QGraphicsLayoutItem *parent = nullptr); + ~QGraphicsLayout(); + + void setContentsMargins(qreal left, qreal top, qreal right, qreal bottom); + void getContentsMargins(qreal *left, qreal *top, qreal *right, qreal *bottom) const override; + + void activate(); + bool isActivated() const; + virtual void invalidate(); + virtual void updateGeometry() override; + + virtual void widgetEvent(QEvent *e); + + virtual int count() const = 0; + virtual QGraphicsLayoutItem *itemAt(int i) const = 0; + virtual void removeAt(int index) = 0; + + static void setInstantInvalidatePropagation(bool enable); + static bool instantInvalidatePropagation(); +protected: + QGraphicsLayout(QGraphicsLayoutPrivate &, QGraphicsLayoutItem *); + void addChildLayoutItem(QGraphicsLayoutItem *layoutItem); + +private: + Q_DISABLE_COPY(QGraphicsLayout) + Q_DECLARE_PRIVATE(QGraphicsLayout) + friend class QGraphicsWidget; +}; + +#ifndef Q_QDOC +Q_DECLARE_INTERFACE(QGraphicsLayout, "org.qt-project.Qt.QGraphicsLayout") +#endif + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicslayoutitem.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicslayoutitem.h new file mode 100644 index 0000000000000000000000000000000000000000..766b4f7541e2d1c1ef4c659eb21c36d74ace1ec8 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicslayoutitem.h @@ -0,0 +1,112 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSLAYOUTITEM_H +#define QGRAPHICSLAYOUTITEM_H + +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QGraphicsLayoutItemPrivate; +class QGraphicsItem; +class Q_WIDGETS_EXPORT QGraphicsLayoutItem +{ +public: + QGraphicsLayoutItem(QGraphicsLayoutItem *parent = nullptr, bool isLayout = false); + virtual ~QGraphicsLayoutItem(); + + void setSizePolicy(const QSizePolicy &policy); + void setSizePolicy(QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy, QSizePolicy::ControlType controlType = QSizePolicy::DefaultType); + QSizePolicy sizePolicy() const; + + void setMinimumSize(const QSizeF &size); + inline void setMinimumSize(qreal w, qreal h); + QSizeF minimumSize() const; + void setMinimumWidth(qreal width); + inline qreal minimumWidth() const; + void setMinimumHeight(qreal height); + inline qreal minimumHeight() const; + + void setPreferredSize(const QSizeF &size); + inline void setPreferredSize(qreal w, qreal h); + QSizeF preferredSize() const; + void setPreferredWidth(qreal width); + inline qreal preferredWidth() const; + void setPreferredHeight(qreal height); + inline qreal preferredHeight() const; + + void setMaximumSize(const QSizeF &size); + inline void setMaximumSize(qreal w, qreal h); + QSizeF maximumSize() const; + void setMaximumWidth(qreal width); + inline qreal maximumWidth() const; + void setMaximumHeight(qreal height); + inline qreal maximumHeight() const; + + virtual void setGeometry(const QRectF &rect); + QRectF geometry() const; + virtual void getContentsMargins(qreal *left, qreal *top, qreal *right, qreal *bottom) const; + QRectF contentsRect() const; + + QSizeF effectiveSizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const; + + virtual void updateGeometry(); + + virtual bool isEmpty() const; + QGraphicsLayoutItem *parentLayoutItem() const; + void setParentLayoutItem(QGraphicsLayoutItem *parent); + + bool isLayout() const; + QGraphicsItem *graphicsItem() const; + bool ownedByLayout() const; + +protected: + void setGraphicsItem(QGraphicsItem *item); + void setOwnedByLayout(bool ownedByLayout); + QGraphicsLayoutItem(QGraphicsLayoutItemPrivate &dd); + + virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const = 0; + QScopedPointer d_ptr; + +private: + QSizeF *effectiveSizeHints(const QSizeF &constraint) const; + Q_DECLARE_PRIVATE(QGraphicsLayoutItem) + + friend class QGraphicsLayout; +}; + +#ifndef Q_QDOC +Q_DECLARE_INTERFACE(QGraphicsLayoutItem, "org.qt-project.Qt.QGraphicsLayoutItem") +#endif + +inline void QGraphicsLayoutItem::setMinimumSize(qreal aw, qreal ah) +{ setMinimumSize(QSizeF(aw, ah)); } +inline void QGraphicsLayoutItem::setPreferredSize(qreal aw, qreal ah) +{ setPreferredSize(QSizeF(aw, ah)); } +inline void QGraphicsLayoutItem::setMaximumSize(qreal aw, qreal ah) +{ setMaximumSize(QSizeF(aw, ah)); } + +inline qreal QGraphicsLayoutItem::minimumWidth() const +{ return effectiveSizeHint(Qt::MinimumSize).width(); } +inline qreal QGraphicsLayoutItem::minimumHeight() const +{ return effectiveSizeHint(Qt::MinimumSize).height(); } + +inline qreal QGraphicsLayoutItem::preferredWidth() const +{ return effectiveSizeHint(Qt::PreferredSize).width(); } +inline qreal QGraphicsLayoutItem::preferredHeight() const +{ return effectiveSizeHint(Qt::PreferredSize).height(); } + +inline qreal QGraphicsLayoutItem::maximumWidth() const +{ return effectiveSizeHint(Qt::MaximumSize).width(); } +inline qreal QGraphicsLayoutItem::maximumHeight() const +{ return effectiveSizeHint(Qt::MaximumSize).height(); } + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicslinearlayout.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicslinearlayout.h new file mode 100644 index 0000000000000000000000000000000000000000..69e0e2bcc1381c0cb2d12e9422d11d515b23623d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicslinearlayout.h @@ -0,0 +1,73 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSLINEARLAYOUT_H +#define QGRAPHICSLINEARLAYOUT_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QGraphicsLinearLayoutPrivate; + +class Q_WIDGETS_EXPORT QGraphicsLinearLayout : public QGraphicsLayout +{ +public: + QGraphicsLinearLayout(QGraphicsLayoutItem *parent = nullptr); + QGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem *parent = nullptr); + virtual ~QGraphicsLinearLayout(); + + void setOrientation(Qt::Orientation orientation); + Qt::Orientation orientation() const; + + inline void addItem(QGraphicsLayoutItem *item) { insertItem(-1, item); } + inline void addStretch(int stretch = 1) { insertStretch(-1, stretch); } + + void insertItem(int index, QGraphicsLayoutItem *item); + void insertStretch(int index, int stretch = 1); + + void removeItem(QGraphicsLayoutItem *item); + void removeAt(int index) override; + + void setSpacing(qreal spacing); + qreal spacing() const; + void setItemSpacing(int index, qreal spacing); + qreal itemSpacing(int index) const; + + void setStretchFactor(QGraphicsLayoutItem *item, int stretch); + int stretchFactor(QGraphicsLayoutItem *item) const; + + void setAlignment(QGraphicsLayoutItem *item, Qt::Alignment alignment); + Qt::Alignment alignment(QGraphicsLayoutItem *item) const; + + void setGeometry(const QRectF &rect) override; + + int count() const override; + QGraphicsLayoutItem *itemAt(int index) const override; + + void invalidate() override; + QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const override; + +#if 0 // ### + Q5SizePolicy::ControlTypes controlTypes(LayoutSide side) const; +#endif + + void dump(int indent = 0) const; + +protected: +#if 0 + QSize contentsSizeHint(Qt::SizeHint which, const QSize &constraint = QSize()) const; +#endif + +private: + Q_DISABLE_COPY(QGraphicsLinearLayout) + Q_DECLARE_PRIVATE(QGraphicsLinearLayout) +}; + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsproxywidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsproxywidget.h new file mode 100644 index 0000000000000000000000000000000000000000..1324f2425f16bbe23470ccecec55cc87a13894b7 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsproxywidget.h @@ -0,0 +1,101 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSPROXYWIDGET_H +#define QGRAPHICSPROXYWIDGET_H + +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QGraphicsProxyWidgetPrivate; + +class Q_WIDGETS_EXPORT QGraphicsProxyWidget : public QGraphicsWidget +{ + Q_OBJECT +public: + QGraphicsProxyWidget(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = Qt::WindowFlags()); + ~QGraphicsProxyWidget(); + + void setWidget(QWidget *widget); + QWidget *widget() const; + + QRectF subWidgetRect(const QWidget *widget) const; + + void setGeometry(const QRectF &rect) override; + + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override; + + enum { + Type = 12 + }; + int type() const override; + + QGraphicsProxyWidget *createProxyForChildWidget(QWidget *child); + +protected: + QVariant itemChange(GraphicsItemChange change, const QVariant &value) override; + + bool event(QEvent *event) override; + bool eventFilter(QObject *object, QEvent *event) override; + + void showEvent(QShowEvent *event) override; + void hideEvent(QHideEvent *event) override; + +#ifndef QT_NO_CONTEXTMENU + void contextMenuEvent(QGraphicsSceneContextMenuEvent *event) override; +#endif + +#if QT_CONFIG(draganddrop) + void dragEnterEvent(QGraphicsSceneDragDropEvent *event) override; + void dragLeaveEvent(QGraphicsSceneDragDropEvent *event) override; + void dragMoveEvent(QGraphicsSceneDragDropEvent *event) override; + void dropEvent(QGraphicsSceneDragDropEvent *event) override; +#endif + + void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override; + void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override; + void hoverMoveEvent(QGraphicsSceneHoverEvent *event) override; + void grabMouseEvent(QEvent *event) override; + void ungrabMouseEvent(QEvent *event) override; + + void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override; + void mousePressEvent(QGraphicsSceneMouseEvent *event) override; + void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override; + void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override; +#if QT_CONFIG(wheelevent) + void wheelEvent(QGraphicsSceneWheelEvent *event) override; +#endif + + void keyPressEvent(QKeyEvent *event) override; + void keyReleaseEvent(QKeyEvent *event) override; + + void focusInEvent(QFocusEvent *event) override; + void focusOutEvent(QFocusEvent *event) override; + bool focusNextPrevChild(bool next) override; + + QVariant inputMethodQuery(Qt::InputMethodQuery query) const override; + void inputMethodEvent(QInputMethodEvent *event) override; + + QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const override; + void resizeEvent(QGraphicsSceneResizeEvent *event) override; + +protected Q_SLOTS: + QGraphicsProxyWidget *newProxyWidget(const QWidget *); + +private: + Q_DISABLE_COPY(QGraphicsProxyWidget) + Q_DECLARE_PRIVATE_D(QGraphicsItem::d_ptr.data(), QGraphicsProxyWidget) + Q_PRIVATE_SLOT(d_func(), void _q_removeWidgetSlot()) + + friend class QWidget; + friend class QWidgetPrivate; + friend class QGraphicsItem; +}; + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsscene.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsscene.h new file mode 100644 index 0000000000000000000000000000000000000000..7da3ee5bb6f7cfb334e694ba5e46dd5b00cd362d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsscene.h @@ -0,0 +1,272 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSSCENE_H +#define QGRAPHICSSCENE_H + +#include +#include +#include +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QFocusEvent; +class QFont; +class QFontMetrics; +class QGraphicsEllipseItem; +class QGraphicsItem; +class QGraphicsItemGroup; +class QGraphicsLineItem; +class QGraphicsPathItem; +class QGraphicsPixmapItem; +class QGraphicsPolygonItem; +class QGraphicsProxyWidget; +class QGraphicsRectItem; +class QGraphicsSceneContextMenuEvent; +class QGraphicsSceneDragDropEvent; +class QGraphicsSceneEvent; +class QGraphicsSceneHelpEvent; +class QGraphicsSceneHoverEvent; +class QGraphicsSceneMouseEvent; +class QGraphicsSceneWheelEvent; +class QGraphicsSimpleTextItem; +class QGraphicsTextItem; +class QGraphicsView; +class QGraphicsWidget; +class QGraphicsSceneIndex; +class QHelpEvent; +class QInputMethodEvent; +class QKeyEvent; +class QLineF; +class QPainterPath; +class QPixmap; +class QPointF; +class QPolygonF; +class QRectF; +class QSizeF; +class QStyle; +class QStyleOptionGraphicsItem; + +class QGraphicsScenePrivate; +class Q_WIDGETS_EXPORT QGraphicsScene : public QObject +{ + Q_OBJECT + Q_PROPERTY(QBrush backgroundBrush READ backgroundBrush WRITE setBackgroundBrush) + Q_PROPERTY(QBrush foregroundBrush READ foregroundBrush WRITE setForegroundBrush) + Q_PROPERTY(ItemIndexMethod itemIndexMethod READ itemIndexMethod WRITE setItemIndexMethod) + Q_PROPERTY(QRectF sceneRect READ sceneRect WRITE setSceneRect) + Q_PROPERTY(int bspTreeDepth READ bspTreeDepth WRITE setBspTreeDepth) + Q_PROPERTY(QPalette palette READ palette WRITE setPalette) + Q_PROPERTY(QFont font READ font WRITE setFont) + Q_PROPERTY(bool stickyFocus READ stickyFocus WRITE setStickyFocus) + Q_PROPERTY(qreal minimumRenderSize READ minimumRenderSize WRITE setMinimumRenderSize) + Q_PROPERTY(bool focusOnTouch READ focusOnTouch WRITE setFocusOnTouch) + +public: + enum ItemIndexMethod { + BspTreeIndex, + NoIndex = -1 + }; + Q_ENUM(ItemIndexMethod) + enum SceneLayer { + ItemLayer = 0x1, + BackgroundLayer = 0x2, + ForegroundLayer = 0x4, + AllLayers = 0xffff + }; + Q_DECLARE_FLAGS(SceneLayers, SceneLayer) + + QGraphicsScene(QObject *parent = nullptr); + QGraphicsScene(const QRectF &sceneRect, QObject *parent = nullptr); + QGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject *parent = nullptr); + virtual ~QGraphicsScene(); + + QRectF sceneRect() const; + inline qreal width() const { return sceneRect().width(); } + inline qreal height() const { return sceneRect().height(); } + void setSceneRect(const QRectF &rect); + inline void setSceneRect(qreal x, qreal y, qreal w, qreal h) + { setSceneRect(QRectF(x, y, w, h)); } + + void render(QPainter *painter, + const QRectF &target = QRectF(), const QRectF &source = QRectF(), + Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio); + + ItemIndexMethod itemIndexMethod() const; + void setItemIndexMethod(ItemIndexMethod method); + + int bspTreeDepth() const; + void setBspTreeDepth(int depth); + + QRectF itemsBoundingRect() const; + + QList items(Qt::SortOrder order = Qt::DescendingOrder) const; + + QList items(const QPointF &pos, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape, Qt::SortOrder order = Qt::DescendingOrder, const QTransform &deviceTransform = QTransform()) const; + QList items(const QRectF &rect, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape, Qt::SortOrder order = Qt::DescendingOrder, const QTransform &deviceTransform = QTransform()) const; + QList items(const QPolygonF &polygon, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape, Qt::SortOrder order = Qt::DescendingOrder, const QTransform &deviceTransform = QTransform()) const; + QList items(const QPainterPath &path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape, Qt::SortOrder order = Qt::DescendingOrder, const QTransform &deviceTransform = QTransform()) const; + inline QList items(qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode, Qt::SortOrder order, + const QTransform &deviceTransform = QTransform()) const + { return items(QRectF(x, y, w, h), mode, order, deviceTransform); } + + QList collidingItems(const QGraphicsItem *item, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + QGraphicsItem *itemAt(const QPointF &pos, const QTransform &deviceTransform) const; + inline QGraphicsItem *itemAt(qreal x, qreal y, const QTransform &deviceTransform) const + { return itemAt(QPointF(x, y), deviceTransform); } + + QList selectedItems() const; + QPainterPath selectionArea() const; + void setSelectionArea(const QPainterPath &path, const QTransform &deviceTransform); + void setSelectionArea(const QPainterPath &path, Qt::ItemSelectionOperation selectionOperation = Qt::ReplaceSelection, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape, const QTransform &deviceTransform = QTransform()); + + QGraphicsItemGroup *createItemGroup(const QList &items); + void destroyItemGroup(QGraphicsItemGroup *group); + + void addItem(QGraphicsItem *item); + QGraphicsEllipseItem *addEllipse(const QRectF &rect, const QPen &pen = QPen(), const QBrush &brush = QBrush()); + QGraphicsLineItem *addLine(const QLineF &line, const QPen &pen = QPen()); + QGraphicsPathItem *addPath(const QPainterPath &path, const QPen &pen = QPen(), const QBrush &brush = QBrush()); + QGraphicsPixmapItem *addPixmap(const QPixmap &pixmap); + QGraphicsPolygonItem *addPolygon(const QPolygonF &polygon, const QPen &pen = QPen(), const QBrush &brush = QBrush()); + QGraphicsRectItem *addRect(const QRectF &rect, const QPen &pen = QPen(), const QBrush &brush = QBrush()); + QGraphicsTextItem *addText(const QString &text, const QFont &font = QFont()); + QGraphicsSimpleTextItem *addSimpleText(const QString &text, const QFont &font = QFont()); + QGraphicsProxyWidget *addWidget(QWidget *widget, Qt::WindowFlags wFlags = Qt::WindowFlags()); + inline QGraphicsEllipseItem *addEllipse(qreal x, qreal y, qreal w, qreal h, const QPen &pen = QPen(), const QBrush &brush = QBrush()) + { return addEllipse(QRectF(x, y, w, h), pen, brush); } + inline QGraphicsLineItem *addLine(qreal x1, qreal y1, qreal x2, qreal y2, const QPen &pen = QPen()) + { return addLine(QLineF(x1, y1, x2, y2), pen); } + inline QGraphicsRectItem *addRect(qreal x, qreal y, qreal w, qreal h, const QPen &pen = QPen(), const QBrush &brush = QBrush()) + { return addRect(QRectF(x, y, w, h), pen, brush); } + void removeItem(QGraphicsItem *item); + + QGraphicsItem *focusItem() const; + void setFocusItem(QGraphicsItem *item, Qt::FocusReason focusReason = Qt::OtherFocusReason); + bool hasFocus() const; + void setFocus(Qt::FocusReason focusReason = Qt::OtherFocusReason); + void clearFocus(); + + void setStickyFocus(bool enabled); + bool stickyFocus() const; + + QGraphicsItem *mouseGrabberItem() const; + + QBrush backgroundBrush() const; + void setBackgroundBrush(const QBrush &brush); + + QBrush foregroundBrush() const; + void setForegroundBrush(const QBrush &brush); + + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + + QList views() const; + + inline void update(qreal x, qreal y, qreal w, qreal h) + { update(QRectF(x, y, w, h)); } + inline void invalidate(qreal x, qreal y, qreal w, qreal h, SceneLayers layers = AllLayers) + { invalidate(QRectF(x, y, w, h), layers); } + + QStyle *style() const; + void setStyle(QStyle *style); + + QFont font() const; + void setFont(const QFont &font); + + QPalette palette() const; + void setPalette(const QPalette &palette); + + bool isActive() const; + QGraphicsItem *activePanel() const; + void setActivePanel(QGraphicsItem *item); + QGraphicsWidget *activeWindow() const; + void setActiveWindow(QGraphicsWidget *widget); + + bool sendEvent(QGraphicsItem *item, QEvent *event); + + qreal minimumRenderSize() const; + void setMinimumRenderSize(qreal minSize); + + bool focusOnTouch() const; + void setFocusOnTouch(bool enabled); + +public Q_SLOTS: + void update(const QRectF &rect = QRectF()); + void invalidate(const QRectF &rect = QRectF(), SceneLayers layers = AllLayers); + void advance(); + void clearSelection(); + void clear(); + +protected: + bool event(QEvent *event) override; + bool eventFilter(QObject *watched, QEvent *event) override; + virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event); + virtual void dragEnterEvent(QGraphicsSceneDragDropEvent *event); + virtual void dragMoveEvent(QGraphicsSceneDragDropEvent *event); + virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent *event); + virtual void dropEvent(QGraphicsSceneDragDropEvent *event); + virtual void focusInEvent(QFocusEvent *event); + virtual void focusOutEvent(QFocusEvent *event); + virtual void helpEvent(QGraphicsSceneHelpEvent *event); + virtual void keyPressEvent(QKeyEvent *event); + virtual void keyReleaseEvent(QKeyEvent *event); + virtual void mousePressEvent(QGraphicsSceneMouseEvent *event); + virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event); + virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); + virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event); + virtual void wheelEvent(QGraphicsSceneWheelEvent *event); + virtual void inputMethodEvent(QInputMethodEvent *event); + + virtual void drawBackground(QPainter *painter, const QRectF &rect); + virtual void drawForeground(QPainter *painter, const QRectF &rect); + virtual void drawItems(QPainter *painter, int numItems, + QGraphicsItem *items[], + const QStyleOptionGraphicsItem options[], + QWidget *widget = nullptr); + +protected Q_SLOTS: + virtual bool focusNextPrevChild(bool next); + +Q_SIGNALS: + void changed(const QList ®ion); + void sceneRectChanged(const QRectF &rect); + void selectionChanged(); + void focusItemChanged(QGraphicsItem *newFocus, QGraphicsItem *oldFocus, Qt::FocusReason reason); + +private: + Q_DECLARE_PRIVATE(QGraphicsScene) + Q_DISABLE_COPY(QGraphicsScene) + Q_PRIVATE_SLOT(d_func(), void _q_emitUpdated()) + Q_PRIVATE_SLOT(d_func(), void _q_polishItems()) + Q_PRIVATE_SLOT(d_func(), void _q_processDirtyItems()) + Q_PRIVATE_SLOT(d_func(), void _q_updateScenePosDescendants()) + friend class QGraphicsItem; + friend class QGraphicsItemPrivate; + friend class QGraphicsObject; + friend class QGraphicsView; + friend class QGraphicsViewPrivate; + friend class QGraphicsWidget; + friend class QGraphicsWidgetPrivate; + friend class QGraphicsEffect; + friend class QGraphicsSceneIndex; + friend class QGraphicsSceneIndexPrivate; + friend class QGraphicsSceneBspTreeIndex; + friend class QGraphicsSceneBspTreeIndexPrivate; + friend class QGraphicsItemEffectSourcePrivate; +#ifndef QT_NO_GESTURES + friend class QGesture; +#endif +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QGraphicsScene::SceneLayers) + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicssceneevent.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicssceneevent.h new file mode 100644 index 0000000000000000000000000000000000000000..b102d239d49deb6ffe7fbbffacddb1c97735c208 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicssceneevent.h @@ -0,0 +1,302 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSSCENEEVENT_H +#define QGRAPHICSSCENEEVENT_H + +#include +#include +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QMimeData; +class QPointF; +class QSizeF; +class QWidget; + +class QGraphicsSceneEventPrivate; +class Q_WIDGETS_EXPORT QGraphicsSceneEvent : public QEvent +{ +public: + explicit QGraphicsSceneEvent(Type type); + ~QGraphicsSceneEvent(); + + QWidget *widget() const; + void setWidget(QWidget *widget); + + quint64 timestamp() const; + void setTimestamp(quint64 ts); + +protected: + QGraphicsSceneEvent(QGraphicsSceneEventPrivate &dd, Type type = None); + QScopedPointer d_ptr; + Q_DECLARE_PRIVATE(QGraphicsSceneEvent) +private: + Q_DISABLE_COPY(QGraphicsSceneEvent) +}; + +class QGraphicsSceneMouseEventPrivate; +class Q_WIDGETS_EXPORT QGraphicsSceneMouseEvent : public QGraphicsSceneEvent +{ +public: + explicit QGraphicsSceneMouseEvent(Type type = None); + ~QGraphicsSceneMouseEvent(); + + QPointF pos() const; + void setPos(const QPointF &pos); + + QPointF scenePos() const; + void setScenePos(const QPointF &pos); + + QPoint screenPos() const; + void setScreenPos(const QPoint &pos); + + QPointF buttonDownPos(Qt::MouseButton button) const; + void setButtonDownPos(Qt::MouseButton button, const QPointF &pos); + + QPointF buttonDownScenePos(Qt::MouseButton button) const; + void setButtonDownScenePos(Qt::MouseButton button, const QPointF &pos); + + QPoint buttonDownScreenPos(Qt::MouseButton button) const; + void setButtonDownScreenPos(Qt::MouseButton button, const QPoint &pos); + + QPointF lastPos() const; + void setLastPos(const QPointF &pos); + + QPointF lastScenePos() const; + void setLastScenePos(const QPointF &pos); + + QPoint lastScreenPos() const; + void setLastScreenPos(const QPoint &pos); + + Qt::MouseButtons buttons() const; + void setButtons(Qt::MouseButtons buttons); + + Qt::MouseButton button() const; + void setButton(Qt::MouseButton button); + + Qt::KeyboardModifiers modifiers() const; + void setModifiers(Qt::KeyboardModifiers modifiers); + + Qt::MouseEventSource source() const; + void setSource(Qt::MouseEventSource source); + + Qt::MouseEventFlags flags() const; + void setFlags(Qt::MouseEventFlags); + +private: + Q_DECLARE_PRIVATE(QGraphicsSceneMouseEvent) + Q_DISABLE_COPY(QGraphicsSceneMouseEvent) +}; + +class QGraphicsSceneWheelEventPrivate; +class Q_WIDGETS_EXPORT QGraphicsSceneWheelEvent : public QGraphicsSceneEvent +{ +public: + explicit QGraphicsSceneWheelEvent(Type type = None); + ~QGraphicsSceneWheelEvent(); + + QPointF pos() const; + void setPos(const QPointF &pos); + + QPointF scenePos() const; + void setScenePos(const QPointF &pos); + + QPoint screenPos() const; + void setScreenPos(const QPoint &pos); + + Qt::MouseButtons buttons() const; + void setButtons(Qt::MouseButtons buttons); + + Qt::KeyboardModifiers modifiers() const; + void setModifiers(Qt::KeyboardModifiers modifiers); + + int delta() const; + void setDelta(int delta); + + Qt::Orientation orientation() const; + void setOrientation(Qt::Orientation orientation); + + Qt::ScrollPhase phase() const; + void setPhase(Qt::ScrollPhase scrollPhase); + + QPoint pixelDelta() const; + void setPixelDelta(QPoint delta); + + bool isInverted() const; + void setInverted(bool inverted); + +private: + Q_DECLARE_PRIVATE(QGraphicsSceneWheelEvent) + Q_DISABLE_COPY(QGraphicsSceneWheelEvent) +}; + +class QGraphicsSceneContextMenuEventPrivate; +class Q_WIDGETS_EXPORT QGraphicsSceneContextMenuEvent : public QGraphicsSceneEvent +{ +public: + enum Reason { Mouse, Keyboard, Other }; + + explicit QGraphicsSceneContextMenuEvent(Type type = None); + ~QGraphicsSceneContextMenuEvent(); + + QPointF pos() const; + void setPos(const QPointF &pos); + + QPointF scenePos() const; + void setScenePos(const QPointF &pos); + + QPoint screenPos() const; + void setScreenPos(const QPoint &pos); + + Qt::KeyboardModifiers modifiers() const; + void setModifiers(Qt::KeyboardModifiers modifiers); + + Reason reason() const; + void setReason(Reason reason); + +private: + Q_DECLARE_PRIVATE(QGraphicsSceneContextMenuEvent) + Q_DISABLE_COPY(QGraphicsSceneContextMenuEvent) +}; + +class QGraphicsSceneHoverEventPrivate; +class Q_WIDGETS_EXPORT QGraphicsSceneHoverEvent : public QGraphicsSceneEvent +{ +public: + explicit QGraphicsSceneHoverEvent(Type type = None); + ~QGraphicsSceneHoverEvent(); + + QPointF pos() const; + void setPos(const QPointF &pos); + + QPointF scenePos() const; + void setScenePos(const QPointF &pos); + + QPoint screenPos() const; + void setScreenPos(const QPoint &pos); + + QPointF lastPos() const; + void setLastPos(const QPointF &pos); + + QPointF lastScenePos() const; + void setLastScenePos(const QPointF &pos); + + QPoint lastScreenPos() const; + void setLastScreenPos(const QPoint &pos); + + Qt::KeyboardModifiers modifiers() const; + void setModifiers(Qt::KeyboardModifiers modifiers); + +private: + Q_DECLARE_PRIVATE(QGraphicsSceneHoverEvent) + Q_DISABLE_COPY(QGraphicsSceneHoverEvent) +}; + +class QGraphicsSceneHelpEventPrivate; +class Q_WIDGETS_EXPORT QGraphicsSceneHelpEvent : public QGraphicsSceneEvent +{ +public: + explicit QGraphicsSceneHelpEvent(Type type = None); + ~QGraphicsSceneHelpEvent(); + + QPointF scenePos() const; + void setScenePos(const QPointF &pos); + + QPoint screenPos() const; + void setScreenPos(const QPoint &pos); + +private: + Q_DECLARE_PRIVATE(QGraphicsSceneHelpEvent) + Q_DISABLE_COPY(QGraphicsSceneHelpEvent) +}; + +class QGraphicsSceneDragDropEventPrivate; +class Q_WIDGETS_EXPORT QGraphicsSceneDragDropEvent : public QGraphicsSceneEvent +{ +public: + explicit QGraphicsSceneDragDropEvent(Type type = None); + ~QGraphicsSceneDragDropEvent(); + + QPointF pos() const; + void setPos(const QPointF &pos); + + QPointF scenePos() const; + void setScenePos(const QPointF &pos); + + QPoint screenPos() const; + void setScreenPos(const QPoint &pos); + + Qt::MouseButtons buttons() const; + void setButtons(Qt::MouseButtons buttons); + + Qt::KeyboardModifiers modifiers() const; + void setModifiers(Qt::KeyboardModifiers modifiers); + + Qt::DropActions possibleActions() const; + void setPossibleActions(Qt::DropActions actions); + + Qt::DropAction proposedAction() const; + void setProposedAction(Qt::DropAction action); + void acceptProposedAction(); + + Qt::DropAction dropAction() const; + void setDropAction(Qt::DropAction action); + + QWidget *source() const; + void setSource(QWidget *source); + + const QMimeData *mimeData() const; + void setMimeData(const QMimeData *data); + +private: + Q_DECLARE_PRIVATE(QGraphicsSceneDragDropEvent) + Q_DISABLE_COPY(QGraphicsSceneDragDropEvent) +}; + +class QGraphicsSceneResizeEventPrivate; +class Q_WIDGETS_EXPORT QGraphicsSceneResizeEvent : public QGraphicsSceneEvent +{ + Q_DECLARE_PRIVATE(QGraphicsSceneResizeEvent) + Q_DISABLE_COPY(QGraphicsSceneResizeEvent) +public: + QGraphicsSceneResizeEvent(); + ~QGraphicsSceneResizeEvent(); + + QSizeF oldSize() const; + void setOldSize(const QSizeF &size); + + QSizeF newSize() const; + void setNewSize(const QSizeF &size); +}; + +class QGraphicsSceneMoveEventPrivate; +class Q_WIDGETS_EXPORT QGraphicsSceneMoveEvent : public QGraphicsSceneEvent +{ + Q_DECLARE_PRIVATE(QGraphicsSceneMoveEvent) + Q_DISABLE_COPY(QGraphicsSceneMoveEvent) +public: + QGraphicsSceneMoveEvent(); + ~QGraphicsSceneMoveEvent(); + + QPointF oldPos() const; + void setOldPos(const QPointF &pos); + + QPointF newPos() const; + void setNewPos(const QPointF &pos); +}; + +#ifndef QT_NO_DEBUG_STREAM +Q_WIDGETS_EXPORT QDebug operator<<(QDebug, const QGraphicsSceneEvent *); +#endif + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicstransform.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicstransform.h new file mode 100644 index 0000000000000000000000000000000000000000..8d589028438ee051a9ee190f605a550ba265f985 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicstransform.h @@ -0,0 +1,116 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSTRANSFORM_H +#define QGRAPHICSTRANSFORM_H + +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QGraphicsItem; +class QGraphicsTransformPrivate; + +class Q_WIDGETS_EXPORT QGraphicsTransform : public QObject +{ + Q_OBJECT +public: + QGraphicsTransform(QObject *parent = nullptr); + ~QGraphicsTransform(); + + virtual void applyTo(QMatrix4x4 *matrix) const = 0; + +protected Q_SLOTS: + void update(); + +protected: + QGraphicsTransform(QGraphicsTransformPrivate &p, QObject *parent); + +private: + friend class QGraphicsItem; + friend class QGraphicsItemPrivate; + Q_DECLARE_PRIVATE(QGraphicsTransform) +}; + +class QGraphicsScalePrivate; + +class Q_WIDGETS_EXPORT QGraphicsScale : public QGraphicsTransform +{ + Q_OBJECT + + Q_PROPERTY(QVector3D origin READ origin WRITE setOrigin NOTIFY originChanged) + Q_PROPERTY(qreal xScale READ xScale WRITE setXScale NOTIFY xScaleChanged) + Q_PROPERTY(qreal yScale READ yScale WRITE setYScale NOTIFY yScaleChanged) + Q_PROPERTY(qreal zScale READ zScale WRITE setZScale NOTIFY zScaleChanged) +public: + QGraphicsScale(QObject *parent = nullptr); + ~QGraphicsScale(); + + QVector3D origin() const; + void setOrigin(const QVector3D &point); + + qreal xScale() const; + void setXScale(qreal); + + qreal yScale() const; + void setYScale(qreal); + + qreal zScale() const; + void setZScale(qreal); + + void applyTo(QMatrix4x4 *matrix) const override; + +Q_SIGNALS: + void originChanged(); + void xScaleChanged(); + void yScaleChanged(); + void zScaleChanged(); + void scaleChanged(); + +private: + Q_DECLARE_PRIVATE(QGraphicsScale) +}; + +class QGraphicsRotationPrivate; + +class Q_WIDGETS_EXPORT QGraphicsRotation : public QGraphicsTransform +{ + Q_OBJECT + + Q_PROPERTY(QVector3D origin READ origin WRITE setOrigin NOTIFY originChanged) + Q_PROPERTY(qreal angle READ angle WRITE setAngle NOTIFY angleChanged) + Q_PROPERTY(QVector3D axis READ axis WRITE setAxis NOTIFY axisChanged) +public: + QGraphicsRotation(QObject *parent = nullptr); + ~QGraphicsRotation(); + + QVector3D origin() const; + void setOrigin(const QVector3D &point); + + qreal angle() const; + void setAngle(qreal); + + QVector3D axis() const; + void setAxis(const QVector3D &axis); + void setAxis(Qt::Axis axis); + + void applyTo(QMatrix4x4 *matrix) const override; + +Q_SIGNALS: + void originChanged(); + void angleChanged(); + void axisChanged(); + +private: + Q_DECLARE_PRIVATE(QGraphicsRotation) +}; + +QT_END_NAMESPACE + +#endif // QFXTRANSFORM_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsview.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsview.h new file mode 100644 index 0000000000000000000000000000000000000000..d70f25f8c84acf2f57afbddb60d241a4c79f63bd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicsview.h @@ -0,0 +1,281 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSVIEW_H +#define QGRAPHICSVIEW_H + +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QGraphicsItem; +class QPainterPath; +class QPolygonF; +class QStyleOptionGraphicsItem; + +class QGraphicsViewPrivate; +class Q_WIDGETS_EXPORT QGraphicsView : public QAbstractScrollArea +{ + Q_OBJECT + Q_FLAGS(QPainter::RenderHints CacheMode OptimizationFlags) + Q_PROPERTY(QBrush backgroundBrush READ backgroundBrush WRITE setBackgroundBrush) + Q_PROPERTY(QBrush foregroundBrush READ foregroundBrush WRITE setForegroundBrush) + Q_PROPERTY(bool interactive READ isInteractive WRITE setInteractive) + Q_PROPERTY(QRectF sceneRect READ sceneRect WRITE setSceneRect) + Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment) + Q_PROPERTY(QPainter::RenderHints renderHints READ renderHints WRITE setRenderHints) + Q_PROPERTY(DragMode dragMode READ dragMode WRITE setDragMode) + Q_PROPERTY(CacheMode cacheMode READ cacheMode WRITE setCacheMode) + Q_PROPERTY(ViewportAnchor transformationAnchor READ transformationAnchor + WRITE setTransformationAnchor) + Q_PROPERTY(ViewportAnchor resizeAnchor READ resizeAnchor WRITE setResizeAnchor) + Q_PROPERTY(ViewportUpdateMode viewportUpdateMode READ viewportUpdateMode + WRITE setViewportUpdateMode) +#if QT_CONFIG(rubberband) + Q_PROPERTY(Qt::ItemSelectionMode rubberBandSelectionMode READ rubberBandSelectionMode + WRITE setRubberBandSelectionMode) +#endif + Q_PROPERTY(OptimizationFlags optimizationFlags READ optimizationFlags + WRITE setOptimizationFlags) + +public: + enum ViewportAnchor { + NoAnchor, + AnchorViewCenter, + AnchorUnderMouse + }; + Q_ENUM(ViewportAnchor) + + enum CacheModeFlag { + CacheNone = 0x0, + CacheBackground = 0x1 + }; + Q_DECLARE_FLAGS(CacheMode, CacheModeFlag) + + enum DragMode { + NoDrag, + ScrollHandDrag, + RubberBandDrag + }; + Q_ENUM(DragMode) + + enum ViewportUpdateMode { + FullViewportUpdate, + MinimalViewportUpdate, + SmartViewportUpdate, + NoViewportUpdate, + BoundingRectViewportUpdate + }; + Q_ENUM(ViewportUpdateMode) + + enum OptimizationFlag { + DontSavePainterState = 0x1, + DontAdjustForAntialiasing = 0x2, + IndirectPainting = 0x4 + }; + Q_DECLARE_FLAGS(OptimizationFlags, OptimizationFlag) + + QGraphicsView(QWidget *parent = nullptr); + QGraphicsView(QGraphicsScene *scene, QWidget *parent = nullptr); + ~QGraphicsView(); + + QSize sizeHint() const override; + + QPainter::RenderHints renderHints() const; + void setRenderHint(QPainter::RenderHint hint, bool enabled = true); + void setRenderHints(QPainter::RenderHints hints); + + Qt::Alignment alignment() const; + void setAlignment(Qt::Alignment alignment); + + ViewportAnchor transformationAnchor() const; + void setTransformationAnchor(ViewportAnchor anchor); + + ViewportAnchor resizeAnchor() const; + void setResizeAnchor(ViewportAnchor anchor); + + ViewportUpdateMode viewportUpdateMode() const; + void setViewportUpdateMode(ViewportUpdateMode mode); + + OptimizationFlags optimizationFlags() const; + void setOptimizationFlag(OptimizationFlag flag, bool enabled = true); + void setOptimizationFlags(OptimizationFlags flags); + + DragMode dragMode() const; + void setDragMode(DragMode mode); + +#if QT_CONFIG(rubberband) + Qt::ItemSelectionMode rubberBandSelectionMode() const; + void setRubberBandSelectionMode(Qt::ItemSelectionMode mode); + QRect rubberBandRect() const; +#endif + + CacheMode cacheMode() const; + void setCacheMode(CacheMode mode); + void resetCachedContent(); + + bool isInteractive() const; + void setInteractive(bool allowed); + + QGraphicsScene *scene() const; + void setScene(QGraphicsScene *scene); + + QRectF sceneRect() const; + void setSceneRect(const QRectF &rect); + inline void setSceneRect(qreal x, qreal y, qreal w, qreal h); + + QTransform transform() const; + QTransform viewportTransform() const; + bool isTransformed() const; + void setTransform(const QTransform &matrix, bool combine = false); + void resetTransform(); + void rotate(qreal angle); + void scale(qreal sx, qreal sy); + void shear(qreal sh, qreal sv); + void translate(qreal dx, qreal dy); + + void centerOn(const QPointF &pos); + inline void centerOn(qreal x, qreal y); + void centerOn(const QGraphicsItem *item); + void ensureVisible(const QRectF &rect, int xmargin = 50, int ymargin = 50); + inline void ensureVisible(qreal x, qreal y, qreal w, qreal h, int xmargin = 50, int ymargin = 50); + void ensureVisible(const QGraphicsItem *item, int xmargin = 50, int ymargin = 50); + void fitInView(const QRectF &rect, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio); + inline void fitInView(qreal x, qreal y, qreal w, qreal h, + Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio); + void fitInView(const QGraphicsItem *item, + Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio); + + void render(QPainter *painter, const QRectF &target = QRectF(), const QRect &source = QRect(), + Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio); + + QList items() const; + QList items(const QPoint &pos) const; + inline QList items(int x, int y) const; + QList items(const QRect &rect, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + inline QList items(int x, int y, int w, int h, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + QList items(const QPolygon &polygon, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + QList items(const QPainterPath &path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + QGraphicsItem *itemAt(const QPoint &pos) const; + inline QGraphicsItem *itemAt(int x, int y) const; + + QPointF mapToScene(const QPoint &point) const; + QPolygonF mapToScene(const QRect &rect) const; + QPolygonF mapToScene(const QPolygon &polygon) const; + QPainterPath mapToScene(const QPainterPath &path) const; + QPoint mapFromScene(const QPointF &point) const; + QPolygon mapFromScene(const QRectF &rect) const; + QPolygon mapFromScene(const QPolygonF &polygon) const; + QPainterPath mapFromScene(const QPainterPath &path) const; + inline QPointF mapToScene(int x, int y) const; + inline QPolygonF mapToScene(int x, int y, int w, int h) const; + inline QPoint mapFromScene(qreal x, qreal y) const; + inline QPolygon mapFromScene(qreal x, qreal y, qreal w, qreal h) const; + + QVariant inputMethodQuery(Qt::InputMethodQuery query) const override; + + QBrush backgroundBrush() const; + void setBackgroundBrush(const QBrush &brush); + + QBrush foregroundBrush() const; + void setForegroundBrush(const QBrush &brush); + +public Q_SLOTS: + void updateScene(const QList &rects); + void invalidateScene(const QRectF &rect = QRectF(), QGraphicsScene::SceneLayers layers = QGraphicsScene::AllLayers); + void updateSceneRect(const QRectF &rect); + +#if QT_CONFIG(rubberband) +Q_SIGNALS: + void rubberBandChanged(QRect viewportRect, QPointF fromScenePoint, QPointF toScenePoint); +#endif + +protected Q_SLOTS: + void setupViewport(QWidget *widget) override; + +protected: + QGraphicsView(QGraphicsViewPrivate &, QWidget *parent = nullptr); + bool event(QEvent *event) override; + bool viewportEvent(QEvent *event) override; + +#ifndef QT_NO_CONTEXTMENU + void contextMenuEvent(QContextMenuEvent *event) override; +#endif +#if QT_CONFIG(draganddrop) + void dragEnterEvent(QDragEnterEvent *event) override; + void dragLeaveEvent(QDragLeaveEvent *event) override; + void dragMoveEvent(QDragMoveEvent *event) override; + void dropEvent(QDropEvent *event) override; +#endif + void focusInEvent(QFocusEvent *event) override; + bool focusNextPrevChild(bool next) override; + void focusOutEvent(QFocusEvent *event) override; + void keyPressEvent(QKeyEvent *event) override; + void keyReleaseEvent(QKeyEvent *event) override; + void mouseDoubleClickEvent(QMouseEvent *event) override; + void mousePressEvent(QMouseEvent *event) override; + void mouseMoveEvent(QMouseEvent *event) override; + void mouseReleaseEvent(QMouseEvent *event) override; +#if QT_CONFIG(wheelevent) + void wheelEvent(QWheelEvent *event) override; +#endif + void paintEvent(QPaintEvent *event) override; + void resizeEvent(QResizeEvent *event) override; + void scrollContentsBy(int dx, int dy) override; + void showEvent(QShowEvent *event) override; + void inputMethodEvent(QInputMethodEvent *event) override; + + virtual void drawBackground(QPainter *painter, const QRectF &rect); + virtual void drawForeground(QPainter *painter, const QRectF &rect); + virtual void drawItems(QPainter *painter, int numItems, + QGraphicsItem *items[], + const QStyleOptionGraphicsItem options[]); + +private: + Q_DECLARE_PRIVATE(QGraphicsView) + Q_DISABLE_COPY(QGraphicsView) +#ifndef QT_NO_CURSOR + Q_PRIVATE_SLOT(d_func(), void _q_setViewportCursor(const QCursor &)) + Q_PRIVATE_SLOT(d_func(), void _q_unsetViewportCursor()) +#endif + friend class QGraphicsSceneWidget; + friend class QGraphicsScene; + friend class QGraphicsScenePrivate; + friend class QGraphicsItemPrivate; +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QGraphicsView::CacheMode) +Q_DECLARE_OPERATORS_FOR_FLAGS(QGraphicsView::OptimizationFlags) + +inline void QGraphicsView::setSceneRect(qreal ax, qreal ay, qreal aw, qreal ah) +{ setSceneRect(QRectF(ax, ay, aw, ah)); } +inline void QGraphicsView::centerOn(qreal ax, qreal ay) +{ centerOn(QPointF(ax, ay)); } +inline void QGraphicsView::ensureVisible(qreal ax, qreal ay, qreal aw, qreal ah, int xmargin, int ymargin) +{ ensureVisible(QRectF(ax, ay, aw, ah), xmargin, ymargin); } +inline void QGraphicsView::fitInView(qreal ax, qreal ay, qreal w, qreal h, Qt::AspectRatioMode mode) +{ fitInView(QRectF(ax, ay, w, h), mode); } +inline QList QGraphicsView::items(int ax, int ay) const +{ return items(QPoint(ax, ay)); } +inline QList QGraphicsView::items(int ax, int ay, int w, int h, Qt::ItemSelectionMode mode) const +{ return items(QRect(ax, ay, w, h), mode); } +inline QGraphicsItem *QGraphicsView::itemAt(int ax, int ay) const +{ return itemAt(QPoint(ax, ay)); } +inline QPointF QGraphicsView::mapToScene(int ax, int ay) const +{ return mapToScene(QPoint(ax, ay)); } +inline QPolygonF QGraphicsView::mapToScene(int ax, int ay, int w, int h) const +{ return mapToScene(QRect(ax, ay, w, h)); } +inline QPoint QGraphicsView::mapFromScene(qreal ax, qreal ay) const +{ return mapFromScene(QPointF(ax, ay)); } +inline QPolygon QGraphicsView::mapFromScene(qreal ax, qreal ay, qreal w, qreal h) const +{ return mapFromScene(QRectF(ax, ay, w, h)); } + +QT_END_NAMESPACE + +#endif // QGRAPHICSVIEW_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicswidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicswidget.h new file mode 100644 index 0000000000000000000000000000000000000000..e5f408c0cb673bb781b3a9238a0bf597691a77ec --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgraphicswidget.h @@ -0,0 +1,209 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRAPHICSWIDGET_H +#define QGRAPHICSWIDGET_H + +#include +#include +#if QT_CONFIG(action) +# include +#endif +#include +#include +#include + +QT_REQUIRE_CONFIG(graphicsview); + +QT_BEGIN_NAMESPACE + +class QFont; +class QFontMetrics; +class QGraphicsLayout; +class QGraphicsSceneMoveEvent; +class QGraphicsWidgetPrivate; +class QGraphicsSceneResizeEvent; +class QStyle; +class QStyleOption; + +class QGraphicsWidgetPrivate; + +class Q_WIDGETS_EXPORT QGraphicsWidget : public QGraphicsObject, public QGraphicsLayoutItem +{ + Q_OBJECT + Q_INTERFACES(QGraphicsItem QGraphicsLayoutItem) + Q_PROPERTY(QPalette palette READ palette WRITE setPalette) + Q_PROPERTY(QFont font READ font WRITE setFont) + Q_PROPERTY(Qt::LayoutDirection layoutDirection READ layoutDirection WRITE setLayoutDirection + RESET unsetLayoutDirection) + Q_PROPERTY(QSizeF size READ size WRITE resize NOTIFY geometryChanged) + Q_PROPERTY(QSizeF minimumSize READ minimumSize WRITE setMinimumSize) + Q_PROPERTY(QSizeF preferredSize READ preferredSize WRITE setPreferredSize) + Q_PROPERTY(QSizeF maximumSize READ maximumSize WRITE setMaximumSize) + Q_PROPERTY(QSizePolicy sizePolicy READ sizePolicy WRITE setSizePolicy) + Q_PROPERTY(Qt::FocusPolicy focusPolicy READ focusPolicy WRITE setFocusPolicy) + Q_PROPERTY(Qt::WindowFlags windowFlags READ windowFlags WRITE setWindowFlags) + Q_PROPERTY(QString windowTitle READ windowTitle WRITE setWindowTitle) + Q_PROPERTY(QRectF geometry READ geometry WRITE setGeometry NOTIFY geometryChanged) + Q_PROPERTY(bool autoFillBackground READ autoFillBackground WRITE setAutoFillBackground) + Q_PROPERTY(QGraphicsLayout* layout READ layout WRITE setLayout NOTIFY layoutChanged) +public: + QGraphicsWidget(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = Qt::WindowFlags()); + ~QGraphicsWidget(); + QGraphicsLayout *layout() const; + void setLayout(QGraphicsLayout *layout); + void adjustSize(); + + Qt::LayoutDirection layoutDirection() const; + void setLayoutDirection(Qt::LayoutDirection direction); + void unsetLayoutDirection(); + + QStyle *style() const; + void setStyle(QStyle *style); + + QFont font() const; + void setFont(const QFont &font); + + QPalette palette() const; + void setPalette(const QPalette &palette); + + bool autoFillBackground() const; + void setAutoFillBackground(bool enabled); + + void resize(const QSizeF &size); + inline void resize(qreal w, qreal h) { resize(QSizeF(w, h)); } + QSizeF size() const; + + void setGeometry(const QRectF &rect) override; + inline void setGeometry(qreal x, qreal y, qreal w, qreal h); + inline QRectF rect() const { return QRectF(QPointF(), size()); } + + void setContentsMargins(qreal left, qreal top, qreal right, qreal bottom); + void setContentsMargins(QMarginsF margins); + void getContentsMargins(qreal *left, qreal *top, qreal *right, qreal *bottom) const override; + + void setWindowFrameMargins(qreal left, qreal top, qreal right, qreal bottom); + void setWindowFrameMargins(QMarginsF margins); + void getWindowFrameMargins(qreal *left, qreal *top, qreal *right, qreal *bottom) const; + void unsetWindowFrameMargins(); + QRectF windowFrameGeometry() const; + QRectF windowFrameRect() const; + + // Window handling + Qt::WindowFlags windowFlags() const; + Qt::WindowType windowType() const; + void setWindowFlags(Qt::WindowFlags wFlags); + bool isActiveWindow() const; + void setWindowTitle(const QString &title); + QString windowTitle() const; + + // Focus handling + Qt::FocusPolicy focusPolicy() const; + void setFocusPolicy(Qt::FocusPolicy policy); + static void setTabOrder(QGraphicsWidget *first, QGraphicsWidget *second); + QGraphicsWidget *focusWidget() const; + +#ifndef QT_NO_SHORTCUT + int grabShortcut(const QKeySequence &sequence, Qt::ShortcutContext context = Qt::WindowShortcut); + void releaseShortcut(int id); + void setShortcutEnabled(int id, bool enabled = true); + void setShortcutAutoRepeat(int id, bool enabled = true); +#endif + +#ifndef QT_NO_ACTION + //actions + void addAction(QAction *action); + void addActions(const QList &actions); + void insertActions(QAction *before, const QList &actions); + void insertAction(QAction *before, QAction *action); + void removeAction(QAction *action); + QList actions() const; +#endif + + void setAttribute(Qt::WidgetAttribute attribute, bool on = true); + bool testAttribute(Qt::WidgetAttribute attribute) const; + + enum { + Type = 11 + }; + int type() const override; + + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override; + virtual void paintWindowFrame(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr); + QRectF boundingRect() const override; + QPainterPath shape() const override; + +#if 0 + void dumpFocusChain(); +#endif + + using QObject::children; + +Q_SIGNALS: + void geometryChanged(); + void layoutChanged(); + +public Q_SLOTS: + bool close(); + +protected: + virtual void initStyleOption(QStyleOption *option) const; + + QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const override; + void updateGeometry() override; + + // Notification + QVariant itemChange(GraphicsItemChange change, const QVariant &value) override; + virtual QVariant propertyChange(const QString &propertyName, const QVariant &value); + + // Scene events + bool sceneEvent(QEvent *event) override; + virtual bool windowFrameEvent(QEvent *e); + virtual Qt::WindowFrameSection windowFrameSectionAt(const QPointF& pos) const; + + // Base event handlers + bool event(QEvent *event) override; + //virtual void actionEvent(QActionEvent *event); + virtual void changeEvent(QEvent *event); + virtual void closeEvent(QCloseEvent *event); + //void create(WId window = 0, bool initializeWindow = true, bool destroyOldWindow = true); + //void destroy(bool destroyWindow = true, bool destroySubWindows = true); + void focusInEvent(QFocusEvent *event) override; + virtual bool focusNextPrevChild(bool next); + void focusOutEvent(QFocusEvent *event) override; + virtual void hideEvent(QHideEvent *event); + //virtual int metric(PaintDeviceMetric m ) const; + virtual void moveEvent(QGraphicsSceneMoveEvent *event); + virtual void polishEvent(); + //void resetInputContext (); + virtual void resizeEvent(QGraphicsSceneResizeEvent *event); + virtual void showEvent(QShowEvent *event); + //virtual void tabletEvent(QTabletEvent *event); + virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event) override; + virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override; + virtual void grabMouseEvent(QEvent *event); + virtual void ungrabMouseEvent(QEvent *event); + virtual void grabKeyboardEvent(QEvent *event); + virtual void ungrabKeyboardEvent(QEvent *event); + QGraphicsWidget(QGraphicsWidgetPrivate &, QGraphicsItem *parent, Qt::WindowFlags wFlags = Qt::WindowFlags()); + +private: + Q_DISABLE_COPY(QGraphicsWidget) + Q_DECLARE_PRIVATE_D(QGraphicsItem::d_ptr.data(), QGraphicsWidget) + friend class QGraphicsScene; + friend class QGraphicsScenePrivate; + friend class QGraphicsView; + friend class QGraphicsItem; + friend class QGraphicsItemPrivate; + friend class QGraphicsLayout; + friend class QWidget; + friend class QApplication; +}; + +inline void QGraphicsWidget::setGeometry(qreal ax, qreal ay, qreal aw, qreal ah) +{ setGeometry(QRectF(ax, ay, aw, ah)); } + +QT_END_NAMESPACE + +#endif + diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgridlayout.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgridlayout.h new file mode 100644 index 0000000000000000000000000000000000000000..84ae1787ac3e432e448d332fe33f31b6f7d6cad0 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgridlayout.h @@ -0,0 +1,94 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGRIDLAYOUT_H +#define QGRIDLAYOUT_H + +#include +#include +#ifdef QT_INCLUDE_COMPAT +#include +#endif + +#include + +QT_BEGIN_NAMESPACE + + +class QGridLayoutPrivate; + +class Q_WIDGETS_EXPORT QGridLayout : public QLayout +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QGridLayout) + QDOC_PROPERTY(int horizontalSpacing READ horizontalSpacing WRITE setHorizontalSpacing) + QDOC_PROPERTY(int verticalSpacing READ verticalSpacing WRITE setVerticalSpacing) + +public: + explicit QGridLayout(QWidget *parent = nullptr); + ~QGridLayout(); + + QSize sizeHint() const override; + QSize minimumSize() const override; + QSize maximumSize() const override; + + void setHorizontalSpacing(int spacing); + int horizontalSpacing() const; + void setVerticalSpacing(int spacing); + int verticalSpacing() const; + void setSpacing(int spacing) override; + int spacing() const override; + + void setRowStretch(int row, int stretch); + void setColumnStretch(int column, int stretch); + int rowStretch(int row) const; + int columnStretch(int column) const; + + void setRowMinimumHeight(int row, int minSize); + void setColumnMinimumWidth(int column, int minSize); + int rowMinimumHeight(int row) const; + int columnMinimumWidth(int column) const; + + int columnCount() const; + int rowCount() const; + + QRect cellRect(int row, int column) const; + + bool hasHeightForWidth() const override; + int heightForWidth(int) const override; + int minimumHeightForWidth(int) const override; + + Qt::Orientations expandingDirections() const override; + void invalidate() override; + + inline void addWidget(QWidget *w) { QLayout::addWidget(w); } + void addWidget(QWidget *, int row, int column, Qt::Alignment = Qt::Alignment()); + void addWidget(QWidget *, int row, int column, int rowSpan, int columnSpan, Qt::Alignment = Qt::Alignment()); + void addLayout(QLayout *, int row, int column, Qt::Alignment = Qt::Alignment()); + void addLayout(QLayout *, int row, int column, int rowSpan, int columnSpan, Qt::Alignment = Qt::Alignment()); + + void setOriginCorner(Qt::Corner); + Qt::Corner originCorner() const; + + QLayoutItem *itemAt(int index) const override; + QLayoutItem *itemAtPosition(int row, int column) const; + QLayoutItem *takeAt(int index) override; + int count() const override; + void setGeometry(const QRect&) override; + + void addItem(QLayoutItem *item, int row, int column, int rowSpan = 1, int columnSpan = 1, Qt::Alignment = Qt::Alignment()); + + void setDefaultPositioning(int n, Qt::Orientation orient); + void getItemPosition(int idx, int *row, int *column, int *rowSpan, int *columnSpan) const; + +protected: + void addItem(QLayoutItem *) override; + +private: + Q_DISABLE_COPY(QGridLayout) + +}; + +QT_END_NAMESPACE + +#endif // QGRIDLAYOUT_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qgroupbox.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgroupbox.h new file mode 100644 index 0000000000000000000000000000000000000000..2e565bb83b689063310bf906838e34a1f3f93dac --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qgroupbox.h @@ -0,0 +1,72 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QGROUPBOX_H +#define QGROUPBOX_H + +#include +#include + +QT_REQUIRE_CONFIG(groupbox); + +QT_BEGIN_NAMESPACE + +class QGroupBoxPrivate; +class QStyleOptionGroupBox; +class Q_WIDGETS_EXPORT QGroupBox : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(QString title READ title WRITE setTitle) + Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment) + Q_PROPERTY(bool flat READ isFlat WRITE setFlat) + Q_PROPERTY(bool checkable READ isCheckable WRITE setCheckable) + Q_PROPERTY(bool checked READ isChecked WRITE setChecked NOTIFY toggled USER true) +public: + explicit QGroupBox(QWidget *parent = nullptr); + explicit QGroupBox(const QString &title, QWidget *parent = nullptr); + ~QGroupBox(); + + QString title() const; + void setTitle(const QString &title); + + Qt::Alignment alignment() const; + void setAlignment(int alignment); + + QSize minimumSizeHint() const override; + + bool isFlat() const; + void setFlat(bool flat); + bool isCheckable() const; + void setCheckable(bool checkable); + bool isChecked() const; + +public Q_SLOTS: + void setChecked(bool checked); + +Q_SIGNALS: + void clicked(bool checked = false); + void toggled(bool); + +protected: + bool event(QEvent *event) override; + void childEvent(QChildEvent *event) override; + void resizeEvent(QResizeEvent *event) override; + void paintEvent(QPaintEvent *event) override; + void focusInEvent(QFocusEvent *event) override; + void changeEvent(QEvent *event) override; + void mousePressEvent(QMouseEvent *event) override; + void mouseMoveEvent(QMouseEvent *event) override; + void mouseReleaseEvent(QMouseEvent *event) override; + virtual void initStyleOption(QStyleOptionGroupBox *option) const; + + +private: + Q_DISABLE_COPY(QGroupBox) + Q_DECLARE_PRIVATE(QGroupBox) + Q_PRIVATE_SLOT(d_func(), void _q_setChildrenEnabled(bool b)) +}; + +QT_END_NAMESPACE + +#endif // QGROUPBOX_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qheaderview.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qheaderview.h new file mode 100644 index 0000000000000000000000000000000000000000..2ae3868fbdbc5fc2f8f7ce7bc4dfc52fd26d5734 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qheaderview.h @@ -0,0 +1,231 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QHEADERVIEW_H +#define QHEADERVIEW_H + +#include +#include + +QT_REQUIRE_CONFIG(itemviews); + +QT_BEGIN_NAMESPACE + +class QHeaderViewPrivate; +class QStyleOptionHeader; + +class Q_WIDGETS_EXPORT QHeaderView : public QAbstractItemView +{ + Q_OBJECT + Q_PROPERTY(bool firstSectionMovable READ isFirstSectionMovable WRITE setFirstSectionMovable) + Q_PROPERTY(bool showSortIndicator READ isSortIndicatorShown WRITE setSortIndicatorShown) + Q_PROPERTY(bool sectionsMovable READ sectionsMovable WRITE setSectionsMovable) + Q_PROPERTY(bool sectionsClickable READ sectionsClickable WRITE setSectionsClickable) + Q_PROPERTY(bool highlightSections READ highlightSections WRITE setHighlightSections) + Q_PROPERTY(bool stretchLastSection READ stretchLastSection WRITE setStretchLastSection) + Q_PROPERTY(bool cascadingSectionResizes READ cascadingSectionResizes + WRITE setCascadingSectionResizes) + Q_PROPERTY(int defaultSectionSize READ defaultSectionSize WRITE setDefaultSectionSize + RESET resetDefaultSectionSize) + Q_PROPERTY(int minimumSectionSize READ minimumSectionSize WRITE setMinimumSectionSize) + Q_PROPERTY(int maximumSectionSize READ maximumSectionSize WRITE setMaximumSectionSize) + Q_PROPERTY(Qt::Alignment defaultAlignment READ defaultAlignment WRITE setDefaultAlignment) + Q_PROPERTY(bool sortIndicatorClearable READ isSortIndicatorClearable + WRITE setSortIndicatorClearable NOTIFY sortIndicatorClearableChanged) + +public: + + enum ResizeMode + { + Interactive, + Stretch, + Fixed, + ResizeToContents, + Custom = Fixed + }; + Q_ENUM(ResizeMode) + + explicit QHeaderView(Qt::Orientation orientation, QWidget *parent = nullptr); + virtual ~QHeaderView(); + + void setModel(QAbstractItemModel *model) override; + + Qt::Orientation orientation() const; + int offset() const; + int length() const; + QSize sizeHint() const override; + void setVisible(bool v) override; + int sectionSizeHint(int logicalIndex) const; + + int visualIndexAt(int position) const; + int logicalIndexAt(int position) const; + + inline int logicalIndexAt(int x, int y) const; + inline int logicalIndexAt(const QPoint &pos) const; + + int sectionSize(int logicalIndex) const; + int sectionPosition(int logicalIndex) const; + int sectionViewportPosition(int logicalIndex) const; + + void moveSection(int from, int to); + void swapSections(int first, int second); + void resizeSection(int logicalIndex, int size); + void resizeSections(QHeaderView::ResizeMode mode); + + bool isSectionHidden(int logicalIndex) const; + void setSectionHidden(int logicalIndex, bool hide); + int hiddenSectionCount() const; + + inline void hideSection(int logicalIndex); + inline void showSection(int logicalIndex); + + int count() const; + int visualIndex(int logicalIndex) const; + int logicalIndex(int visualIndex) const; + + void setSectionsMovable(bool movable); + bool sectionsMovable() const; + void setFirstSectionMovable(bool movable); + bool isFirstSectionMovable() const; + + void setSectionsClickable(bool clickable); + bool sectionsClickable() const; + + void setHighlightSections(bool highlight); + bool highlightSections() const; + + ResizeMode sectionResizeMode(int logicalIndex) const; + void setSectionResizeMode(ResizeMode mode); + void setSectionResizeMode(int logicalIndex, ResizeMode mode); + + void setResizeContentsPrecision(int precision); + int resizeContentsPrecision() const; + + int stretchSectionCount() const; + + void setSortIndicatorShown(bool show); + bool isSortIndicatorShown() const; + + void setSortIndicator(int logicalIndex, Qt::SortOrder order); + int sortIndicatorSection() const; + Qt::SortOrder sortIndicatorOrder() const; + + void setSortIndicatorClearable(bool clearable); + bool isSortIndicatorClearable() const; + + bool stretchLastSection() const; + void setStretchLastSection(bool stretch); + + bool cascadingSectionResizes() const; + void setCascadingSectionResizes(bool enable); + + int defaultSectionSize() const; + void setDefaultSectionSize(int size); + void resetDefaultSectionSize(); + + int minimumSectionSize() const; + void setMinimumSectionSize(int size); + int maximumSectionSize() const; + void setMaximumSectionSize(int size); + + Qt::Alignment defaultAlignment() const; + void setDefaultAlignment(Qt::Alignment alignment); + + void doItemsLayout() override; + bool sectionsMoved() const; + bool sectionsHidden() const; + +#ifndef QT_NO_DATASTREAM + QByteArray saveState() const; + bool restoreState(const QByteArray &state); +#endif + + void reset() override; + +public Q_SLOTS: + void setOffset(int offset); + void setOffsetToSectionPosition(int visualIndex); + void setOffsetToLastSection(); + void headerDataChanged(Qt::Orientation orientation, int logicalFirst, int logicalLast); + +Q_SIGNALS: + void sectionMoved(int logicalIndex, int oldVisualIndex, int newVisualIndex); + void sectionResized(int logicalIndex, int oldSize, int newSize); + void sectionPressed(int logicalIndex); + void sectionClicked(int logicalIndex); + void sectionEntered(int logicalIndex); + void sectionDoubleClicked(int logicalIndex); + void sectionCountChanged(int oldCount, int newCount); + void sectionHandleDoubleClicked(int logicalIndex); + void geometriesChanged(); + void sortIndicatorChanged(int logicalIndex, Qt::SortOrder order); + void sortIndicatorClearableChanged(bool clearable); + +protected Q_SLOTS: + void updateSection(int logicalIndex); + void resizeSections(); + void sectionsInserted(const QModelIndex &parent, int logicalFirst, int logicalLast); + void sectionsAboutToBeRemoved(const QModelIndex &parent, int logicalFirst, int logicalLast); + +protected: + QHeaderView(QHeaderViewPrivate &dd, Qt::Orientation orientation, QWidget *parent = nullptr); + void initialize(); + + void initializeSections(); + void initializeSections(int start, int end); + void currentChanged(const QModelIndex ¤t, const QModelIndex &old) override; + + bool event(QEvent *e) override; + void paintEvent(QPaintEvent *e) override; + void mousePressEvent(QMouseEvent *e) override; + void mouseMoveEvent(QMouseEvent *e) override; + void mouseReleaseEvent(QMouseEvent *e) override; + void mouseDoubleClickEvent(QMouseEvent *e) override; + bool viewportEvent(QEvent *e) override; + + virtual void paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const; + virtual QSize sectionSizeFromContents(int logicalIndex) const; + + int horizontalOffset() const override; + int verticalOffset() const override; + void updateGeometries() override; + void scrollContentsBy(int dx, int dy) override; + + void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, + const QList &roles = QList()) override; + void rowsInserted(const QModelIndex &parent, int start, int end) override; + + QRect visualRect(const QModelIndex &index) const override; + void scrollTo(const QModelIndex &index, ScrollHint hint) override; + + QModelIndex indexAt(const QPoint &p) const override; + bool isIndexHidden(const QModelIndex &index) const override; + + QModelIndex moveCursor(CursorAction, Qt::KeyboardModifiers) override; + void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags flags) override; + QRegion visualRegionForSelection(const QItemSelection &selection) const override; + virtual void initStyleOptionForIndex(QStyleOptionHeader *option, int logicalIndex) const; + virtual void initStyleOption(QStyleOptionHeader *option) const; + + friend class QTableView; + friend class QTreeView; + +private: + void initStyleOption(QStyleOptionFrame *option) const override; + + Q_DECLARE_PRIVATE(QHeaderView) + Q_DISABLE_COPY(QHeaderView) +}; + +inline int QHeaderView::logicalIndexAt(int ax, int ay) const +{ return orientation() == Qt::Horizontal ? logicalIndexAt(ax) : logicalIndexAt(ay); } +inline int QHeaderView::logicalIndexAt(const QPoint &apos) const +{ return logicalIndexAt(apos.x(), apos.y()); } +inline void QHeaderView::hideSection(int alogicalIndex) +{ setSectionHidden(alogicalIndex, true); } +inline void QHeaderView::showSection(int alogicalIndex) +{ setSectionHidden(alogicalIndex, false); } + +QT_END_NAMESPACE + +#endif // QHEADERVIEW_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qinputdialog.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qinputdialog.h new file mode 100644 index 0000000000000000000000000000000000000000..b281d099b432d3a12b708844abbea78f3664b072 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qinputdialog.h @@ -0,0 +1,170 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QINPUTDIALOG_H +#define QINPUTDIALOG_H + +#include +#include +#include + +#include + +QT_REQUIRE_CONFIG(inputdialog); + +QT_BEGIN_NAMESPACE + +class QInputDialogPrivate; + +class Q_WIDGETS_EXPORT QInputDialog : public QDialog +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QInputDialog) + QDOC_PROPERTY(InputMode inputMode READ inputMode WRITE setInputMode) + QDOC_PROPERTY(QString labelText READ labelText WRITE setLabelText) + QDOC_PROPERTY(InputDialogOptions options READ options WRITE setOptions) + QDOC_PROPERTY(QString textValue READ textValue WRITE setTextValue NOTIFY textValueChanged) + QDOC_PROPERTY(int intValue READ intValue WRITE setIntValue NOTIFY intValueChanged) + QDOC_PROPERTY(int doubleValue READ doubleValue WRITE setDoubleValue NOTIFY doubleValueChanged) + QDOC_PROPERTY(QLineEdit::EchoMode textEchoMode READ textEchoMode WRITE setTextEchoMode) + QDOC_PROPERTY(bool comboBoxEditable READ isComboBoxEditable WRITE setComboBoxEditable) + QDOC_PROPERTY(QStringList comboBoxItems READ comboBoxItems WRITE setComboBoxItems) + QDOC_PROPERTY(int intMinimum READ intMinimum WRITE setIntMinimum) + QDOC_PROPERTY(int intMaximum READ intMaximum WRITE setIntMaximum) + QDOC_PROPERTY(int intStep READ intStep WRITE setIntStep) + QDOC_PROPERTY(double doubleMinimum READ doubleMinimum WRITE setDoubleMinimum) + QDOC_PROPERTY(double doubleMaximum READ doubleMaximum WRITE setDoubleMaximum) + QDOC_PROPERTY(int doubleDecimals READ doubleDecimals WRITE setDoubleDecimals) + QDOC_PROPERTY(QString okButtonText READ okButtonText WRITE setOkButtonText) + QDOC_PROPERTY(QString cancelButtonText READ cancelButtonText WRITE setCancelButtonText) + QDOC_PROPERTY(double doubleStep READ doubleStep WRITE setDoubleStep) + +public: + enum InputDialogOption { + NoButtons = 0x00000001, + UseListViewForComboBoxItems = 0x00000002, + UsePlainTextEditForTextInput = 0x00000004 + }; + + Q_DECLARE_FLAGS(InputDialogOptions, InputDialogOption) + + enum InputMode { + TextInput, + IntInput, + DoubleInput + }; + + QInputDialog(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()); + ~QInputDialog(); + + void setInputMode(InputMode mode); + InputMode inputMode() const; + + void setLabelText(const QString &text); + QString labelText() const; + + void setOption(InputDialogOption option, bool on = true); + bool testOption(InputDialogOption option) const; + void setOptions(InputDialogOptions options); + InputDialogOptions options() const; + + void setTextValue(const QString &text); + QString textValue() const; + + void setTextEchoMode(QLineEdit::EchoMode mode); + QLineEdit::EchoMode textEchoMode() const; + + void setComboBoxEditable(bool editable); + bool isComboBoxEditable() const; + + void setComboBoxItems(const QStringList &items); + QStringList comboBoxItems() const; + + void setIntValue(int value); + int intValue() const; + + void setIntMinimum(int min); + int intMinimum() const; + + void setIntMaximum(int max); + int intMaximum() const; + + void setIntRange(int min, int max); + + void setIntStep(int step); + int intStep() const; + + void setDoubleValue(double value); + double doubleValue() const; + + void setDoubleMinimum(double min); + double doubleMinimum() const; + + void setDoubleMaximum(double max); + double doubleMaximum() const; + + void setDoubleRange(double min, double max); + + void setDoubleDecimals(int decimals); + int doubleDecimals() const; + + void setOkButtonText(const QString &text); + QString okButtonText() const; + + void setCancelButtonText(const QString &text); + QString cancelButtonText() const; + + using QDialog::open; + void open(QObject *receiver, const char *member); + + QSize minimumSizeHint() const override; + QSize sizeHint() const override; + + void setVisible(bool visible) override; + + static QString getText(QWidget *parent, const QString &title, const QString &label, + QLineEdit::EchoMode echo = QLineEdit::Normal, + const QString &text = QString(), bool *ok = nullptr, + Qt::WindowFlags flags = Qt::WindowFlags(), + Qt::InputMethodHints inputMethodHints = Qt::ImhNone); + static QString getMultiLineText(QWidget *parent, const QString &title, const QString &label, + const QString &text = QString(), bool *ok = nullptr, + Qt::WindowFlags flags = Qt::WindowFlags(), + Qt::InputMethodHints inputMethodHints = Qt::ImhNone); + static QString getItem(QWidget *parent, const QString &title, const QString &label, + const QStringList &items, int current = 0, bool editable = true, + bool *ok = nullptr, Qt::WindowFlags flags = Qt::WindowFlags(), + Qt::InputMethodHints inputMethodHints = Qt::ImhNone); + + static int getInt(QWidget *parent, const QString &title, const QString &label, int value = 0, + int minValue = -2147483647, int maxValue = 2147483647, + int step = 1, bool *ok = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()); + + static double getDouble(QWidget *parent, const QString &title, const QString &label, double value = 0, + double minValue = -2147483647, double maxValue = 2147483647, + int decimals = 1, bool *ok = nullptr, Qt::WindowFlags flags = Qt::WindowFlags(), + double step = 1); + + void setDoubleStep(double step); + double doubleStep() const; + +Q_SIGNALS: + void textValueChanged(const QString &text); + void textValueSelected(const QString &text); + void intValueChanged(int value); + void intValueSelected(int value); + void doubleValueChanged(double value); + void doubleValueSelected(double value); + +public: + void done(int result) override; + +private: + Q_DISABLE_COPY(QInputDialog) +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QInputDialog::InputDialogOptions) + +QT_END_NAMESPACE + +#endif // QINPUTDIALOG_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qitemdelegate.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qitemdelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..460dd8f6e870abdadcfa6a7ff40456ec093f71ec --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qitemdelegate.h @@ -0,0 +1,95 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QITEMDELEGATE_H +#define QITEMDELEGATE_H + +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(itemviews); + +QT_BEGIN_NAMESPACE + +class QItemDelegatePrivate; +class QItemEditorFactory; + +class Q_WIDGETS_EXPORT QItemDelegate : public QAbstractItemDelegate +{ + Q_OBJECT + Q_PROPERTY(bool clipping READ hasClipping WRITE setClipping) + +public: + explicit QItemDelegate(QObject *parent = nullptr); + ~QItemDelegate(); + + bool hasClipping() const; + void setClipping(bool clip); + + // painting + void paint(QPainter *painter, + const QStyleOptionViewItem &option, + const QModelIndex &index) const override; + QSize sizeHint(const QStyleOptionViewItem &option, + const QModelIndex &index) const override; + + // editing + QWidget *createEditor(QWidget *parent, + const QStyleOptionViewItem &option, + const QModelIndex &index) const override; + + void setEditorData(QWidget *editor, const QModelIndex &index) const override; + void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override; + + void updateEditorGeometry(QWidget *editor, + const QStyleOptionViewItem &option, + const QModelIndex &index) const override; + + // editor factory + QItemEditorFactory *itemEditorFactory() const; + void setItemEditorFactory(QItemEditorFactory *factory); + +protected: + virtual void drawDisplay(QPainter *painter, const QStyleOptionViewItem &option, + const QRect &rect, const QString &text) const; + virtual void drawDecoration(QPainter *painter, const QStyleOptionViewItem &option, + const QRect &rect, const QPixmap &pixmap) const; + virtual void drawFocus(QPainter *painter, const QStyleOptionViewItem &option, + const QRect &rect) const; + virtual void drawCheck(QPainter *painter, const QStyleOptionViewItem &option, + const QRect &rect, Qt::CheckState state) const; + void drawBackground(QPainter *painter, const QStyleOptionViewItem &option, + const QModelIndex &index) const; + + void doLayout(const QStyleOptionViewItem &option, + QRect *checkRect, QRect *iconRect, QRect *textRect, bool hint) const; + + QRect rect(const QStyleOptionViewItem &option, const QModelIndex &index, int role) const; + + bool eventFilter(QObject *object, QEvent *event) override; + bool editorEvent(QEvent *event, QAbstractItemModel *model, + const QStyleOptionViewItem &option, const QModelIndex &index) override; + + QStyleOptionViewItem setOptions(const QModelIndex &index, + const QStyleOptionViewItem &option) const; + + QPixmap decoration(const QStyleOptionViewItem &option, const QVariant &variant) const; + + static QPixmap selectedPixmap(const QPixmap &pixmap, const QPalette &palette, bool enabled); + + QRect doCheck(const QStyleOptionViewItem &option, const QRect &bounding, + const QVariant &variant) const; + QRect textRectangle(QPainter *painter, const QRect &rect, + const QFont &font, const QString &text) const; + +private: + Q_DECLARE_PRIVATE(QItemDelegate) + Q_DISABLE_COPY(QItemDelegate) +}; + +QT_END_NAMESPACE + +#endif // QITEMDELEGATE_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qitemeditorfactory.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qitemeditorfactory.h new file mode 100644 index 0000000000000000000000000000000000000000..5e6ab468306880a992b5580811851cd9448edd29 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qitemeditorfactory.h @@ -0,0 +1,79 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QITEMEDITORFACTORY_H +#define QITEMEDITORFACTORY_H + +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(itemviews); + +QT_BEGIN_NAMESPACE + +class QWidget; + +class Q_WIDGETS_EXPORT QItemEditorCreatorBase +{ +public: + virtual ~QItemEditorCreatorBase(); + + virtual QWidget *createWidget(QWidget *parent) const = 0; + virtual QByteArray valuePropertyName() const = 0; +}; + +template +class QItemEditorCreator : public QItemEditorCreatorBase +{ +public: + inline explicit QItemEditorCreator(const QByteArray &valuePropertyName); + inline QWidget *createWidget(QWidget *parent) const override { return new T(parent); } + inline QByteArray valuePropertyName() const override { return propertyName; } + +private: + QByteArray propertyName; +}; + +template +class QStandardItemEditorCreator: public QItemEditorCreatorBase +{ +public: + inline QStandardItemEditorCreator() + : propertyName(T::staticMetaObject.userProperty().name()) + {} + inline QWidget *createWidget(QWidget *parent) const override { return new T(parent); } + inline QByteArray valuePropertyName() const override { return propertyName; } + +private: + QByteArray propertyName; +}; + + +template +Q_INLINE_TEMPLATE QItemEditorCreator::QItemEditorCreator(const QByteArray &avaluePropertyName) + : propertyName(avaluePropertyName) {} + +class Q_WIDGETS_EXPORT QItemEditorFactory +{ +public: + inline QItemEditorFactory() {} + virtual ~QItemEditorFactory(); + + virtual QWidget *createEditor(int userType, QWidget *parent) const; + virtual QByteArray valuePropertyName(int userType) const; + + void registerEditor(int userType, QItemEditorCreatorBase *creator); + + static const QItemEditorFactory *defaultFactory(); + static void setDefaultFactory(QItemEditorFactory *factory); + +private: + QHash creatorMap; +}; + +QT_END_NAMESPACE + +#endif // QITEMEDITORFACTORY_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qkeysequenceedit.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qkeysequenceedit.h new file mode 100644 index 0000000000000000000000000000000000000000..8789de752ed99d33fa03e5a465feb787f069a226 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qkeysequenceedit.h @@ -0,0 +1,64 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// Copyright (C) 2013 Ivan Komissarov. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QKEYSEQUENCEEDIT_H +#define QKEYSEQUENCEEDIT_H + +#include +#include + +QT_REQUIRE_CONFIG(keysequenceedit); + +QT_BEGIN_NAMESPACE + +class QKeySequenceEditPrivate; +class Q_WIDGETS_EXPORT QKeySequenceEdit : public QWidget +{ + Q_OBJECT + Q_PROPERTY(QKeySequence keySequence READ keySequence WRITE setKeySequence + NOTIFY keySequenceChanged USER true) + Q_PROPERTY(bool clearButtonEnabled READ isClearButtonEnabled WRITE setClearButtonEnabled) + Q_PROPERTY(qsizetype maximumSequenceLength READ maximumSequenceLength WRITE setMaximumSequenceLength) + Q_PROPERTY(QList finishingKeyCombinations READ finishingKeyCombinations WRITE setFinishingKeyCombinations) + +public: + explicit QKeySequenceEdit(QWidget *parent = nullptr); + explicit QKeySequenceEdit(const QKeySequence &keySequence, QWidget *parent = nullptr); + ~QKeySequenceEdit(); + + QKeySequence keySequence() const; + qsizetype maximumSequenceLength() const; + + void setClearButtonEnabled(bool enable); + bool isClearButtonEnabled() const; + + void setFinishingKeyCombinations(const QList &finishingKeyCombinations); + QList finishingKeyCombinations() const; + +public Q_SLOTS: + void setKeySequence(const QKeySequence &keySequence); + void clear(); + void setMaximumSequenceLength(qsizetype count); + +Q_SIGNALS: + void editingFinished(); + void keySequenceChanged(const QKeySequence &keySequence); + +protected: + QKeySequenceEdit(QKeySequenceEditPrivate &d, QWidget *parent, Qt::WindowFlags f); + + bool event(QEvent *) override; + void keyPressEvent(QKeyEvent *) override; + void keyReleaseEvent(QKeyEvent *) override; + void timerEvent(QTimerEvent *) override; + void focusOutEvent(QFocusEvent *) override; + +private: + Q_DISABLE_COPY(QKeySequenceEdit) + Q_DECLARE_PRIVATE(QKeySequenceEdit) +}; + +QT_END_NAMESPACE + +#endif // QKEYSEQUENCEEDIT_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qlabel.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlabel.h new file mode 100644 index 0000000000000000000000000000000000000000..707aa887e43a12b8740f4195cb2e3fcac47a4395 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlabel.h @@ -0,0 +1,140 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QLABEL_H +#define QLABEL_H + +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(label); + +QT_BEGIN_NAMESPACE + + +class QLabelPrivate; + +class Q_WIDGETS_EXPORT QLabel : public QFrame +{ + Q_OBJECT + Q_PROPERTY(QString text READ text WRITE setText) + Q_PROPERTY(Qt::TextFormat textFormat READ textFormat WRITE setTextFormat) + Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap) + Q_PROPERTY(bool scaledContents READ hasScaledContents WRITE setScaledContents) + Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment) + Q_PROPERTY(bool wordWrap READ wordWrap WRITE setWordWrap) + Q_PROPERTY(int margin READ margin WRITE setMargin) + Q_PROPERTY(int indent READ indent WRITE setIndent) + Q_PROPERTY(bool openExternalLinks READ openExternalLinks WRITE setOpenExternalLinks) + Q_PROPERTY(Qt::TextInteractionFlags textInteractionFlags READ textInteractionFlags + WRITE setTextInteractionFlags) + Q_PROPERTY(bool hasSelectedText READ hasSelectedText) + Q_PROPERTY(QString selectedText READ selectedText) + +public: + explicit QLabel(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()); + explicit QLabel(const QString &text, QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()); + ~QLabel(); + + QString text() const; + +#if QT_DEPRECATED_SINCE(6,6) + QPixmap pixmap(Qt::ReturnByValueConstant) const { return pixmap(); } +#endif + QPixmap pixmap() const; + +#ifndef QT_NO_PICTURE +#if QT_DEPRECATED_SINCE(6,6) + QPicture picture(Qt::ReturnByValueConstant) const { return picture(); } +#endif + QPicture picture() const; +#endif +#if QT_CONFIG(movie) + QMovie *movie() const; +#endif + + Qt::TextFormat textFormat() const; + void setTextFormat(Qt::TextFormat); + + QTextDocument::ResourceProvider resourceProvider() const; + void setResourceProvider(const QTextDocument::ResourceProvider &provider); + + Qt::Alignment alignment() const; + void setAlignment(Qt::Alignment); + + void setWordWrap(bool on); + bool wordWrap() const; + + int indent() const; + void setIndent(int); + + int margin() const; + void setMargin(int); + + bool hasScaledContents() const; + void setScaledContents(bool); + QSize sizeHint() const override; + QSize minimumSizeHint() const override; +#ifndef QT_NO_SHORTCUT + void setBuddy(QWidget *); + QWidget *buddy() const; +#endif + int heightForWidth(int) const override; + + bool openExternalLinks() const; + void setOpenExternalLinks(bool open); + + void setTextInteractionFlags(Qt::TextInteractionFlags flags); + Qt::TextInteractionFlags textInteractionFlags() const; + + void setSelection(int, int); + bool hasSelectedText() const; + QString selectedText() const; + int selectionStart() const; + +public Q_SLOTS: + void setText(const QString &); + void setPixmap(const QPixmap &); +#ifndef QT_NO_PICTURE + void setPicture(const QPicture &); +#endif +#if QT_CONFIG(movie) + void setMovie(QMovie *movie); +#endif + void setNum(int); + void setNum(double); + void clear(); + +Q_SIGNALS: + void linkActivated(const QString& link); + void linkHovered(const QString& link); + +protected: + bool event(QEvent *e) override; + void keyPressEvent(QKeyEvent *ev) override; + void paintEvent(QPaintEvent *) override; + void changeEvent(QEvent *) override; + void mousePressEvent(QMouseEvent *ev) override; + void mouseMoveEvent(QMouseEvent *ev) override; + void mouseReleaseEvent(QMouseEvent *ev) override; +#ifndef QT_NO_CONTEXTMENU + void contextMenuEvent(QContextMenuEvent *ev) override; +#endif // QT_NO_CONTEXTMENU + void focusInEvent(QFocusEvent *ev) override; + void focusOutEvent(QFocusEvent *ev) override; + bool focusNextPrevChild(bool next) override; + + +private: + Q_DISABLE_COPY(QLabel) + Q_DECLARE_PRIVATE(QLabel) + friend class QTipLabel; + friend class QMessageBoxPrivate; + friend class QBalloonTip; +}; + +QT_END_NAMESPACE + +#endif // QLABEL_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qlayout.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlayout.h new file mode 100644 index 0000000000000000000000000000000000000000..11248b39a55b96f6f59fa4373059a316a6558179 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlayout.h @@ -0,0 +1,135 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QLAYOUT_H +#define QLAYOUT_H + +#include +#include +#include +#include +#include +#include + +#include + +QT_BEGIN_NAMESPACE + + +class QLayout; +class QSize; + + +class QLayoutPrivate; + +class Q_WIDGETS_EXPORT QLayout : public QObject, public QLayoutItem +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QLayout) + + Q_PROPERTY(int spacing READ spacing WRITE setSpacing) + Q_PROPERTY(QMargins contentsMargins READ contentsMargins WRITE setContentsMargins + RESET unsetContentsMargins) + Q_PROPERTY(SizeConstraint sizeConstraint READ sizeConstraint WRITE setSizeConstraint) +public: + enum SizeConstraint { + SetDefaultConstraint, + SetNoConstraint, + SetMinimumSize, + SetFixedSize, + SetMaximumSize, + SetMinAndMaxSize + }; + Q_ENUM(SizeConstraint) + + explicit QLayout(QWidget *parent = nullptr); + ~QLayout(); + + virtual int spacing() const; + virtual void setSpacing(int); + + void setContentsMargins(int left, int top, int right, int bottom); + void setContentsMargins(const QMargins &margins); + void unsetContentsMargins(); + void getContentsMargins(int *left, int *top, int *right, int *bottom) const; + QMargins contentsMargins() const; + QRect contentsRect() const; + + bool setAlignment(QWidget *w, Qt::Alignment alignment); + bool setAlignment(QLayout *l, Qt::Alignment alignment); + using QLayoutItem::setAlignment; + + void setSizeConstraint(SizeConstraint); + SizeConstraint sizeConstraint() const; + void setMenuBar(QWidget *w); + QWidget *menuBar() const; + + QWidget *parentWidget() const; + + void invalidate() override; + QRect geometry() const override; + bool activate(); + void update(); + + void addWidget(QWidget *w); + virtual void addItem(QLayoutItem *) = 0; + + void removeWidget(QWidget *w); + void removeItem(QLayoutItem *); + + Qt::Orientations expandingDirections() const override; + QSize minimumSize() const override; + QSize maximumSize() const override; + virtual void setGeometry(const QRect&) override; + virtual QLayoutItem *itemAt(int index) const = 0; + virtual QLayoutItem *takeAt(int index) = 0; + virtual int indexOf(const QWidget *) const; + virtual int indexOf(const QLayoutItem *) const; + virtual int count() const = 0; + bool isEmpty() const override; + QSizePolicy::ControlTypes controlTypes() const override; + + virtual QLayoutItem *replaceWidget(QWidget *from, QWidget *to, + Qt::FindChildOptions options = Qt::FindChildrenRecursively); + + int totalMinimumHeightForWidth(int w) const; + int totalHeightForWidth(int w) const; + QSize totalMinimumSize() const; + QSize totalMaximumSize() const; + QSize totalSizeHint() const; + QLayout *layout() override; + + void setEnabled(bool); + bool isEnabled() const; + + + static QSize closestAcceptableSize(const QWidget *w, const QSize &s); + +protected: + void widgetEvent(QEvent *); + void childEvent(QChildEvent *e) override; + void addChildLayout(QLayout *l); + void addChildWidget(QWidget *w); + bool adoptLayout(QLayout *layout); + + QRect alignmentRect(const QRect&) const; +protected: + QLayout(QLayoutPrivate &d, QLayout*, QWidget*); + +private: + Q_DISABLE_COPY(QLayout) + + static void activateRecursiveHelper(QLayoutItem *item); + + friend class QApplicationPrivate; + friend class QWidget; + +}; + +QT_END_NAMESPACE + +//### support old includes +#include +#include + +#endif // QLAYOUT_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qlayoutitem.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlayoutitem.h new file mode 100644 index 0000000000000000000000000000000000000000..86138324402ebafb8cc9f46a8933230a55a2b6fd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlayoutitem.h @@ -0,0 +1,146 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QLAYOUTITEM_H +#define QLAYOUTITEM_H + +#include +#include +#include + +#include + +QT_BEGIN_NAMESPACE + + +inline constexpr int QLAYOUTSIZE_MAX = INT_MAX/256/16; + +class QLayout; +class QLayoutItem; +class QSpacerItem; +class QWidget; +class QSize; + +class Q_WIDGETS_EXPORT QLayoutItem +{ +public: + inline explicit QLayoutItem(Qt::Alignment alignment = Qt::Alignment()); + virtual ~QLayoutItem(); + virtual QSize sizeHint() const = 0; + virtual QSize minimumSize() const = 0; + virtual QSize maximumSize() const = 0; + virtual Qt::Orientations expandingDirections() const = 0; + virtual void setGeometry(const QRect&) = 0; + virtual QRect geometry() const = 0; + virtual bool isEmpty() const = 0; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int) const; + virtual int minimumHeightForWidth(int) const; + virtual void invalidate(); + + virtual QWidget *widget() const; + virtual QLayout *layout(); + virtual QSpacerItem *spacerItem(); + + Qt::Alignment alignment() const { return align; } + void setAlignment(Qt::Alignment a); + virtual QSizePolicy::ControlTypes controlTypes() const; + +protected: + Qt::Alignment align; +}; + +inline QLayoutItem::QLayoutItem(Qt::Alignment aalignment) + : align(aalignment) { } + +class Q_WIDGETS_EXPORT QSpacerItem : public QLayoutItem +{ +public: + QSpacerItem(int w, int h, + QSizePolicy::Policy hData = QSizePolicy::Minimum, + QSizePolicy::Policy vData = QSizePolicy::Minimum) + : width(w), height(h), sizeP(hData, vData) { } + ~QSpacerItem(); + + void changeSize(int w, int h, + QSizePolicy::Policy hData = QSizePolicy::Minimum, + QSizePolicy::Policy vData = QSizePolicy::Minimum); + QSize sizeHint() const override; + QSize minimumSize() const override; + QSize maximumSize() const override; + Qt::Orientations expandingDirections() const override; + bool isEmpty() const override; + void setGeometry(const QRect&) override; + QRect geometry() const override; + QSpacerItem *spacerItem() override; + QSizePolicy sizePolicy() const { return sizeP; } + +private: + int width; + int height; + QSizePolicy sizeP; + QRect rect; +}; + +class Q_WIDGETS_EXPORT QWidgetItem : public QLayoutItem +{ + Q_DISABLE_COPY(QWidgetItem) + +public: + explicit QWidgetItem(QWidget *w) : wid(w) { } + ~QWidgetItem(); + + QSize sizeHint() const override; + QSize minimumSize() const override; + QSize maximumSize() const override; + Qt::Orientations expandingDirections() const override; + bool isEmpty() const override; + void setGeometry(const QRect&) override; + QRect geometry() const override; + QWidget *widget() const override; + + bool hasHeightForWidth() const override; + int heightForWidth(int) const override; + int minimumHeightForWidth(int) const override; + QSizePolicy::ControlTypes controlTypes() const override; +protected: + QWidget *wid; +}; + +class Q_WIDGETS_EXPORT QWidgetItemV2 : public QWidgetItem +{ +public: + explicit QWidgetItemV2(QWidget *widget); + ~QWidgetItemV2(); + + QSize sizeHint() const override; + QSize minimumSize() const override; + QSize maximumSize() const override; + int heightForWidth(int width) const override; + +private: + enum { Dirty = -123, HfwCacheMaxSize = 3 }; + + inline bool useSizeCache() const; + void updateCacheIfNecessary() const; + inline void invalidateSizeCache() { + q_cachedMinimumSize.setWidth(Dirty); + q_hfwCacheSize = 0; + } + + mutable QSize q_cachedMinimumSize; + mutable QSize q_cachedSizeHint; + mutable QSize q_cachedMaximumSize; + mutable QSize q_cachedHfws[HfwCacheMaxSize]; + mutable short q_firstCachedHfw; + mutable short q_hfwCacheSize; + void *d; + + friend class QWidgetPrivate; + + Q_DISABLE_COPY(QWidgetItemV2) +}; + +QT_END_NAMESPACE + +#endif // QLAYOUTITEM_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qlcdnumber.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlcdnumber.h new file mode 100644 index 0000000000000000000000000000000000000000..94065baadd6fd23401948d7c1fa21c9e25167e52 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlcdnumber.h @@ -0,0 +1,83 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QLCDNUMBER_H +#define QLCDNUMBER_H + +#include +#include + +QT_BEGIN_NAMESPACE + +QT_REQUIRE_CONFIG(lcdnumber); + +class QLCDNumberPrivate; +class Q_WIDGETS_EXPORT QLCDNumber : public QFrame // LCD number widget +{ + Q_OBJECT + Q_PROPERTY(bool smallDecimalPoint READ smallDecimalPoint WRITE setSmallDecimalPoint) + Q_PROPERTY(int digitCount READ digitCount WRITE setDigitCount) + Q_PROPERTY(Mode mode READ mode WRITE setMode) + Q_PROPERTY(SegmentStyle segmentStyle READ segmentStyle WRITE setSegmentStyle) + Q_PROPERTY(double value READ value WRITE display) + Q_PROPERTY(int intValue READ intValue WRITE display) + +public: + explicit QLCDNumber(QWidget* parent = nullptr); + explicit QLCDNumber(uint numDigits, QWidget* parent = nullptr); + ~QLCDNumber(); + + enum Mode { + Hex, Dec, Oct, Bin + }; + Q_ENUM(Mode) + enum SegmentStyle { + Outline, Filled, Flat + }; + Q_ENUM(SegmentStyle) + + bool smallDecimalPoint() const; + int digitCount() const; + void setDigitCount(int nDigits); + + bool checkOverflow(double num) const; + bool checkOverflow(int num) const; + + Mode mode() const; + void setMode(Mode); + + SegmentStyle segmentStyle() const; + void setSegmentStyle(SegmentStyle); + + double value() const; + int intValue() const; + + QSize sizeHint() const override; + +public Q_SLOTS: + void display(const QString &str); + void display(int num); + void display(double num); + void setHexMode(); + void setDecMode(); + void setOctMode(); + void setBinMode(); + void setSmallDecimalPoint(bool); + +Q_SIGNALS: + void overflow(); + +protected: + bool event(QEvent *e) override; + void paintEvent(QPaintEvent *) override; + +public: + +private: + Q_DISABLE_COPY(QLCDNumber) + Q_DECLARE_PRIVATE(QLCDNumber) +}; + +QT_END_NAMESPACE + +#endif // QLCDNUMBER_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qlineedit.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlineedit.h new file mode 100644 index 0000000000000000000000000000000000000000..5ae2d3340f61cd516499e4b420e9422c00ad3c1e --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlineedit.h @@ -0,0 +1,221 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QLINEEDIT_H +#define QLINEEDIT_H + +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(lineedit); + +QT_BEGIN_NAMESPACE + +class QValidator; +class QMenu; +class QLineEditPrivate; +class QCompleter; +class QStyleOptionFrame; +class QAbstractSpinBox; +class QDateTimeEdit; +class QIcon; +class QToolButton; + +class Q_WIDGETS_EXPORT QLineEdit : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(QString inputMask READ inputMask WRITE setInputMask) + Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged USER true) + Q_PROPERTY(int maxLength READ maxLength WRITE setMaxLength) + Q_PROPERTY(bool frame READ hasFrame WRITE setFrame) + Q_PROPERTY(EchoMode echoMode READ echoMode WRITE setEchoMode) + Q_PROPERTY(QString displayText READ displayText) + Q_PROPERTY(int cursorPosition READ cursorPosition WRITE setCursorPosition) + Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment) + Q_PROPERTY(bool modified READ isModified WRITE setModified DESIGNABLE false) + Q_PROPERTY(bool hasSelectedText READ hasSelectedText) + Q_PROPERTY(QString selectedText READ selectedText) + Q_PROPERTY(bool dragEnabled READ dragEnabled WRITE setDragEnabled) + Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly) + Q_PROPERTY(bool undoAvailable READ isUndoAvailable) + Q_PROPERTY(bool redoAvailable READ isRedoAvailable) + Q_PROPERTY(bool acceptableInput READ hasAcceptableInput) + Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText) + Q_PROPERTY(Qt::CursorMoveStyle cursorMoveStyle READ cursorMoveStyle WRITE setCursorMoveStyle) + Q_PROPERTY(bool clearButtonEnabled READ isClearButtonEnabled WRITE setClearButtonEnabled) +public: + enum ActionPosition { + LeadingPosition, + TrailingPosition + }; + Q_ENUM(ActionPosition) + + explicit QLineEdit(QWidget *parent = nullptr); + explicit QLineEdit(const QString &, QWidget *parent = nullptr); + ~QLineEdit(); + + QString text() const; + + QString displayText() const; + + QString placeholderText() const; + void setPlaceholderText(const QString &); + + int maxLength() const; + void setMaxLength(int); + + void setFrame(bool); + bool hasFrame() const; + + void setClearButtonEnabled(bool enable); + bool isClearButtonEnabled() const; + + enum EchoMode { Normal, NoEcho, Password, PasswordEchoOnEdit }; + Q_ENUM(EchoMode) + EchoMode echoMode() const; + void setEchoMode(EchoMode); + + bool isReadOnly() const; + void setReadOnly(bool); + +#ifndef QT_NO_VALIDATOR + void setValidator(const QValidator *); + const QValidator * validator() const; +#endif + +#if QT_CONFIG(completer) + void setCompleter(QCompleter *completer); + QCompleter *completer() const; +#endif + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + int cursorPosition() const; + void setCursorPosition(int); + int cursorPositionAt(const QPoint &pos); + + void setAlignment(Qt::Alignment flag); + Qt::Alignment alignment() const; + + void cursorForward(bool mark, int steps = 1); + void cursorBackward(bool mark, int steps = 1); + void cursorWordForward(bool mark); + void cursorWordBackward(bool mark); + void backspace(); + void del(); + void home(bool mark); + void end(bool mark); + + bool isModified() const; + void setModified(bool); + + void setSelection(int, int); + bool hasSelectedText() const; + QString selectedText() const; + int selectionStart() const; + int selectionEnd() const; + int selectionLength() const; + + bool isUndoAvailable() const; + bool isRedoAvailable() const; + + void setDragEnabled(bool b); + bool dragEnabled() const; + + void setCursorMoveStyle(Qt::CursorMoveStyle style); + Qt::CursorMoveStyle cursorMoveStyle() const; + + QString inputMask() const; + void setInputMask(const QString &inputMask); + bool hasAcceptableInput() const; + + void setTextMargins(int left, int top, int right, int bottom); + void setTextMargins(const QMargins &margins); + QMargins textMargins() const; + +#if QT_CONFIG(action) + using QWidget::addAction; + void addAction(QAction *action, ActionPosition position); + QAction *addAction(const QIcon &icon, ActionPosition position); +#endif + +public Q_SLOTS: + void setText(const QString &); + void clear(); + void selectAll(); + void undo(); + void redo(); +#ifndef QT_NO_CLIPBOARD + void cut(); + void copy() const; + void paste(); +#endif + +public: + void deselect(); + void insert(const QString &); +#ifndef QT_NO_CONTEXTMENU + QMenu *createStandardContextMenu(); +#endif + +Q_SIGNALS: + void textChanged(const QString &); + void textEdited(const QString &); + void cursorPositionChanged(int, int); + void returnPressed(); + void editingFinished(); + void selectionChanged(); + void inputRejected(); + +protected: + void mousePressEvent(QMouseEvent *) override; + void mouseMoveEvent(QMouseEvent *) override; + void mouseReleaseEvent(QMouseEvent *) override; + void mouseDoubleClickEvent(QMouseEvent *) override; + void keyPressEvent(QKeyEvent *) override; + void keyReleaseEvent(QKeyEvent *) override; + void focusInEvent(QFocusEvent *) override; + void focusOutEvent(QFocusEvent *) override; + void paintEvent(QPaintEvent *) override; +#if QT_CONFIG(draganddrop) + void dragEnterEvent(QDragEnterEvent *) override; + void dragMoveEvent(QDragMoveEvent *e) override; + void dragLeaveEvent(QDragLeaveEvent *e) override; + void dropEvent(QDropEvent *) override; +#endif + void changeEvent(QEvent *) override; +#ifndef QT_NO_CONTEXTMENU + void contextMenuEvent(QContextMenuEvent *) override; +#endif + + void inputMethodEvent(QInputMethodEvent *) override; + virtual void initStyleOption(QStyleOptionFrame *option) const; +public: + QVariant inputMethodQuery(Qt::InputMethodQuery) const override; + Q_INVOKABLE QVariant inputMethodQuery(Qt::InputMethodQuery property, QVariant argument) const; + void timerEvent(QTimerEvent *) override; + bool event(QEvent *) override; +protected: + QRect cursorRect() const; + +public: + +private: + friend class QAbstractSpinBox; + friend class QAccessibleLineEdit; + friend class QComboBox; +#ifdef QT_KEYPAD_NAVIGATION + friend class QDateTimeEdit; +#endif + Q_DISABLE_COPY(QLineEdit) + Q_DECLARE_PRIVATE(QLineEdit) +}; + +QT_END_NAMESPACE + +#endif // QLINEEDIT_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qlistview.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlistview.h new file mode 100644 index 0000000000000000000000000000000000000000..e7b3ae75b0419ef2efcc7b6b5e61d460804f6e79 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlistview.h @@ -0,0 +1,169 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QLISTVIEW_H +#define QLISTVIEW_H + +#include +#include + +QT_REQUIRE_CONFIG(listview); + +QT_BEGIN_NAMESPACE + +class QListViewPrivate; + +class Q_WIDGETS_EXPORT QListView : public QAbstractItemView +{ + Q_OBJECT + Q_PROPERTY(Movement movement READ movement WRITE setMovement) + Q_PROPERTY(Flow flow READ flow WRITE setFlow) + Q_PROPERTY(bool isWrapping READ isWrapping WRITE setWrapping) + Q_PROPERTY(ResizeMode resizeMode READ resizeMode WRITE setResizeMode) + Q_PROPERTY(LayoutMode layoutMode READ layoutMode WRITE setLayoutMode) + Q_PROPERTY(int spacing READ spacing WRITE setSpacing) + Q_PROPERTY(QSize gridSize READ gridSize WRITE setGridSize) + Q_PROPERTY(ViewMode viewMode READ viewMode WRITE setViewMode) + Q_PROPERTY(int modelColumn READ modelColumn WRITE setModelColumn) + Q_PROPERTY(bool uniformItemSizes READ uniformItemSizes WRITE setUniformItemSizes) + Q_PROPERTY(int batchSize READ batchSize WRITE setBatchSize) + Q_PROPERTY(bool wordWrap READ wordWrap WRITE setWordWrap) + Q_PROPERTY(bool selectionRectVisible READ isSelectionRectVisible WRITE setSelectionRectVisible) + Q_PROPERTY(Qt::Alignment itemAlignment READ itemAlignment WRITE setItemAlignment) + +public: + enum Movement { Static, Free, Snap }; + Q_ENUM(Movement) + enum Flow { LeftToRight, TopToBottom }; + Q_ENUM(Flow) + enum ResizeMode { Fixed, Adjust }; + Q_ENUM(ResizeMode) + enum LayoutMode { SinglePass, Batched }; + Q_ENUM(LayoutMode) + enum ViewMode { ListMode, IconMode }; + Q_ENUM(ViewMode) + + explicit QListView(QWidget *parent = nullptr); + ~QListView(); + + void setMovement(Movement movement); + Movement movement() const; + + void setFlow(Flow flow); + Flow flow() const; + + void setWrapping(bool enable); + bool isWrapping() const; + + void setResizeMode(ResizeMode mode); + ResizeMode resizeMode() const; + + void setLayoutMode(LayoutMode mode); + LayoutMode layoutMode() const; + + void setSpacing(int space); + int spacing() const; + + void setBatchSize(int batchSize); + int batchSize() const; + + void setGridSize(const QSize &size); + QSize gridSize() const; + + void setViewMode(ViewMode mode); + ViewMode viewMode() const; + + void clearPropertyFlags(); + + bool isRowHidden(int row) const; + void setRowHidden(int row, bool hide); + + void setModelColumn(int column); + int modelColumn() const; + + void setUniformItemSizes(bool enable); + bool uniformItemSizes() const; + + void setWordWrap(bool on); + bool wordWrap() const; + + void setSelectionRectVisible(bool show); + bool isSelectionRectVisible() const; + + void setItemAlignment(Qt::Alignment alignment); + Qt::Alignment itemAlignment() const; + + QRect visualRect(const QModelIndex &index) const override; + void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible) override; + QModelIndex indexAt(const QPoint &p) const override; + + void doItemsLayout() override; + void reset() override; + void setRootIndex(const QModelIndex &index) override; + +Q_SIGNALS: + void indexesMoved(const QModelIndexList &indexes); + +protected: + QListView(QListViewPrivate &, QWidget *parent = nullptr); + + bool event(QEvent *e) override; + + void scrollContentsBy(int dx, int dy) override; + + void resizeContents(int width, int height); + QSize contentsSize() const; + + void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, + const QList &roles = QList()) override; + void rowsInserted(const QModelIndex &parent, int start, int end) override; + void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) override; + + void mouseMoveEvent(QMouseEvent *e) override; + void mouseReleaseEvent(QMouseEvent *e) override; +#if QT_CONFIG(wheelevent) + void wheelEvent(QWheelEvent *e) override; +#endif + + void timerEvent(QTimerEvent *e) override; + void resizeEvent(QResizeEvent *e) override; +#if QT_CONFIG(draganddrop) + void dragMoveEvent(QDragMoveEvent *e) override; + void dragLeaveEvent(QDragLeaveEvent *e) override; + void dropEvent(QDropEvent *e) override; + void startDrag(Qt::DropActions supportedActions) override; +#endif // QT_CONFIG(draganddrop) + + void initViewItemOption(QStyleOptionViewItem *option) const override; + void paintEvent(QPaintEvent *e) override; + + int horizontalOffset() const override; + int verticalOffset() const override; + QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override; + QRect rectForIndex(const QModelIndex &index) const; + void setPositionForIndex(const QPoint &position, const QModelIndex &index); + + void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command) override; + QRegion visualRegionForSelection(const QItemSelection &selection) const override; + QModelIndexList selectedIndexes() const override; + + void updateGeometries() override; + + bool isIndexHidden(const QModelIndex &index) const override; + + void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) override; + void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override; + + QSize viewportSizeHint() const override; + +private: + int visualIndex(const QModelIndex &index) const; + friend class QCommonListViewBase; + + Q_DECLARE_PRIVATE(QListView) + Q_DISABLE_COPY(QListView) +}; + +QT_END_NAMESPACE + +#endif // QLISTVIEW_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qlistwidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlistwidget.h new file mode 100644 index 0000000000000000000000000000000000000000..1b3111ff2573061c612c3c7d1b88a2277452eeb1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qlistwidget.h @@ -0,0 +1,280 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QLISTWIDGET_H +#define QLISTWIDGET_H + +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(listwidget); + +QT_BEGIN_NAMESPACE + +class QListWidget; +class QListModel; +class QWidgetItemData; +class QListWidgetItemPrivate; + +class Q_WIDGETS_EXPORT QListWidgetItem +{ + friend class QListModel; + friend class QListWidget; +public: + enum ItemType { Type = 0, UserType = 1000 }; + explicit QListWidgetItem(QListWidget *listview = nullptr, int type = Type); + explicit QListWidgetItem(const QString &text, QListWidget *listview = nullptr, int type = Type); + explicit QListWidgetItem(const QIcon &icon, const QString &text, + QListWidget *listview = nullptr, int type = Type); + QListWidgetItem(const QListWidgetItem &other); + virtual ~QListWidgetItem(); + + virtual QListWidgetItem *clone() const; + + inline QListWidget *listWidget() const { return view; } + + void setSelected(bool select); + bool isSelected() const; + + inline void setHidden(bool hide); + inline bool isHidden() const; + + inline Qt::ItemFlags flags() const { return itemFlags; } + void setFlags(Qt::ItemFlags flags); + + inline QString text() const + { return data(Qt::DisplayRole).toString(); } + inline void setText(const QString &text); + + inline QIcon icon() const + { return qvariant_cast(data(Qt::DecorationRole)); } + inline void setIcon(const QIcon &icon); + + inline QString statusTip() const + { return data(Qt::StatusTipRole).toString(); } + inline void setStatusTip(const QString &statusTip); + +#if QT_CONFIG(tooltip) + inline QString toolTip() const + { return data(Qt::ToolTipRole).toString(); } + inline void setToolTip(const QString &toolTip); +#endif + +#if QT_CONFIG(whatsthis) + inline QString whatsThis() const + { return data(Qt::WhatsThisRole).toString(); } + inline void setWhatsThis(const QString &whatsThis); +#endif + + inline QFont font() const + { return qvariant_cast(data(Qt::FontRole)); } + inline void setFont(const QFont &font); + +#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) + inline int textAlignment() const + { return data(Qt::TextAlignmentRole).toInt(); } +#else + inline Qt::Alignment textAlignment() const + { return qvariant_cast(data(Qt::TextAlignmentRole)); } +#endif +#if QT_DEPRECATED_SINCE(6, 4) + QT_DEPRECATED_VERSION_X_6_4("Use the overload taking Qt::Alignment") + inline void setTextAlignment(int alignment) + { setData(Qt::TextAlignmentRole, alignment); } + inline void setTextAlignment(Qt::AlignmentFlag alignment) + { setData(Qt::TextAlignmentRole, QVariant::fromValue(Qt::Alignment(alignment))); } +#endif + inline void setTextAlignment(Qt::Alignment alignment) + { setData(Qt::TextAlignmentRole, QVariant::fromValue(alignment)); } + + inline QBrush background() const + { return qvariant_cast(data(Qt::BackgroundRole)); } + inline void setBackground(const QBrush &brush) + { setData(Qt::BackgroundRole, brush.style() != Qt::NoBrush ? QVariant(brush) : QVariant()); } + + inline QBrush foreground() const + { return qvariant_cast(data(Qt::ForegroundRole)); } + inline void setForeground(const QBrush &brush) + { setData(Qt::ForegroundRole, brush.style() != Qt::NoBrush ? QVariant(brush) : QVariant()); } + + inline Qt::CheckState checkState() const + { return qvariant_cast(data(Qt::CheckStateRole)); } + inline void setCheckState(Qt::CheckState state) + { setData(Qt::CheckStateRole, static_cast(state)); } + + inline QSize sizeHint() const + { return qvariant_cast(data(Qt::SizeHintRole)); } + inline void setSizeHint(const QSize &size) + { setData(Qt::SizeHintRole, size.isValid() ? QVariant(size) : QVariant()); } + + virtual QVariant data(int role) const; + virtual void setData(int role, const QVariant &value); + + virtual bool operator<(const QListWidgetItem &other) const; + +#ifndef QT_NO_DATASTREAM + virtual void read(QDataStream &in); + virtual void write(QDataStream &out) const; +#endif + QListWidgetItem &operator=(const QListWidgetItem &other); + + inline int type() const { return rtti; } + +private: + QListModel *listModel() const; + int rtti; + QListWidget *view; + QListWidgetItemPrivate *d; + Qt::ItemFlags itemFlags; +}; + +inline void QListWidgetItem::setText(const QString &atext) +{ setData(Qt::DisplayRole, atext); } + +inline void QListWidgetItem::setIcon(const QIcon &aicon) +{ setData(Qt::DecorationRole, aicon); } + +inline void QListWidgetItem::setStatusTip(const QString &astatusTip) +{ setData(Qt::StatusTipRole, astatusTip); } + +#if QT_CONFIG(tooltip) +inline void QListWidgetItem::setToolTip(const QString &atoolTip) +{ setData(Qt::ToolTipRole, atoolTip); } +#endif + +#if QT_CONFIG(whatsthis) +inline void QListWidgetItem::setWhatsThis(const QString &awhatsThis) +{ setData(Qt::WhatsThisRole, awhatsThis); } +#endif + +inline void QListWidgetItem::setFont(const QFont &afont) +{ setData(Qt::FontRole, afont); } + +#ifndef QT_NO_DATASTREAM +Q_WIDGETS_EXPORT QDataStream &operator<<(QDataStream &out, const QListWidgetItem &item); +Q_WIDGETS_EXPORT QDataStream &operator>>(QDataStream &in, QListWidgetItem &item); +#endif + +class QListWidgetPrivate; + +class Q_WIDGETS_EXPORT QListWidget : public QListView +{ + Q_OBJECT + Q_PROPERTY(int count READ count) + Q_PROPERTY(int currentRow READ currentRow WRITE setCurrentRow NOTIFY currentRowChanged + USER true) + Q_PROPERTY(bool sortingEnabled READ isSortingEnabled WRITE setSortingEnabled) + + friend class QListWidgetItem; + friend class QListModel; +public: + explicit QListWidget(QWidget *parent = nullptr); + ~QListWidget(); + + void setSelectionModel(QItemSelectionModel *selectionModel) override; + + QListWidgetItem *item(int row) const; + int row(const QListWidgetItem *item) const; + void insertItem(int row, QListWidgetItem *item); + void insertItem(int row, const QString &label); + void insertItems(int row, const QStringList &labels); + inline void addItem(const QString &label) { insertItem(count(), label); } + inline void addItem(QListWidgetItem *item); + inline void addItems(const QStringList &labels) { insertItems(count(), labels); } + QListWidgetItem *takeItem(int row); + int count() const; + + QListWidgetItem *currentItem() const; + void setCurrentItem(QListWidgetItem *item); + void setCurrentItem(QListWidgetItem *item, QItemSelectionModel::SelectionFlags command); + + int currentRow() const; + void setCurrentRow(int row); + void setCurrentRow(int row, QItemSelectionModel::SelectionFlags command); + + QListWidgetItem *itemAt(const QPoint &p) const; + inline QListWidgetItem *itemAt(int x, int y) const; + QRect visualItemRect(const QListWidgetItem *item) const; + + void sortItems(Qt::SortOrder order = Qt::AscendingOrder); + void setSortingEnabled(bool enable); + bool isSortingEnabled() const; + + void editItem(QListWidgetItem *item); + void openPersistentEditor(QListWidgetItem *item); + void closePersistentEditor(QListWidgetItem *item); + using QAbstractItemView::isPersistentEditorOpen; + bool isPersistentEditorOpen(QListWidgetItem *item) const; + + QWidget *itemWidget(QListWidgetItem *item) const; + void setItemWidget(QListWidgetItem *item, QWidget *widget); + inline void removeItemWidget(QListWidgetItem *item); + + QList selectedItems() const; + QList findItems(const QString &text, Qt::MatchFlags flags) const; + + QList items(const QMimeData *data) const; + + QModelIndex indexFromItem(const QListWidgetItem *item) const; + QListWidgetItem *itemFromIndex(const QModelIndex &index) const; + +protected: +#if QT_CONFIG(draganddrop) + void dropEvent(QDropEvent *event) override; +#endif +public Q_SLOTS: + void scrollToItem(const QListWidgetItem *item, QAbstractItemView::ScrollHint hint = EnsureVisible); + void clear(); + +Q_SIGNALS: + void itemPressed(QListWidgetItem *item); + void itemClicked(QListWidgetItem *item); + void itemDoubleClicked(QListWidgetItem *item); + void itemActivated(QListWidgetItem *item); + void itemEntered(QListWidgetItem *item); + void itemChanged(QListWidgetItem *item); + + void currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous); + void currentTextChanged(const QString ¤tText); + void currentRowChanged(int currentRow); + + void itemSelectionChanged(); + +protected: + bool event(QEvent *e) override; + virtual QStringList mimeTypes() const; + virtual QMimeData *mimeData(const QList &items) const; +#if QT_CONFIG(draganddrop) + virtual bool dropMimeData(int index, const QMimeData *data, Qt::DropAction action); + virtual Qt::DropActions supportedDropActions() const; +#endif + +private: + void setModel(QAbstractItemModel *model) override; + Qt::SortOrder sortOrder() const; + + Q_DECLARE_PRIVATE(QListWidget) + Q_DISABLE_COPY(QListWidget) +}; + +inline void QListWidget::removeItemWidget(QListWidgetItem *aItem) +{ setItemWidget(aItem, nullptr); } + +inline void QListWidget::addItem(QListWidgetItem *aitem) +{ insertItem(count(), aitem); } + +inline QListWidgetItem *QListWidget::itemAt(int ax, int ay) const +{ return itemAt(QPoint(ax, ay)); } + +inline void QListWidgetItem::setHidden(bool ahide) +{ if (view) view->setRowHidden(view->row(this), ahide); } + +inline bool QListWidgetItem::isHidden() const +{ return (view ? view->isRowHidden(view->row(this)) : false); } + +QT_END_NAMESPACE + +#endif // QLISTWIDGET_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qmainwindow.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmainwindow.h new file mode 100644 index 0000000000000000000000000000000000000000..65f3e31c1a8821eb08cdb7a30a57e8bb9d5ece61 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmainwindow.h @@ -0,0 +1,188 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QDYNAMICMAINWINDOW_H +#define QDYNAMICMAINWINDOW_H + +#include +#include +#if QT_CONFIG(tabwidget) +#include +#endif + +QT_REQUIRE_CONFIG(mainwindow); + +QT_BEGIN_NAMESPACE + +class QDockWidget; +class QMainWindowPrivate; +class QMenuBar; +class QStatusBar; +class QToolBar; +class QMenu; + +class Q_WIDGETS_EXPORT QMainWindow : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize) + Q_PROPERTY(Qt::ToolButtonStyle toolButtonStyle READ toolButtonStyle WRITE setToolButtonStyle) +#if QT_CONFIG(dockwidget) + Q_PROPERTY(bool animated READ isAnimated WRITE setAnimated) +#if QT_CONFIG(tabbar) + Q_PROPERTY(bool documentMode READ documentMode WRITE setDocumentMode) +#endif // QT_CONFIG(tabbar) +#if QT_CONFIG(tabwidget) + Q_PROPERTY(QTabWidget::TabShape tabShape READ tabShape WRITE setTabShape) +#endif // QT_CONFIG(tabwidget) + Q_PROPERTY(bool dockNestingEnabled READ isDockNestingEnabled WRITE setDockNestingEnabled) +#endif // QT_CONFIG(dockwidget) + Q_PROPERTY(DockOptions dockOptions READ dockOptions WRITE setDockOptions) +#if QT_CONFIG(toolbar) + Q_PROPERTY(bool unifiedTitleAndToolBarOnMac READ unifiedTitleAndToolBarOnMac + WRITE setUnifiedTitleAndToolBarOnMac) +#endif + +public: + enum DockOption { + AnimatedDocks = 0x01, + AllowNestedDocks = 0x02, + AllowTabbedDocks = 0x04, + ForceTabbedDocks = 0x08, // implies AllowTabbedDocks, !AllowNestedDocks + VerticalTabs = 0x10, // implies AllowTabbedDocks + GroupedDragging = 0x20 // implies AllowTabbedDocks + }; + Q_ENUM(DockOption) + Q_DECLARE_FLAGS(DockOptions, DockOption) + Q_FLAG(DockOptions) + + explicit QMainWindow(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()); + ~QMainWindow(); + + QSize iconSize() const; + void setIconSize(const QSize &iconSize); + + Qt::ToolButtonStyle toolButtonStyle() const; + void setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle); + +#if QT_CONFIG(dockwidget) + bool isAnimated() const; + bool isDockNestingEnabled() const; +#endif + +#if QT_CONFIG(tabbar) + bool documentMode() const; + void setDocumentMode(bool enabled); +#endif + +#if QT_CONFIG(tabwidget) + QTabWidget::TabShape tabShape() const; + void setTabShape(QTabWidget::TabShape tabShape); + QTabWidget::TabPosition tabPosition(Qt::DockWidgetArea area) const; + void setTabPosition(Qt::DockWidgetAreas areas, QTabWidget::TabPosition tabPosition); +#endif // QT_CONFIG(tabwidget) + + void setDockOptions(DockOptions options); + DockOptions dockOptions() const; + + bool isSeparator(const QPoint &pos) const; + +#if QT_CONFIG(menubar) + QMenuBar *menuBar() const; + void setMenuBar(QMenuBar *menubar); + + QWidget *menuWidget() const; + void setMenuWidget(QWidget *menubar); +#endif + +#if QT_CONFIG(statusbar) + QStatusBar *statusBar() const; + void setStatusBar(QStatusBar *statusbar); +#endif + + QWidget *centralWidget() const; + void setCentralWidget(QWidget *widget); + + QWidget *takeCentralWidget(); + +#if QT_CONFIG(dockwidget) + void setCorner(Qt::Corner corner, Qt::DockWidgetArea area); + Qt::DockWidgetArea corner(Qt::Corner corner) const; +#endif + +#if QT_CONFIG(toolbar) + void addToolBarBreak(Qt::ToolBarArea area = Qt::TopToolBarArea); + void insertToolBarBreak(QToolBar *before); + + void addToolBar(Qt::ToolBarArea area, QToolBar *toolbar); + void addToolBar(QToolBar *toolbar); + QToolBar *addToolBar(const QString &title); + void insertToolBar(QToolBar *before, QToolBar *toolbar); + void removeToolBar(QToolBar *toolbar); + void removeToolBarBreak(QToolBar *before); + + bool unifiedTitleAndToolBarOnMac() const; + + Qt::ToolBarArea toolBarArea(const QToolBar *toolbar) const; + bool toolBarBreak(QToolBar *toolbar) const; +#endif // QT_CONFIG(toolbar) + +#if QT_CONFIG(dockwidget) + void addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget); + void addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget, + Qt::Orientation orientation); + void splitDockWidget(QDockWidget *after, QDockWidget *dockwidget, + Qt::Orientation orientation); +#if QT_CONFIG(tabbar) + void tabifyDockWidget(QDockWidget *first, QDockWidget *second); + QList tabifiedDockWidgets(QDockWidget *dockwidget) const; +#endif + void removeDockWidget(QDockWidget *dockwidget); + bool restoreDockWidget(QDockWidget *dockwidget); + + Qt::DockWidgetArea dockWidgetArea(QDockWidget *dockwidget) const; + + void resizeDocks(const QList &docks, + const QList &sizes, Qt::Orientation orientation); +#endif // QT_CONFIG(dockwidget) + + QByteArray saveState(int version = 0) const; + bool restoreState(const QByteArray &state, int version = 0); + +#if QT_CONFIG(menu) + virtual QMenu *createPopupMenu(); +#endif + +public Q_SLOTS: +#if QT_CONFIG(dockwidget) + void setAnimated(bool enabled); + void setDockNestingEnabled(bool enabled); +#endif +#if QT_CONFIG(toolbar) + void setUnifiedTitleAndToolBarOnMac(bool set); +#endif + +Q_SIGNALS: + void iconSizeChanged(const QSize &iconSize); + void toolButtonStyleChanged(Qt::ToolButtonStyle toolButtonStyle); +#if QT_CONFIG(dockwidget) + void tabifiedDockWidgetActivated(QDockWidget *dockWidget); +#endif + +protected: +#ifndef QT_NO_CONTEXTMENU + void contextMenuEvent(QContextMenuEvent *event) override; +#endif + bool event(QEvent *event) override; + +private: + Q_DECLARE_PRIVATE(QMainWindow) + Q_DISABLE_COPY(QMainWindow) + friend class QDockWidgetGroupWindow; +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QMainWindow::DockOptions) + +QT_END_NAMESPACE + +#endif // QDYNAMICMAINWINDOW_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qmdiarea.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmdiarea.h new file mode 100644 index 0000000000000000000000000000000000000000..91c3513f6027cb06d21afb9b9049bd9aaa50d564 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmdiarea.h @@ -0,0 +1,137 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QMDIAREA_H +#define QMDIAREA_H + +#include +#include +#if QT_CONFIG(tabwidget) +#include +#endif + +QT_REQUIRE_CONFIG(mdiarea); + +QT_BEGIN_NAMESPACE + +class QMdiSubWindow; + +class QMdiAreaPrivate; +class Q_WIDGETS_EXPORT QMdiArea : public QAbstractScrollArea +{ + Q_OBJECT + Q_PROPERTY(QBrush background READ background WRITE setBackground) + Q_PROPERTY(WindowOrder activationOrder READ activationOrder WRITE setActivationOrder) + Q_PROPERTY(ViewMode viewMode READ viewMode WRITE setViewMode) +#if QT_CONFIG(tabbar) + Q_PROPERTY(bool documentMode READ documentMode WRITE setDocumentMode) + Q_PROPERTY(bool tabsClosable READ tabsClosable WRITE setTabsClosable) + Q_PROPERTY(bool tabsMovable READ tabsMovable WRITE setTabsMovable) +#endif +#if QT_CONFIG(tabwidget) + Q_PROPERTY(QTabWidget::TabShape tabShape READ tabShape WRITE setTabShape) + Q_PROPERTY(QTabWidget::TabPosition tabPosition READ tabPosition WRITE setTabPosition) +#endif +public: + enum AreaOption { + DontMaximizeSubWindowOnActivation = 0x1 + }; + Q_DECLARE_FLAGS(AreaOptions, AreaOption) + + enum WindowOrder { + CreationOrder, + StackingOrder, + ActivationHistoryOrder + }; + Q_ENUM(WindowOrder) + + enum ViewMode { + SubWindowView, + TabbedView + }; + Q_ENUM(ViewMode) + + QMdiArea(QWidget *parent = nullptr); + ~QMdiArea(); + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + QMdiSubWindow *currentSubWindow() const; + QMdiSubWindow *activeSubWindow() const; + QList subWindowList(WindowOrder order = CreationOrder) const; + + QMdiSubWindow *addSubWindow(QWidget *widget, Qt::WindowFlags flags = Qt::WindowFlags()); + void removeSubWindow(QWidget *widget); + + QBrush background() const; + void setBackground(const QBrush &background); + + WindowOrder activationOrder() const; + void setActivationOrder(WindowOrder order); + + void setOption(AreaOption option, bool on = true); + bool testOption(AreaOption opton) const; + + void setViewMode(ViewMode mode); + ViewMode viewMode() const; + +#if QT_CONFIG(tabbar) + bool documentMode() const; + void setDocumentMode(bool enabled); + + void setTabsClosable(bool closable); + bool tabsClosable() const; + + void setTabsMovable(bool movable); + bool tabsMovable() const; +#endif +#if QT_CONFIG(tabwidget) + void setTabShape(QTabWidget::TabShape shape); + QTabWidget::TabShape tabShape() const; + + void setTabPosition(QTabWidget::TabPosition position); + QTabWidget::TabPosition tabPosition() const; +#endif + +Q_SIGNALS: + void subWindowActivated(QMdiSubWindow *); + +public Q_SLOTS: + void setActiveSubWindow(QMdiSubWindow *window); + void tileSubWindows(); + void cascadeSubWindows(); + void closeActiveSubWindow(); + void closeAllSubWindows(); + void activateNextSubWindow(); + void activatePreviousSubWindow(); + +protected Q_SLOTS: + void setupViewport(QWidget *viewport) override; + +protected: + bool event(QEvent *event) override; + bool eventFilter(QObject *object, QEvent *event) override; + void paintEvent(QPaintEvent *paintEvent) override; + void childEvent(QChildEvent *childEvent) override; + void resizeEvent(QResizeEvent *resizeEvent) override; + void timerEvent(QTimerEvent *timerEvent) override; + void showEvent(QShowEvent *showEvent) override; + bool viewportEvent(QEvent *event) override; + void scrollContentsBy(int dx, int dy) override; + +private: + Q_DISABLE_COPY(QMdiArea) + Q_DECLARE_PRIVATE(QMdiArea) + Q_PRIVATE_SLOT(d_func(), void _q_deactivateAllWindows()) + Q_PRIVATE_SLOT(d_func(), void _q_processWindowStateChanged(Qt::WindowStates, Qt::WindowStates)) + Q_PRIVATE_SLOT(d_func(), void _q_currentTabChanged(int)) + Q_PRIVATE_SLOT(d_func(), void _q_closeTab(int)) + Q_PRIVATE_SLOT(d_func(), void _q_moveTab(int, int)) +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QMdiArea::AreaOptions) + +QT_END_NAMESPACE + +#endif // QMDIAREA_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qmdisubwindow.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmdisubwindow.h new file mode 100644 index 0000000000000000000000000000000000000000..dd4fc004aa9a29d8ed0b37230c52c171281ca8cb --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmdisubwindow.h @@ -0,0 +1,115 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QMDISUBWINDOW_H +#define QMDISUBWINDOW_H + +#include +#include + +QT_REQUIRE_CONFIG(mdiarea); + +QT_BEGIN_NAMESPACE + +class QMenu; +class QMdiArea; + +namespace QMdi { class ControlContainer; } +class QMdiSubWindowPrivate; +class Q_WIDGETS_EXPORT QMdiSubWindow : public QWidget +{ + Q_OBJECT + Q_PROPERTY(int keyboardSingleStep READ keyboardSingleStep WRITE setKeyboardSingleStep) + Q_PROPERTY(int keyboardPageStep READ keyboardPageStep WRITE setKeyboardPageStep) +public: + enum SubWindowOption { + AllowOutsideAreaHorizontally = 0x1, // internal + AllowOutsideAreaVertically = 0x2, // internal + RubberBandResize = 0x4, + RubberBandMove = 0x8 + }; + Q_DECLARE_FLAGS(SubWindowOptions, SubWindowOption) + + QMdiSubWindow(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()); + ~QMdiSubWindow(); + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + void setWidget(QWidget *widget); + QWidget *widget() const; + + QWidget *maximizedButtonsWidget() const; // internal + QWidget *maximizedSystemMenuIconWidget() const; // internal + + bool isShaded() const; + + void setOption(SubWindowOption option, bool on = true); + bool testOption(SubWindowOption) const; + + void setKeyboardSingleStep(int step); + int keyboardSingleStep() const; + + void setKeyboardPageStep(int step); + int keyboardPageStep() const; + +#if QT_CONFIG(menu) + void setSystemMenu(QMenu *systemMenu); + QMenu *systemMenu() const; +#endif + + QMdiArea *mdiArea() const; + +Q_SIGNALS: + void windowStateChanged(Qt::WindowStates oldState, Qt::WindowStates newState); + void aboutToActivate(); + +public Q_SLOTS: +#if QT_CONFIG(menu) + void showSystemMenu(); +#endif + void showShaded(); + +protected: + bool eventFilter(QObject *object, QEvent *event) override; + bool event(QEvent *event) override; + void showEvent(QShowEvent *showEvent) override; + void hideEvent(QHideEvent *hideEvent) override; + void changeEvent(QEvent *changeEvent) override; + void closeEvent(QCloseEvent *closeEvent) override; + void leaveEvent(QEvent *leaveEvent) override; + void resizeEvent(QResizeEvent *resizeEvent) override; + void timerEvent(QTimerEvent *timerEvent) override; + void moveEvent(QMoveEvent *moveEvent) override; + void paintEvent(QPaintEvent *paintEvent) override; + void mousePressEvent(QMouseEvent *mouseEvent) override; + void mouseDoubleClickEvent(QMouseEvent *mouseEvent) override; + void mouseReleaseEvent(QMouseEvent *mouseEvent) override; + void mouseMoveEvent(QMouseEvent *mouseEvent) override; + void keyPressEvent(QKeyEvent *keyEvent) override; +#ifndef QT_NO_CONTEXTMENU + void contextMenuEvent(QContextMenuEvent *contextMenuEvent) override; +#endif + void focusInEvent(QFocusEvent *focusInEvent) override; + void focusOutEvent(QFocusEvent *focusOutEvent) override; + void childEvent(QChildEvent *childEvent) override; + +private: + Q_DISABLE_COPY(QMdiSubWindow) + Q_DECLARE_PRIVATE(QMdiSubWindow) + Q_PRIVATE_SLOT(d_func(), void _q_updateStaysOnTopHint()) + Q_PRIVATE_SLOT(d_func(), void _q_enterInteractiveMode()) + Q_PRIVATE_SLOT(d_func(), void _q_processFocusChanged(QWidget *, QWidget *)) + friend class QMdiAreaPrivate; + friend class QMdiArea; +#if QT_CONFIG(tabbar) + friend class QMdiAreaTabBar; +#endif + friend class QMdi::ControlContainer; +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QMdiSubWindow::SubWindowOptions) + +QT_END_NAMESPACE + +#endif // QMDISUBWINDOW_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qmenu.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmenu.h new file mode 100644 index 0000000000000000000000000000000000000000..1d3fcc937649cdf4db6d8ae729bf58bd405b6a98 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmenu.h @@ -0,0 +1,234 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QMENU_H +#define QMENU_H + +#include +#include +#include +#include +#include + +#if defined(Q_OS_MACOS) || defined(Q_QDOC) +Q_FORWARD_DECLARE_OBJC_CLASS(NSMenu); +#endif + +QT_REQUIRE_CONFIG(menu); + +QT_BEGIN_NAMESPACE + +class QMenuPrivate; +class QStyleOptionMenuItem; +class QPlatformMenu; + +class Q_WIDGETS_EXPORT QMenu : public QWidget +{ +private: + Q_OBJECT + Q_DECLARE_PRIVATE(QMenu) + + Q_PROPERTY(bool tearOffEnabled READ isTearOffEnabled WRITE setTearOffEnabled) + Q_PROPERTY(QString title READ title WRITE setTitle) + Q_PROPERTY(QIcon icon READ icon WRITE setIcon) + Q_PROPERTY(bool separatorsCollapsible READ separatorsCollapsible WRITE setSeparatorsCollapsible) + Q_PROPERTY(bool toolTipsVisible READ toolTipsVisible WRITE setToolTipsVisible) + +public: + explicit QMenu(QWidget *parent = nullptr); + explicit QMenu(const QString &title, QWidget *parent = nullptr); + ~QMenu(); + + using QWidget::addAction; +#if QT_WIDGETS_REMOVED_SINCE(6, 3) + QAction *addAction(const QString &text); + QAction *addAction(const QIcon &icon, const QString &text); +#if !QT_CONFIG(shortcut) + QAction *addAction(const QString &text, const QObject *receiver, const char* member); + QAction *addAction(const QIcon &icon, const QString &text, + const QObject *receiver, const char* member); +#endif +#endif + +#if QT_CONFIG(shortcut) +#if QT_DEPRECATED_SINCE(6, 4) + QT_DEPRECATED_VERSION_X_6_4("Use addAction(text, shortcut, receiver, member) instead.") + QAction *addAction(const QString &text, const QObject *receiver, const char* member, + const QKeySequence &shortcut); + QT_DEPRECATED_VERSION_X_6_4("Use addAction(icon, text, shortcut, receiver, member) instead.") + QAction *addAction(const QIcon &icon, const QString &text, + const QObject *receiver, const char* member, + const QKeySequence &shortcut); + +#ifdef Q_QDOC + template + QAction *addAction(const QString &text, Functor functor, const QKeySequence &shortcut); + template + QAction *addAction(const QString &text, const QObject *context, Functor functor, const QKeySequence &shortcut); + template + QAction *addAction(const QIcon &icon, const QString &text, Functor functor, const QKeySequence &shortcut); + template + QAction *addAction(const QIcon &icon, const QString &text, const QObject *context, Functor functor, const QKeySequence &shortcut); +#else + // addAction(QString): Connect to a QObject slot / functor or function pointer (with context) + template + QT_DEPRECATED_VERSION_X_6_4("Use addAction(text, shortcut, object, slot) instead.") + inline typename std::enable_if::value + && QtPrivate::IsPointerToTypeDerivedFromQObject::Value, QAction *>::type + addAction(const QString &text, const Obj *object, Func1 slot, + const QKeySequence &shortcut) + { + return addAction(text, shortcut, object, slot); + } + // addAction(QString): Connect to a functor or function pointer (without context) + template + QT_DEPRECATED_VERSION_X_6_4("Use addAction(text, shortcut, slot) instead.") + inline QAction *addAction(const QString &text, Func1 slot, const QKeySequence &shortcut) + { + return addAction(text, shortcut, slot); + } + // addAction(QIcon, QString): Connect to a QObject slot / functor or function pointer (with context) + template + QT_DEPRECATED_VERSION_X_6_4("Use addAction(icon, text, shortcut, object, slot) instead.") + inline typename std::enable_if::value + && QtPrivate::IsPointerToTypeDerivedFromQObject::Value, QAction *>::type + addAction(const QIcon &actionIcon, const QString &text, const Obj *object, Func1 slot, + const QKeySequence &shortcut) + + { + return addAction(actionIcon, text, shortcut, object, slot); + } + // addAction(QIcon, QString): Connect to a functor or function pointer (without context) + template + QT_DEPRECATED_VERSION_X_6_4("Use addAction(icon, text, shortcut, slot) instead.") + inline QAction *addAction(const QIcon &actionIcon, const QString &text, Func1 slot, + const QKeySequence &shortcut) + { + return addAction(actionIcon, text, shortcut, slot); + } +#endif // !Q_QDOC +#endif // QT_DEPRECATED_SINCE(6, 4) +#endif // QT_CONFIG(shortcut) + + QAction *addMenu(QMenu *menu); + QMenu *addMenu(const QString &title); + QMenu *addMenu(const QIcon &icon, const QString &title); + + QAction *addSeparator(); + + QAction *addSection(const QString &text); + QAction *addSection(const QIcon &icon, const QString &text); + + QAction *insertMenu(QAction *before, QMenu *menu); + QAction *insertSeparator(QAction *before); + QAction *insertSection(QAction *before, const QString &text); + QAction *insertSection(QAction *before, const QIcon &icon, const QString &text); + + bool isEmpty() const; + void clear(); + + void setTearOffEnabled(bool); + bool isTearOffEnabled() const; + + bool isTearOffMenuVisible() const; + void showTearOffMenu(); + void showTearOffMenu(const QPoint &pos); + void hideTearOffMenu(); + + void setDefaultAction(QAction *); + QAction *defaultAction() const; + + void setActiveAction(QAction *act); + QAction *activeAction() const; + + void popup(const QPoint &pos, QAction *at = nullptr); + QAction *exec(); + QAction *exec(const QPoint &pos, QAction *at = nullptr); + + static QAction *exec(const QList &actions, const QPoint &pos, QAction *at = nullptr, QWidget *parent = nullptr); + + QSize sizeHint() const override; + + QRect actionGeometry(QAction *) const; + QAction *actionAt(const QPoint &) const; + + QAction *menuAction() const; + static QMenu *menuInAction(const QAction *action) + { return qobject_cast(action->menuObject()); } + + QString title() const; + void setTitle(const QString &title); + + QIcon icon() const; + void setIcon(const QIcon &icon); + + void setNoReplayFor(QWidget *widget); + QPlatformMenu *platformMenu(); + void setPlatformMenu(QPlatformMenu *platformMenu); + +#if defined(Q_OS_MACOS) || defined(Q_QDOC) + NSMenu* toNSMenu(); + void setAsDockMenu(); +#endif + + bool separatorsCollapsible() const; + void setSeparatorsCollapsible(bool collapse); + + bool toolTipsVisible() const; + void setToolTipsVisible(bool visible); + +Q_SIGNALS: + void aboutToShow(); + void aboutToHide(); + void triggered(QAction *action); + void hovered(QAction *action); + +protected: + int columnCount() const; + + void changeEvent(QEvent *) override; + void keyPressEvent(QKeyEvent *) override; + void mouseReleaseEvent(QMouseEvent *) override; + void mousePressEvent(QMouseEvent *) override; + void mouseMoveEvent(QMouseEvent *) override; +#if QT_CONFIG(wheelevent) + void wheelEvent(QWheelEvent *) override; +#endif + void enterEvent(QEnterEvent *) override; + void leaveEvent(QEvent *) override; + void hideEvent(QHideEvent *) override; + void paintEvent(QPaintEvent *) override; + void actionEvent(QActionEvent *) override; + void timerEvent(QTimerEvent *) override; + bool event(QEvent *) override; + bool focusNextPrevChild(bool next) override; + virtual void initStyleOption(QStyleOptionMenuItem *option, const QAction *action) const; + +private Q_SLOTS: + void internalDelayedPopup(); + +private: + Q_PRIVATE_SLOT(d_func(), void _q_actionTriggered()) + Q_PRIVATE_SLOT(d_func(), void _q_actionHovered()) + Q_PRIVATE_SLOT(d_func(), void _q_overrideMenuActionDestroyed()) + Q_PRIVATE_SLOT(d_func(), void _q_platformMenuAboutToShow()) + +protected: + QMenu(QMenuPrivate &dd, QWidget* parent = nullptr); + +private: + Q_DISABLE_COPY(QMenu) + + friend class QMenuBar; + friend class QMenuBarPrivate; + friend class QTornOffMenu; + friend class QComboBox; + friend class QtWidgetsActionPrivate; + friend class QToolButtonPrivate; + friend void qt_mac_emit_menuSignals(QMenu *menu, bool show); + friend void qt_mac_menu_emit_hovered(QMenu *menu, QAction *action); +}; + +QT_END_NAMESPACE + +#endif // QMENU_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qmenubar.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmenubar.h new file mode 100644 index 0000000000000000000000000000000000000000..b8616d9c204a61d8a19f4e953b959555b3f78d4d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmenubar.h @@ -0,0 +1,110 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QMENUBAR_H +#define QMENUBAR_H + +#include +#include + +QT_REQUIRE_CONFIG(menubar); + +QT_BEGIN_NAMESPACE + +class QMenuBarPrivate; +class QStyleOptionMenuItem; +class QWindowsStyle; +class QPlatformMenuBar; + +class Q_WIDGETS_EXPORT QMenuBar : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(bool defaultUp READ isDefaultUp WRITE setDefaultUp) + Q_PROPERTY(bool nativeMenuBar READ isNativeMenuBar WRITE setNativeMenuBar) + +public: + explicit QMenuBar(QWidget *parent = nullptr); + ~QMenuBar(); + + using QWidget::addAction; +#if QT_WIDGETS_REMOVED_SINCE(6, 3) + QAction *addAction(const QString &text); + QAction *addAction(const QString &text, const QObject *receiver, const char* member); +#endif + + QAction *addMenu(QMenu *menu); + QMenu *addMenu(const QString &title); + QMenu *addMenu(const QIcon &icon, const QString &title); + + + QAction *addSeparator(); + QAction *insertSeparator(QAction *before); + + QAction *insertMenu(QAction *before, QMenu *menu); + + void clear(); + + QAction *activeAction() const; + void setActiveAction(QAction *action); + + void setDefaultUp(bool); + bool isDefaultUp() const; + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + int heightForWidth(int) const override; + + QRect actionGeometry(QAction *) const; + QAction *actionAt(const QPoint &) const; + + void setCornerWidget(QWidget *w, Qt::Corner corner = Qt::TopRightCorner); + QWidget *cornerWidget(Qt::Corner corner = Qt::TopRightCorner) const; + +#if defined(Q_OS_MACOS) || defined(Q_QDOC) + NSMenu* toNSMenu(); +#endif + + bool isNativeMenuBar() const; + void setNativeMenuBar(bool nativeMenuBar); + QPlatformMenuBar *platformMenuBar(); +public Q_SLOTS: + void setVisible(bool visible) override; + +Q_SIGNALS: + void triggered(QAction *action); + void hovered(QAction *action); + +protected: + void changeEvent(QEvent *) override; + void keyPressEvent(QKeyEvent *) override; + void mouseReleaseEvent(QMouseEvent *) override; + void mousePressEvent(QMouseEvent *) override; + void mouseMoveEvent(QMouseEvent *) override; + void leaveEvent(QEvent *) override; + void paintEvent(QPaintEvent *) override; + void resizeEvent(QResizeEvent *) override; + void actionEvent(QActionEvent *) override; + void focusOutEvent(QFocusEvent *) override; + void focusInEvent(QFocusEvent *) override; + void timerEvent(QTimerEvent *) override; + bool eventFilter(QObject *, QEvent *) override; + bool event(QEvent *) override; + virtual void initStyleOption(QStyleOptionMenuItem *option, const QAction *action) const; + +private: + Q_DECLARE_PRIVATE(QMenuBar) + Q_DISABLE_COPY(QMenuBar) + Q_PRIVATE_SLOT(d_func(), void _q_actionTriggered()) + Q_PRIVATE_SLOT(d_func(), void _q_actionHovered()) + Q_PRIVATE_SLOT(d_func(), void _q_internalShortcutActivated(int)) + Q_PRIVATE_SLOT(d_func(), void _q_updateLayout()) + + friend class QMenu; + friend class QMenuPrivate; + friend class QWindowsStyle; +}; + +QT_END_NAMESPACE + +#endif // QMENUBAR_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qmessagebox.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmessagebox.h new file mode 100644 index 0000000000000000000000000000000000000000..7cd94d2371932f87274904e68de8e52a63bbc968 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qmessagebox.h @@ -0,0 +1,322 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QMESSAGEBOX_H +#define QMESSAGEBOX_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(messagebox); + +QT_BEGIN_NAMESPACE + +class QAnyStringView; +class QLabel; +class QMessageBoxPrivate; +class QAbstractButton; +class QCheckBox; + +class Q_WIDGETS_EXPORT QMessageBox : public QDialog +{ + Q_OBJECT + Q_PROPERTY(QString text READ text WRITE setText) + Q_PROPERTY(Icon icon READ icon WRITE setIcon) + Q_PROPERTY(QPixmap iconPixmap READ iconPixmap WRITE setIconPixmap) + Q_PROPERTY(Qt::TextFormat textFormat READ textFormat WRITE setTextFormat) + Q_PROPERTY(StandardButtons standardButtons READ standardButtons WRITE setStandardButtons) +#if QT_CONFIG(textedit) + Q_PROPERTY(QString detailedText READ detailedText WRITE setDetailedText) +#endif + Q_PROPERTY(QString informativeText READ informativeText WRITE setInformativeText) + Q_PROPERTY(Qt::TextInteractionFlags textInteractionFlags READ textInteractionFlags + WRITE setTextInteractionFlags) + Q_PROPERTY(Options options READ options WRITE setOptions) +public: + // Keep in sync with MessageBoxOption in qplatformdialoghelper.h + enum class Option { + DontUseNativeDialog = 0x00000001 + }; + Q_FLAG(Option) + + enum Icon { + // keep this in sync with QMessageDialogOptions::StandardIcon + NoIcon = 0, + Information = 1, + Warning = 2, + Critical = 3, + Question = 4 + }; + Q_ENUM(Icon) + + enum ButtonRole { + // keep this in sync with QDialogButtonBox::ButtonRole and QPlatformDialogHelper::ButtonRole + InvalidRole = -1, + AcceptRole, + RejectRole, + DestructiveRole, + ActionRole, + HelpRole, + YesRole, + NoRole, + ResetRole, + ApplyRole, + + NRoles + }; + Q_ENUM(ButtonRole) + + enum StandardButton { + // keep this in sync with QDialogButtonBox::StandardButton and QPlatformDialogHelper::StandardButton + NoButton = 0x00000000, + Ok = 0x00000400, + Save = 0x00000800, + SaveAll = 0x00001000, + Open = 0x00002000, + Yes = 0x00004000, + YesToAll = 0x00008000, + No = 0x00010000, + NoToAll = 0x00020000, + Abort = 0x00040000, + Retry = 0x00080000, + Ignore = 0x00100000, + Close = 0x00200000, + Cancel = 0x00400000, + Discard = 0x00800000, + Help = 0x01000000, + Apply = 0x02000000, + Reset = 0x04000000, + RestoreDefaults = 0x08000000, + + FirstButton = Ok, // internal + LastButton = RestoreDefaults, // internal + + YesAll = YesToAll, // obsolete + NoAll = NoToAll, // obsolete + + Default = 0x00000100, // obsolete + Escape = 0x00000200, // obsolete + FlagMask = 0x00000300, // obsolete + ButtonMask = ~FlagMask // obsolete + }; + Q_ENUM(StandardButton) + +#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) + typedef StandardButton Button; +#endif + Q_DECLARE_FLAGS(Options, Option) + Q_DECLARE_FLAGS(StandardButtons, StandardButton) + + Q_FLAG(StandardButtons) + + explicit QMessageBox(QWidget *parent = nullptr); + QMessageBox(Icon icon, const QString &title, const QString &text, + StandardButtons buttons = NoButton, QWidget *parent = nullptr, + Qt::WindowFlags flags = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint); + ~QMessageBox(); + + void addButton(QAbstractButton *button, ButtonRole role); + QPushButton *addButton(const QString &text, ButtonRole role); + QPushButton *addButton(StandardButton button); + void removeButton(QAbstractButton *button); + + using QDialog::open; + void open(QObject *receiver, const char *member); + + QList buttons() const; + ButtonRole buttonRole(QAbstractButton *button) const; + + void setStandardButtons(StandardButtons buttons); + StandardButtons standardButtons() const; + StandardButton standardButton(QAbstractButton *button) const; + QAbstractButton *button(StandardButton which) const; + + QPushButton *defaultButton() const; + void setDefaultButton(QPushButton *button); + void setDefaultButton(StandardButton button); + + QAbstractButton *escapeButton() const; + void setEscapeButton(QAbstractButton *button); + void setEscapeButton(StandardButton button); + + QAbstractButton *clickedButton() const; + + QString text() const; + void setText(const QString &text); + + Icon icon() const; + void setIcon(Icon); + + QPixmap iconPixmap() const; + void setIconPixmap(const QPixmap &pixmap); + + Qt::TextFormat textFormat() const; + void setTextFormat(Qt::TextFormat format); + + void setTextInteractionFlags(Qt::TextInteractionFlags flags); + Qt::TextInteractionFlags textInteractionFlags() const; + + void setCheckBox(QCheckBox *cb); + QCheckBox* checkBox() const; + + void setOption(Option option, bool on = true); + bool testOption(Option option) const; + void setOptions(Options options); + Options options() const; + + static StandardButton information(QWidget *parent, const QString &title, + const QString &text, StandardButtons buttons = Ok, + StandardButton defaultButton = NoButton); +#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) // needed as long as we have int overloads + inline static StandardButton information(QWidget *parent, const QString &title, + const QString& text, + StandardButton button0, StandardButton button1 = NoButton) + { return information(parent, title, text, StandardButtons(button0), button1); } +#endif + + static StandardButton question(QWidget *parent, const QString &title, + const QString &text, StandardButtons buttons = StandardButtons(Yes | No), + StandardButton defaultButton = NoButton); +#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) + inline static int question(QWidget *parent, const QString &title, + const QString& text, + StandardButton button0, StandardButton button1) + { return question(parent, title, text, StandardButtons(button0), button1); } +#endif + + static StandardButton warning(QWidget *parent, const QString &title, + const QString &text, StandardButtons buttons = Ok, + StandardButton defaultButton = NoButton); +#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) + inline static int warning(QWidget *parent, const QString &title, + const QString& text, + StandardButton button0, StandardButton button1) + { return warning(parent, title, text, StandardButtons(button0), button1); } +#endif + + static StandardButton critical(QWidget *parent, const QString &title, + const QString &text, StandardButtons buttons = Ok, + StandardButton defaultButton = NoButton); +#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) + inline static int critical(QWidget *parent, const QString &title, + const QString& text, + StandardButton button0, StandardButton button1) + { return critical(parent, title, text, StandardButtons(button0), button1); } +#endif + + static void about(QWidget *parent, const QString &title, const QString &text); + static void aboutQt(QWidget *parent, const QString &title = QString()); + +#if QT_DEPRECATED_SINCE(6,2) + // the following functions are obsolete: + QT_DEPRECATED_VERSION_X_6_2("Use the overload taking StandardButtons instead.") + QMessageBox(const QString &title, const QString &text, Icon icon, + int button0, int button1, int button2, + QWidget *parent = nullptr, + Qt::WindowFlags f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint); + + QT_DEPRECATED_VERSION_X_6_2("Use the overload taking StandardButtons instead.") + static int information(QWidget *parent, const QString &title, + const QString& text, + int button0, int button1 = 0, int button2 = 0); + QT_DEPRECATED_VERSION_X_6_2("Use the overload taking StandardButtons instead.") + static int information(QWidget *parent, const QString &title, + const QString& text, + const QString& button0Text, + const QString& button1Text = QString(), + const QString& button2Text = QString(), + int defaultButtonNumber = 0, + int escapeButtonNumber = -1); + + QT_DEPRECATED_VERSION_X_6_2("Use the overload taking StandardButtons instead.") + static int question(QWidget *parent, const QString &title, + const QString& text, + int button0, int button1 = 0, int button2 = 0); + QT_DEPRECATED_VERSION_X_6_2("Use the overload taking StandardButtons instead.") + static int question(QWidget *parent, const QString &title, + const QString& text, + const QString& button0Text, + const QString& button1Text = QString(), + const QString& button2Text = QString(), + int defaultButtonNumber = 0, + int escapeButtonNumber = -1); + + QT_DEPRECATED_VERSION_X_6_2("Use the overload taking StandardButtons instead.") + static int warning(QWidget *parent, const QString &title, + const QString& text, + int button0, int button1, int button2 = 0); + QT_DEPRECATED_VERSION_X_6_2("Use the overload taking StandardButtons instead.") + static int warning(QWidget *parent, const QString &title, + const QString& text, + const QString& button0Text, + const QString& button1Text = QString(), + const QString& button2Text = QString(), + int defaultButtonNumber = 0, + int escapeButtonNumber = -1); + + QT_DEPRECATED_VERSION_X_6_2("Use the overload taking StandardButtons instead.") + static int critical(QWidget *parent, const QString &title, + const QString& text, + int button0, int button1, int button2 = 0); + QT_DEPRECATED_VERSION_X_6_2("Use the overload taking StandardButtons instead.") + static int critical(QWidget *parent, const QString &title, + const QString& text, + const QString& button0Text, + const QString& button1Text = QString(), + const QString& button2Text = QString(), + int defaultButtonNumber = 0, + int escapeButtonNumber = -1); + + QT_DEPRECATED_VERSION_X_6_2("Use button() and QPushButton::text() instead.") + QString buttonText(int button) const; + QT_DEPRECATED_VERSION_X_6_2("Use addButton() instead.") + void setButtonText(int button, const QString &text); +#endif + + QString informativeText() const; + void setInformativeText(const QString &text); + +#if QT_CONFIG(textedit) + QString detailedText() const; + void setDetailedText(const QString &text); +#endif + + void setWindowTitle(const QString &title); + void setWindowModality(Qt::WindowModality windowModality); + +#if QT_DEPRECATED_SINCE(6,2) + QT_DEPRECATED_VERSION_X_6_2("Use QStyle::standardIcon() instead.") + static QPixmap standardIcon(Icon icon); +#endif + +Q_SIGNALS: + void buttonClicked(QAbstractButton *button); + +#ifdef Q_QDOC +public Q_SLOTS: + int exec() override; +#endif + +protected: + bool event(QEvent *e) override; + void resizeEvent(QResizeEvent *event) override; + void showEvent(QShowEvent *event) override; + void closeEvent(QCloseEvent *event) override; + void keyPressEvent(QKeyEvent *event) override; + void changeEvent(QEvent *event) override; + +private: + Q_DISABLE_COPY(QMessageBox) + Q_DECLARE_PRIVATE(QMessageBox) +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QMessageBox::StandardButtons) + +Q_WIDGETS_EXPORT void qRequireVersion(int argc, char *argv[], QAnyStringView req); + +#define QT_REQUIRE_VERSION(argc, argv, str) qRequireVersion(argc, argv, str); + +QT_END_NAMESPACE + +#endif // QMESSAGEBOX_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qplaintextedit.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qplaintextedit.h new file mode 100644 index 0000000000000000000000000000000000000000..69ef435045411437d37dc2de380b4f15841531f4 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qplaintextedit.h @@ -0,0 +1,293 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QPLAINTEXTEDIT_H +#define QPLAINTEXTEDIT_H + +#include +#include + +#include +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(textedit); + +QT_BEGIN_NAMESPACE + +class QStyleSheet; +class QTextDocument; +class QMenu; +class QPlainTextEditPrivate; +class QMimeData; +class QPagedPaintDevice; +class QRegularExpression; + +class Q_WIDGETS_EXPORT QPlainTextEdit : public QAbstractScrollArea +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QPlainTextEdit) + Q_PROPERTY(bool tabChangesFocus READ tabChangesFocus WRITE setTabChangesFocus) + Q_PROPERTY(QString documentTitle READ documentTitle WRITE setDocumentTitle) + Q_PROPERTY(bool undoRedoEnabled READ isUndoRedoEnabled WRITE setUndoRedoEnabled) + Q_PROPERTY(LineWrapMode lineWrapMode READ lineWrapMode WRITE setLineWrapMode) + QDOC_PROPERTY(QTextOption::WrapMode wordWrapMode READ wordWrapMode WRITE setWordWrapMode) + Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly) + Q_PROPERTY(QString plainText READ toPlainText WRITE setPlainText NOTIFY textChanged USER true) + Q_PROPERTY(bool overwriteMode READ overwriteMode WRITE setOverwriteMode) + Q_PROPERTY(qreal tabStopDistance READ tabStopDistance WRITE setTabStopDistance) + Q_PROPERTY(int cursorWidth READ cursorWidth WRITE setCursorWidth) + Q_PROPERTY(Qt::TextInteractionFlags textInteractionFlags READ textInteractionFlags + WRITE setTextInteractionFlags) + Q_PROPERTY(int blockCount READ blockCount) + Q_PROPERTY(int maximumBlockCount READ maximumBlockCount WRITE setMaximumBlockCount) + Q_PROPERTY(bool backgroundVisible READ backgroundVisible WRITE setBackgroundVisible) + Q_PROPERTY(bool centerOnScroll READ centerOnScroll WRITE setCenterOnScroll) + Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText) +public: + enum LineWrapMode { + NoWrap, + WidgetWidth + }; + Q_ENUM(LineWrapMode) + + explicit QPlainTextEdit(QWidget *parent = nullptr); + explicit QPlainTextEdit(const QString &text, QWidget *parent = nullptr); + virtual ~QPlainTextEdit(); + + void setDocument(QTextDocument *document); + QTextDocument *document() const; + + void setPlaceholderText(const QString &placeholderText); + QString placeholderText() const; + + void setTextCursor(const QTextCursor &cursor); + QTextCursor textCursor() const; + + bool isReadOnly() const; + void setReadOnly(bool ro); + + void setTextInteractionFlags(Qt::TextInteractionFlags flags); + Qt::TextInteractionFlags textInteractionFlags() const; + + void mergeCurrentCharFormat(const QTextCharFormat &modifier); + void setCurrentCharFormat(const QTextCharFormat &format); + QTextCharFormat currentCharFormat() const; + + bool tabChangesFocus() const; + void setTabChangesFocus(bool b); + + inline void setDocumentTitle(const QString &title) + { document()->setMetaInformation(QTextDocument::DocumentTitle, title); } + inline QString documentTitle() const + { return document()->metaInformation(QTextDocument::DocumentTitle); } + + inline bool isUndoRedoEnabled() const + { return document()->isUndoRedoEnabled(); } + inline void setUndoRedoEnabled(bool enable) + { document()->setUndoRedoEnabled(enable); } + + inline void setMaximumBlockCount(int maximum) + { document()->setMaximumBlockCount(maximum); } + inline int maximumBlockCount() const + { return document()->maximumBlockCount(); } + + + LineWrapMode lineWrapMode() const; + void setLineWrapMode(LineWrapMode mode); + + QTextOption::WrapMode wordWrapMode() const; + void setWordWrapMode(QTextOption::WrapMode policy); + + void setBackgroundVisible(bool visible); + bool backgroundVisible() const; + + void setCenterOnScroll(bool enabled); + bool centerOnScroll() const; + + bool find(const QString &exp, QTextDocument::FindFlags options = QTextDocument::FindFlags()); +#if QT_CONFIG(regularexpression) + bool find(const QRegularExpression &exp, QTextDocument::FindFlags options = QTextDocument::FindFlags()); +#endif + + inline QString toPlainText() const + { return document()->toPlainText(); } + + void ensureCursorVisible(); + + virtual QVariant loadResource(int type, const QUrl &name); +#ifndef QT_NO_CONTEXTMENU + QMenu *createStandardContextMenu(); + QMenu *createStandardContextMenu(const QPoint &position); +#endif + + QTextCursor cursorForPosition(const QPoint &pos) const; + QRect cursorRect(const QTextCursor &cursor) const; + QRect cursorRect() const; + + QString anchorAt(const QPoint &pos) const; + + bool overwriteMode() const; + void setOverwriteMode(bool overwrite); + + qreal tabStopDistance() const; + void setTabStopDistance(qreal distance); + + int cursorWidth() const; + void setCursorWidth(int width); + + void setExtraSelections(const QList &selections); + QList extraSelections() const; + + void moveCursor(QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); + + bool canPaste() const; + + void print(QPagedPaintDevice *printer) const; + + int blockCount() const; + QVariant inputMethodQuery(Qt::InputMethodQuery property) const override; + Q_INVOKABLE QVariant inputMethodQuery(Qt::InputMethodQuery query, QVariant argument) const; + +public Q_SLOTS: + + void setPlainText(const QString &text); + +#ifndef QT_NO_CLIPBOARD + void cut(); + void copy(); + void paste(); +#endif + + void undo(); + void redo(); + + void clear(); + void selectAll(); + + void insertPlainText(const QString &text); + + void appendPlainText(const QString &text); + void appendHtml(const QString &html); + + void centerCursor(); + + void zoomIn(int range = 1); + void zoomOut(int range = 1); + +Q_SIGNALS: + void textChanged(); + void undoAvailable(bool b); + void redoAvailable(bool b); + void copyAvailable(bool b); + void selectionChanged(); + void cursorPositionChanged(); + + void updateRequest(const QRect &rect, int dy); + void blockCountChanged(int newBlockCount); + void modificationChanged(bool); + +protected: + virtual bool event(QEvent *e) override; + virtual void timerEvent(QTimerEvent *e) override; + virtual void keyPressEvent(QKeyEvent *e) override; + virtual void keyReleaseEvent(QKeyEvent *e) override; + virtual void resizeEvent(QResizeEvent *e) override; + virtual void paintEvent(QPaintEvent *e) override; + virtual void mousePressEvent(QMouseEvent *e) override; + virtual void mouseMoveEvent(QMouseEvent *e) override; + virtual void mouseReleaseEvent(QMouseEvent *e) override; + virtual void mouseDoubleClickEvent(QMouseEvent *e) override; + virtual bool focusNextPrevChild(bool next) override; +#ifndef QT_NO_CONTEXTMENU + virtual void contextMenuEvent(QContextMenuEvent *e) override; +#endif +#if QT_CONFIG(draganddrop) + virtual void dragEnterEvent(QDragEnterEvent *e) override; + virtual void dragLeaveEvent(QDragLeaveEvent *e) override; + virtual void dragMoveEvent(QDragMoveEvent *e) override; + virtual void dropEvent(QDropEvent *e) override; +#endif + virtual void focusInEvent(QFocusEvent *e) override; + virtual void focusOutEvent(QFocusEvent *e) override; + virtual void showEvent(QShowEvent *) override; + virtual void changeEvent(QEvent *e) override; +#if QT_CONFIG(wheelevent) + virtual void wheelEvent(QWheelEvent *e) override; +#endif + + virtual QMimeData *createMimeDataFromSelection() const; + virtual bool canInsertFromMimeData(const QMimeData *source) const; + virtual void insertFromMimeData(const QMimeData *source); + + virtual void inputMethodEvent(QInputMethodEvent *) override; + + QPlainTextEdit(QPlainTextEditPrivate &dd, QWidget *parent); + + virtual void scrollContentsBy(int dx, int dy) override; + virtual void doSetTextCursor(const QTextCursor &cursor); + + QTextBlock firstVisibleBlock() const; + QPointF contentOffset() const; + QRectF blockBoundingRect(const QTextBlock &block) const; + QRectF blockBoundingGeometry(const QTextBlock &block) const; + QAbstractTextDocumentLayout::PaintContext getPaintContext() const; + + void zoomInF(float range); + +private: + Q_DISABLE_COPY(QPlainTextEdit) + + friend class QPlainTextEditControl; +}; + + +class QPlainTextDocumentLayoutPrivate; +class Q_WIDGETS_EXPORT QPlainTextDocumentLayout : public QAbstractTextDocumentLayout +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QPlainTextDocumentLayout) + Q_PROPERTY(int cursorWidth READ cursorWidth WRITE setCursorWidth) + +public: + QPlainTextDocumentLayout(QTextDocument *document); + ~QPlainTextDocumentLayout(); + + void draw(QPainter *, const PaintContext &) override; + int hitTest(const QPointF &, Qt::HitTestAccuracy ) const override; + + int pageCount() const override; + QSizeF documentSize() const override; + + QRectF frameBoundingRect(QTextFrame *) const override; + QRectF blockBoundingRect(const QTextBlock &block) const override; + + void ensureBlockLayout(const QTextBlock &block) const; + + void setCursorWidth(int width); + int cursorWidth() const; + + void requestUpdate(); + +protected: + void documentChanged(int from, int /*charsRemoved*/, int charsAdded) override; + + +private: + void setTextWidth(qreal newWidth); + qreal textWidth() const; + void layoutBlock(const QTextBlock &block); + qreal blockWidth(const QTextBlock &block); + + QPlainTextDocumentLayoutPrivate *priv() const; + + friend class QPlainTextEdit; + friend class QPlainTextEditPrivate; +}; + +QT_END_NAMESPACE + +#endif // QPLAINTEXTEDIT_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qprogressbar.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qprogressbar.h new file mode 100644 index 0000000000000000000000000000000000000000..9e25d768d06e70a51f3a158d0aa0b454d63deaaf --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qprogressbar.h @@ -0,0 +1,87 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QPROGRESSBAR_H +#define QPROGRESSBAR_H + +#include +#include + +QT_REQUIRE_CONFIG(progressbar); + +QT_BEGIN_NAMESPACE + +class QProgressBarPrivate; +class QStyleOptionProgressBar; + +class Q_WIDGETS_EXPORT QProgressBar : public QWidget +{ + Q_OBJECT + Q_PROPERTY(int minimum READ minimum WRITE setMinimum) + Q_PROPERTY(int maximum READ maximum WRITE setMaximum) + Q_PROPERTY(QString text READ text) + Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged) + Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment) + Q_PROPERTY(bool textVisible READ isTextVisible WRITE setTextVisible) + Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation) + Q_PROPERTY(bool invertedAppearance READ invertedAppearance WRITE setInvertedAppearance) + Q_PROPERTY(Direction textDirection READ textDirection WRITE setTextDirection) + Q_PROPERTY(QString format READ format WRITE setFormat RESET resetFormat) + +public: + enum Direction { TopToBottom, BottomToTop }; + Q_ENUM(Direction) + + explicit QProgressBar(QWidget *parent = nullptr); + ~QProgressBar(); + + int minimum() const; + int maximum() const; + + int value() const; + + virtual QString text() const; + void setTextVisible(bool visible); + bool isTextVisible() const; + + Qt::Alignment alignment() const; + void setAlignment(Qt::Alignment alignment); + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + Qt::Orientation orientation() const; + + void setInvertedAppearance(bool invert); + bool invertedAppearance() const; + void setTextDirection(QProgressBar::Direction textDirection); + QProgressBar::Direction textDirection() const; + + void setFormat(const QString &format); + void resetFormat(); + QString format() const; + +public Q_SLOTS: + void reset(); + void setRange(int minimum, int maximum); + void setMinimum(int minimum); + void setMaximum(int maximum); + void setValue(int value); + void setOrientation(Qt::Orientation); + +Q_SIGNALS: + void valueChanged(int value); + +protected: + bool event(QEvent *e) override; + void paintEvent(QPaintEvent *) override; + virtual void initStyleOption(QStyleOptionProgressBar *option) const; + +private: + Q_DECLARE_PRIVATE(QProgressBar) + Q_DISABLE_COPY(QProgressBar) +}; + +QT_END_NAMESPACE + +#endif // QPROGRESSBAR_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qprogressdialog.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qprogressdialog.h new file mode 100644 index 0000000000000000000000000000000000000000..1e6838e5469ef7adc18b28fc0b579beac0a29b1a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qprogressdialog.h @@ -0,0 +1,96 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QPROGRESSDIALOG_H +#define QPROGRESSDIALOG_H + +#include + +#include + +QT_REQUIRE_CONFIG(progressdialog); + +QT_BEGIN_NAMESPACE + +class QPushButton; +class QLabel; +class QProgressBar; +class QTimer; +class QProgressDialogPrivate; + +class Q_WIDGETS_EXPORT QProgressDialog : public QDialog +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QProgressDialog) + Q_PROPERTY(bool wasCanceled READ wasCanceled) + Q_PROPERTY(int minimum READ minimum WRITE setMinimum) + Q_PROPERTY(int maximum READ maximum WRITE setMaximum) + Q_PROPERTY(int value READ value WRITE setValue) + Q_PROPERTY(bool autoReset READ autoReset WRITE setAutoReset) + Q_PROPERTY(bool autoClose READ autoClose WRITE setAutoClose) + Q_PROPERTY(int minimumDuration READ minimumDuration WRITE setMinimumDuration) + Q_PROPERTY(QString labelText READ labelText WRITE setLabelText) + +public: + explicit QProgressDialog(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()); + QProgressDialog(const QString &labelText, const QString &cancelButtonText, + int minimum, int maximum, QWidget *parent = nullptr, + Qt::WindowFlags flags = Qt::WindowFlags()); + ~QProgressDialog(); + + void setLabel(QLabel *label); + void setCancelButton(QPushButton *button); + void setBar(QProgressBar *bar); + + bool wasCanceled() const; + + int minimum() const; + int maximum() const; + + int value() const; + + QSize sizeHint() const override; + + QString labelText() const; + int minimumDuration() const; + + void setAutoReset(bool reset); + bool autoReset() const; + void setAutoClose(bool close); + bool autoClose() const; + + using QDialog::open; + void open(QObject *receiver, const char *member); + +public Q_SLOTS: + void cancel(); + void reset(); + void setMaximum(int maximum); + void setMinimum(int minimum); + void setRange(int minimum, int maximum); + void setValue(int progress); + void setLabelText(const QString &text); + void setCancelButtonText(const QString &text); + void setMinimumDuration(int ms); + +Q_SIGNALS: + void canceled(); + +protected: + void resizeEvent(QResizeEvent *event) override; + void closeEvent(QCloseEvent *event) override; + void changeEvent(QEvent *event) override; + void showEvent(QShowEvent *event) override; + +protected Q_SLOTS: + void forceShow(); + +private: + Q_DISABLE_COPY(QProgressDialog) + + Q_PRIVATE_SLOT(d_func(), void _q_disconnectOnClose()) +}; + +QT_END_NAMESPACE + +#endif // QPROGRESSDIALOG_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qproxystyle.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qproxystyle.h new file mode 100644 index 0000000000000000000000000000000000000000..20225308cae44a6818909dcbf65cc38aa79fb8e2 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qproxystyle.h @@ -0,0 +1,72 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QPROXYSTYLE_H +#define QPROXYSTYLE_H + +#include +#include + +QT_BEGIN_NAMESPACE + + +#if !defined(QT_NO_STYLE_PROXY) + +class QProxyStylePrivate; +class Q_WIDGETS_EXPORT QProxyStyle : public QCommonStyle +{ + Q_OBJECT + +public: + QProxyStyle(QStyle *style = nullptr); + QProxyStyle(const QString &key); + ~QProxyStyle(); + + QStyle *baseStyle() const; + void setBaseStyle(QStyle *style); + + void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget = nullptr) const override; + void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget = nullptr) const override; + void drawComplexControl(ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget = nullptr) const override; + void drawItemText(QPainter *painter, const QRect &rect, int flags, const QPalette &pal, bool enabled, + const QString &text, QPalette::ColorRole textRole = QPalette::NoRole) const override; + virtual void drawItemPixmap(QPainter *painter, const QRect &rect, int alignment, const QPixmap &pixmap) const override; + + QSize sizeFromContents(ContentsType type, const QStyleOption *option, const QSize &size, const QWidget *widget) const override; + + QRect subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const override; + QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *widget) const override; + QRect itemTextRect(const QFontMetrics &fm, const QRect &r, int flags, bool enabled, const QString &text) const override; + QRect itemPixmapRect(const QRect &r, int flags, const QPixmap &pixmap) const override; + + SubControl hitTestComplexControl(ComplexControl control, const QStyleOptionComplex *option, const QPoint &pos, const QWidget *widget = nullptr) const override; + int styleHint(StyleHint hint, const QStyleOption *option = nullptr, const QWidget *widget = nullptr, QStyleHintReturn *returnData = nullptr) const override; + int pixelMetric(PixelMetric metric, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const override; + int layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, + Qt::Orientation orientation, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const override; + + QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const override; + QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt, const QWidget *widget = nullptr) const override; + QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const override; + QPalette standardPalette() const override; + + void polish(QWidget *widget) override; + void polish(QPalette &pal) override; + void polish(QApplication *app) override; + + void unpolish(QWidget *widget) override; + void unpolish(QApplication *app) override; + +protected: + bool event(QEvent *e) override; + +private: + Q_DISABLE_COPY(QProxyStyle) + Q_DECLARE_PRIVATE(QProxyStyle) +}; + +#endif // QT_NO_STYLE_PROXY + +QT_END_NAMESPACE + +#endif // QPROXYSTYLE_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qpushbutton.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qpushbutton.h new file mode 100644 index 0000000000000000000000000000000000000000..9ad38bd60c5491da70239cffcea1e7ffdda337fd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qpushbutton.h @@ -0,0 +1,72 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QPUSHBUTTON_H +#define QPUSHBUTTON_H + +#include +#include + +QT_REQUIRE_CONFIG(pushbutton); + +QT_BEGIN_NAMESPACE + + +class QPushButtonPrivate; +class QMenu; +class QStyleOptionButton; + +class Q_WIDGETS_EXPORT QPushButton : public QAbstractButton +{ + Q_OBJECT + + Q_PROPERTY(bool autoDefault READ autoDefault WRITE setAutoDefault) + Q_PROPERTY(bool default READ isDefault WRITE setDefault) + Q_PROPERTY(bool flat READ isFlat WRITE setFlat) + +public: + explicit QPushButton(QWidget *parent = nullptr); + explicit QPushButton(const QString &text, QWidget *parent = nullptr); + QPushButton(const QIcon& icon, const QString &text, QWidget *parent = nullptr); + ~QPushButton(); + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + bool autoDefault() const; + void setAutoDefault(bool); + bool isDefault() const; + void setDefault(bool); + +#if QT_CONFIG(menu) + void setMenu(QMenu* menu); + QMenu* menu() const; +#endif + + void setFlat(bool); + bool isFlat() const; + +public Q_SLOTS: +#if QT_CONFIG(menu) + void showMenu(); +#endif + +protected: + bool event(QEvent *e) override; + void paintEvent(QPaintEvent *) override; + void keyPressEvent(QKeyEvent *) override; + void focusInEvent(QFocusEvent *) override; + void focusOutEvent(QFocusEvent *) override; + void mouseMoveEvent(QMouseEvent *) override; + virtual void initStyleOption(QStyleOptionButton *option) const; + bool hitButton(const QPoint &pos) const override; + QPushButton(QPushButtonPrivate &dd, QWidget* parent = nullptr); + +private: + Q_DISABLE_COPY(QPushButton) + Q_DECLARE_PRIVATE(QPushButton) +}; + +QT_END_NAMESPACE + +#endif // QPUSHBUTTON_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qradiobutton.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qradiobutton.h new file mode 100644 index 0000000000000000000000000000000000000000..561f3738fe65082bcfa5e6b85491f0166ef49106 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qradiobutton.h @@ -0,0 +1,46 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QRADIOBUTTON_H +#define QRADIOBUTTON_H + +#include +#include + +QT_REQUIRE_CONFIG(radiobutton); + +QT_BEGIN_NAMESPACE + + +class QRadioButtonPrivate; +class QStyleOptionButton; + +class Q_WIDGETS_EXPORT QRadioButton : public QAbstractButton +{ + Q_OBJECT + +public: + explicit QRadioButton(QWidget *parent = nullptr); + explicit QRadioButton(const QString &text, QWidget *parent = nullptr); + ~QRadioButton(); + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + +protected: + bool event(QEvent *e) override; + bool hitButton(const QPoint &) const override; + void paintEvent(QPaintEvent *) override; + void mouseMoveEvent(QMouseEvent *) override; + virtual void initStyleOption(QStyleOptionButton *button) const; + + +private: + Q_DECLARE_PRIVATE(QRadioButton) + Q_DISABLE_COPY(QRadioButton) + friend class QAccessibleButton; +}; + +QT_END_NAMESPACE + +#endif // QRADIOBUTTON_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qrhiwidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qrhiwidget.h new file mode 100644 index 0000000000000000000000000000000000000000..24e62c71ac1468b59cc21aadb319bcbe80722439 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qrhiwidget.h @@ -0,0 +1,101 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QRHIWIDGET_H +#define QRHIWIDGET_H + +#include + +QT_BEGIN_NAMESPACE + +class QRhiWidgetPrivate; +class QRhi; +class QRhiTexture; +class QRhiRenderBuffer; +class QRhiRenderTarget; +class QRhiCommandBuffer; + +class Q_WIDGETS_EXPORT QRhiWidget : public QWidget +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QRhiWidget) + Q_PROPERTY(int sampleCount READ sampleCount WRITE setSampleCount NOTIFY sampleCountChanged) + Q_PROPERTY(TextureFormat colorBufferFormat READ colorBufferFormat WRITE setColorBufferFormat NOTIFY colorBufferFormatChanged) + Q_PROPERTY(QSize fixedColorBufferSize READ fixedColorBufferSize WRITE setFixedColorBufferSize NOTIFY fixedColorBufferSizeChanged) + Q_PROPERTY(bool mirrorVertically READ isMirrorVerticallyEnabled WRITE setMirrorVertically NOTIFY mirrorVerticallyChanged) + QDOC_PROPERTY(bool autoRenderTarget READ isAutoRenderTargetEnabled WRITE setAutoRenderTarget) + +public: + explicit QRhiWidget(QWidget *parent = nullptr, Qt::WindowFlags f = {}); + ~QRhiWidget() override; + + enum class Api { + Null, + OpenGL, + Metal, + Vulkan, + Direct3D11, + Direct3D12, + }; + Q_ENUM(Api) + + enum class TextureFormat { + RGBA8, + RGBA16F, + RGBA32F, + RGB10A2, + }; + Q_ENUM(TextureFormat) + + Api api() const; + void setApi(Api api); + + bool isDebugLayerEnabled() const; + void setDebugLayerEnabled(bool enable); + + int sampleCount() const; + void setSampleCount(int samples); + + TextureFormat colorBufferFormat() const; + void setColorBufferFormat(TextureFormat format); + + QSize fixedColorBufferSize() const; + void setFixedColorBufferSize(QSize pixelSize); + void setFixedColorBufferSize(int w, int h) { setFixedColorBufferSize(QSize(w, h)); } + + bool isMirrorVerticallyEnabled() const; + void setMirrorVertically(bool enabled); + + QImage grabFramebuffer() const; + +protected: + bool isAutoRenderTargetEnabled() const; + void setAutoRenderTarget(bool enabled); + + virtual void initialize(QRhiCommandBuffer *cb); + virtual void render(QRhiCommandBuffer *cb); + virtual void releaseResources(); + + QRhi *rhi() const; + QRhiTexture *colorTexture() const; + QRhiRenderBuffer *msaaColorBuffer() const; + QRhiTexture *resolveTexture() const; + QRhiRenderBuffer *depthStencilBuffer() const; + QRhiRenderTarget *renderTarget() const; + + void resizeEvent(QResizeEvent *e) override; + void paintEvent(QPaintEvent *e) override; + bool event(QEvent *e) override; + +Q_SIGNALS: + void frameSubmitted(); + void renderFailed(); + void sampleCountChanged(int samples); + void colorBufferFormatChanged(TextureFormat format); + void fixedColorBufferSizeChanged(const QSize &pixelSize); + void mirrorVerticallyChanged(bool enabled); +}; + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qrubberband.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qrubberband.h new file mode 100644 index 0000000000000000000000000000000000000000..22791f2170db817b397ab4a366ab721ab4c7f60b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qrubberband.h @@ -0,0 +1,59 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QRUBBERBAND_H +#define QRUBBERBAND_H + +#include +#include + +QT_REQUIRE_CONFIG(rubberband); + +QT_BEGIN_NAMESPACE + +class QRubberBandPrivate; +class QStyleOptionRubberBand; + +class Q_WIDGETS_EXPORT QRubberBand : public QWidget +{ + Q_OBJECT + +public: + enum Shape { Line, Rectangle }; + explicit QRubberBand(Shape, QWidget * = nullptr); + ~QRubberBand(); + + Shape shape() const; + + void setGeometry(const QRect &r); + + inline void setGeometry(int x, int y, int w, int h); + inline void move(int x, int y); + inline void move(const QPoint &p) + { move(p.x(), p.y()); } + inline void resize(int w, int h) + { setGeometry(geometry().x(), geometry().y(), w, h); } + inline void resize(const QSize &s) + { resize(s.width(), s.height()); } + +protected: + bool event(QEvent *e) override; + void paintEvent(QPaintEvent *) override; + void changeEvent(QEvent *) override; + void showEvent(QShowEvent *) override; + void resizeEvent(QResizeEvent *) override; + void moveEvent(QMoveEvent *) override; + virtual void initStyleOption(QStyleOptionRubberBand *option) const; + +private: + Q_DECLARE_PRIVATE(QRubberBand) +}; + +inline void QRubberBand::setGeometry(int ax, int ay, int aw, int ah) +{ setGeometry(QRect(ax, ay, aw, ah)); } +inline void QRubberBand::move(int ax, int ay) +{ setGeometry(ax, ay, width(), height()); } + +QT_END_NAMESPACE + +#endif // QRUBBERBAND_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qscrollarea.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qscrollarea.h new file mode 100644 index 0000000000000000000000000000000000000000..f11a85e23deb3074d418332c7067efd72504e0c6 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qscrollarea.h @@ -0,0 +1,59 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSCROLLAREA_H +#define QSCROLLAREA_H + +#include +#include + +QT_REQUIRE_CONFIG(scrollarea); + +QT_BEGIN_NAMESPACE + +class QScrollAreaPrivate; + +class Q_WIDGETS_EXPORT QScrollArea : public QAbstractScrollArea +{ + Q_OBJECT + Q_PROPERTY(bool widgetResizable READ widgetResizable WRITE setWidgetResizable) + Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment) + +public: + explicit QScrollArea(QWidget *parent = nullptr); + ~QScrollArea(); + + QWidget *widget() const; + void setWidget(QWidget *widget); + QWidget *takeWidget(); + + bool widgetResizable() const; + void setWidgetResizable(bool resizable); + + QSize sizeHint() const override; + + bool focusNextPrevChild(bool next) override; + + Qt::Alignment alignment() const; + void setAlignment(Qt::Alignment); + + void ensureVisible(int x, int y, int xmargin = 50, int ymargin = 50); + void ensureWidgetVisible(QWidget *childWidget, int xmargin = 50, int ymargin = 50); + +protected: + QScrollArea(QScrollAreaPrivate &dd, QWidget *parent = nullptr); + bool event(QEvent *) override; + bool eventFilter(QObject *, QEvent *) override; + void resizeEvent(QResizeEvent *) override; + void scrollContentsBy(int dx, int dy) override; + + QSize viewportSizeHint() const override; + +private: + Q_DECLARE_PRIVATE(QScrollArea) + Q_DISABLE_COPY(QScrollArea) +}; + +QT_END_NAMESPACE + +#endif // QSCROLLAREA_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qscrollbar.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qscrollbar.h new file mode 100644 index 0000000000000000000000000000000000000000..5472cdb7ee011f52f25bb93db4bae65607b62c96 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qscrollbar.h @@ -0,0 +1,63 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSCROLLBAR_H +#define QSCROLLBAR_H + +#include +#include + +#include + +QT_REQUIRE_CONFIG(scrollbar); + +QT_BEGIN_NAMESPACE + +class QScrollBarPrivate; +class QStyleOptionSlider; + +class Q_WIDGETS_EXPORT QScrollBar : public QAbstractSlider +{ + Q_OBJECT +public: + explicit QScrollBar(QWidget *parent = nullptr); + explicit QScrollBar(Qt::Orientation, QWidget *parent = nullptr); + ~QScrollBar(); + + QSize sizeHint() const override; + bool event(QEvent *event) override; + +protected: +#if QT_CONFIG(wheelevent) + void wheelEvent(QWheelEvent *) override; +#endif + void paintEvent(QPaintEvent *) override; + void mousePressEvent(QMouseEvent *) override; + void mouseReleaseEvent(QMouseEvent *) override; + void mouseMoveEvent(QMouseEvent *) override; + void hideEvent(QHideEvent*) override; + void sliderChange(SliderChange change) override; +#ifndef QT_NO_CONTEXTMENU + void contextMenuEvent(QContextMenuEvent *) override; +#endif + virtual void initStyleOption(QStyleOptionSlider *option) const; + + +private: + friend class QAbstractScrollAreaPrivate; + friend Q_WIDGETS_EXPORT QStyleOptionSlider qt_qscrollbarStyleOption(QScrollBar *scrollBar); + + Q_DISABLE_COPY(QScrollBar) + Q_DECLARE_PRIVATE(QScrollBar) +#if QT_CONFIG(itemviews) + friend class QTableView; + friend class QTreeViewPrivate; + friend class QCommonListViewBase; + friend class QListModeViewBase; + friend class QAbstractItemView; +#endif +}; + +QT_END_NAMESPACE + +#endif // QSCROLLBAR_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qscroller.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qscroller.h new file mode 100644 index 0000000000000000000000000000000000000000..2f777e481fe78f77fcc3fed32c2518a70bf01443 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qscroller.h @@ -0,0 +1,116 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSCROLLER_H +#define QSCROLLER_H + +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(scroller); + +QT_BEGIN_NAMESPACE + + +class QWidget; +class QScrollerPrivate; +class QScrollerProperties; +#ifndef QT_NO_GESTURES +class QFlickGestureRecognizer; +class QMouseFlickGestureRecognizer; +#endif + +class Q_WIDGETS_EXPORT QScroller : public QObject +{ + Q_OBJECT + Q_PROPERTY(State state READ state NOTIFY stateChanged) + Q_PROPERTY(QScrollerProperties scrollerProperties READ scrollerProperties + WRITE setScrollerProperties NOTIFY scrollerPropertiesChanged) + +public: + enum State + { + Inactive, + Pressed, + Dragging, + Scrolling + }; + Q_ENUM(State) + + enum ScrollerGestureType + { + TouchGesture, + LeftMouseButtonGesture, + RightMouseButtonGesture, + MiddleMouseButtonGesture + }; + + enum Input + { + InputPress = 1, + InputMove, + InputRelease + }; + + static bool hasScroller(QObject *target); + + static QScroller *scroller(QObject *target); + static const QScroller *scroller(const QObject *target); + +#ifndef QT_NO_GESTURES + static Qt::GestureType grabGesture(QObject *target, ScrollerGestureType gestureType = TouchGesture); + static Qt::GestureType grabbedGesture(QObject *target); + static void ungrabGesture(QObject *target); +#endif + + static QList activeScrollers(); + + QObject *target() const; + + State state() const; + + bool handleInput(Input input, const QPointF &position, qint64 timestamp = 0); + + void stop(); + QPointF velocity() const; + QPointF finalPosition() const; + QPointF pixelPerMeter() const; + + QScrollerProperties scrollerProperties() const; + + void setSnapPositionsX( const QList &positions ); + void setSnapPositionsX( qreal first, qreal interval ); + void setSnapPositionsY( const QList &positions ); + void setSnapPositionsY( qreal first, qreal interval ); + +public Q_SLOTS: + void setScrollerProperties(const QScrollerProperties &prop); + void scrollTo(const QPointF &pos); + void scrollTo(const QPointF &pos, int scrollTime); + void ensureVisible(const QRectF &rect, qreal xmargin, qreal ymargin); + void ensureVisible(const QRectF &rect, qreal xmargin, qreal ymargin, int scrollTime); + void resendPrepareEvent(); + +Q_SIGNALS: + void stateChanged(QScroller::State newstate); + void scrollerPropertiesChanged(const QScrollerProperties &); + +private: + QScrollerPrivate *d_ptr; + + QScroller(QObject *target); + virtual ~QScroller(); + + Q_DISABLE_COPY(QScroller) + Q_DECLARE_PRIVATE(QScroller) + +#ifndef QT_NO_GESTURES + friend class QFlickGestureRecognizer; +#endif +}; + +QT_END_NAMESPACE + +#endif // QSCROLLER_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qscrollerproperties.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qscrollerproperties.h new file mode 100644 index 0000000000000000000000000000000000000000..2e6fe5b4c9f639dc6a8c93a30a613011b21a6e43 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qscrollerproperties.h @@ -0,0 +1,102 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSCROLLERPROPERTIES_H +#define QSCROLLERPROPERTIES_H + +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(scroller); + +QT_BEGIN_NAMESPACE + + +class QScroller; +class QScrollerPrivate; +class QScrollerPropertiesPrivate; + +class Q_WIDGETS_EXPORT QScrollerProperties +{ +public: + QScrollerProperties(); + QScrollerProperties(const QScrollerProperties &sp); + QScrollerProperties &operator=(const QScrollerProperties &sp); + virtual ~QScrollerProperties(); + + bool operator==(const QScrollerProperties &sp) const; + bool operator!=(const QScrollerProperties &sp) const; + + static void setDefaultScrollerProperties(const QScrollerProperties &sp); + static void unsetDefaultScrollerProperties(); + + enum OvershootPolicy + { + OvershootWhenScrollable, + OvershootAlwaysOff, + OvershootAlwaysOn + }; + + enum FrameRates { + Standard, + Fps60, + Fps30, + Fps20 + }; + + enum ScrollMetric + { + MousePressEventDelay, // qreal [s] + DragStartDistance, // qreal [m] + DragVelocitySmoothingFactor, // qreal [0..1/s] (complex calculation involving time) v = v_new* DASF + v_old * (1-DASF) + AxisLockThreshold, // qreal [0..1] atan(|min(dx,dy)|/|max(dx,dy)|) + + ScrollingCurve, // QEasingCurve + DecelerationFactor, // slope of the curve + + MinimumVelocity, // qreal [m/s] + MaximumVelocity, // qreal [m/s] + MaximumClickThroughVelocity, // qreal [m/s] + + AcceleratingFlickMaximumTime, // qreal [s] + AcceleratingFlickSpeedupFactor, // qreal [1..] + + SnapPositionRatio, // qreal [0..1] + SnapTime, // qreal [s] + + OvershootDragResistanceFactor, // qreal [0..1] + OvershootDragDistanceFactor, // qreal [0..1] + OvershootScrollDistanceFactor, // qreal [0..1] + OvershootScrollTime, // qreal [s] + + HorizontalOvershootPolicy, // enum OvershootPolicy + VerticalOvershootPolicy, // enum OvershootPolicy + FrameRate, // enum FrameRates + + ScrollMetricCount + }; + + QVariant scrollMetric(ScrollMetric metric) const; + void setScrollMetric(ScrollMetric metric, const QVariant &value); + +protected: + QScopedPointer d; + +private: + QScrollerProperties(QScrollerPropertiesPrivate &dd); + + friend class QScrollerPropertiesPrivate; + friend class QScroller; + friend class QScrollerPrivate; +}; + +QT_END_NAMESPACE + +QT_DECL_METATYPE_EXTERN_TAGGED(QScrollerProperties::OvershootPolicy, + QScrollerProperties__OvershootPolicy, Q_WIDGETS_EXPORT) +QT_DECL_METATYPE_EXTERN_TAGGED(QScrollerProperties::FrameRates, + QScrollerProperties__FrameRates, Q_WIDGETS_EXPORT) + +#endif // QSCROLLERPROPERTIES_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qshortcut.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qshortcut.h new file mode 100644 index 0000000000000000000000000000000000000000..6eef2ab6d74a212b0155a3897faf1640a387ab17 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qshortcut.h @@ -0,0 +1,7 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#include + +QT_BEGIN_NAMESPACE +QT_END_NAMESPACE diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qsizegrip.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qsizegrip.h new file mode 100644 index 0000000000000000000000000000000000000000..8453f1abe963544f810cfe075889d8300a7c53b0 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qsizegrip.h @@ -0,0 +1,46 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSIZEGRIP_H +#define QSIZEGRIP_H + +#include +#include + +QT_REQUIRE_CONFIG(sizegrip); + +QT_BEGIN_NAMESPACE + +class QSizeGripPrivate; +class Q_WIDGETS_EXPORT QSizeGrip : public QWidget +{ + Q_OBJECT +public: + explicit QSizeGrip(QWidget *parent); + ~QSizeGrip(); + + QSize sizeHint() const override; + void setVisible(bool) override; + +protected: + void paintEvent(QPaintEvent *) override; + void mousePressEvent(QMouseEvent *) override; + void mouseMoveEvent(QMouseEvent *) override; + void mouseReleaseEvent(QMouseEvent *mouseEvent) override; + void moveEvent(QMoveEvent *moveEvent) override; + void showEvent(QShowEvent *showEvent) override; + void hideEvent(QHideEvent *hideEvent) override; + bool eventFilter(QObject *, QEvent *) override; + bool event(QEvent *) override; + +public: + +private: + Q_DECLARE_PRIVATE(QSizeGrip) + Q_DISABLE_COPY(QSizeGrip) + Q_PRIVATE_SLOT(d_func(), void _q_showIfNotHidden()) +}; + +QT_END_NAMESPACE + +#endif // QSIZEGRIP_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qsizepolicy.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qsizepolicy.h new file mode 100644 index 0000000000000000000000000000000000000000..bfbf28ae48a54d4ac1af2baba2506cd4425abfb5 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qsizepolicy.h @@ -0,0 +1,178 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSIZEPOLICY_H +#define QSIZEPOLICY_H + +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class QVariant; +class QSizePolicy; + +class Q_WIDGETS_EXPORT QSizePolicy +{ + Q_GADGET + +public: + enum PolicyFlag { + GrowFlag = 1, + ExpandFlag = 2, + ShrinkFlag = 4, + IgnoreFlag = 8 + }; + + enum Policy { + Fixed = 0, + Minimum = GrowFlag, + Maximum = ShrinkFlag, + Preferred = GrowFlag | ShrinkFlag, + MinimumExpanding = GrowFlag | ExpandFlag, + Expanding = GrowFlag | ShrinkFlag | ExpandFlag, + Ignored = ShrinkFlag | GrowFlag | IgnoreFlag + }; + Q_ENUM(Policy) + + enum ControlType { + DefaultType = 0x00000001, + ButtonBox = 0x00000002, + CheckBox = 0x00000004, + ComboBox = 0x00000008, + Frame = 0x00000010, + GroupBox = 0x00000020, + Label = 0x00000040, + Line = 0x00000080, + LineEdit = 0x00000100, + PushButton = 0x00000200, + RadioButton = 0x00000400, + Slider = 0x00000800, + SpinBox = 0x00001000, + TabWidget = 0x00002000, + ToolButton = 0x00004000 + }; + Q_DECLARE_FLAGS(ControlTypes, ControlType) + Q_FLAG(ControlTypes) + + constexpr QSizePolicy() noexcept : data(0) { } + + constexpr QSizePolicy(Policy horizontal, Policy vertical, ControlType type = DefaultType) noexcept + : bits{0, 0, quint32(horizontal), quint32(vertical), + type == DefaultType ? 0 : toControlTypeFieldValue(type), 0, 0, 0} + {} + constexpr Policy horizontalPolicy() const noexcept { return static_cast(bits.horPolicy); } + constexpr Policy verticalPolicy() const noexcept { return static_cast(bits.verPolicy); } + ControlType controlType() const noexcept; + + constexpr void setHorizontalPolicy(Policy d) noexcept { bits.horPolicy = d; } + constexpr void setVerticalPolicy(Policy d) noexcept { bits.verPolicy = d; } + void setControlType(ControlType type) noexcept; + + // ### Qt 7: consider making Policy a QFlags and removing these casts + constexpr Qt::Orientations expandingDirections() const noexcept { + return ( (verticalPolicy() & static_cast(ExpandFlag)) ? Qt::Vertical : Qt::Orientations() ) + | ( (horizontalPolicy() & static_cast(ExpandFlag)) ? Qt::Horizontal : Qt::Orientations() ) ; + } + + constexpr void setHeightForWidth(bool b) noexcept { bits.hfw = b; } + constexpr bool hasHeightForWidth() const noexcept { return bits.hfw; } + constexpr void setWidthForHeight(bool b) noexcept { bits.wfh = b; } + constexpr bool hasWidthForHeight() const noexcept { return bits.wfh; } + + constexpr bool operator==(const QSizePolicy& s) const noexcept { return data == s.data; } + constexpr bool operator!=(const QSizePolicy& s) const noexcept { return data != s.data; } + + friend Q_DECL_CONST_FUNCTION size_t qHash(QSizePolicy key, size_t seed = 0) noexcept { return qHash(key.data, seed); } + + operator QVariant() const; + + constexpr int horizontalStretch() const noexcept { return static_cast(bits.horStretch); } + constexpr int verticalStretch() const noexcept { return static_cast(bits.verStretch); } + constexpr void setHorizontalStretch(int stretchFactor) { bits.horStretch = static_cast(qBound(0, stretchFactor, 255)); } + constexpr void setVerticalStretch(int stretchFactor) { bits.verStretch = static_cast(qBound(0, stretchFactor, 255)); } + + constexpr bool retainSizeWhenHidden() const noexcept { return bits.retainSizeWhenHidden; } + constexpr void setRetainSizeWhenHidden(bool retainSize) noexcept { bits.retainSizeWhenHidden = retainSize; } + + constexpr void transpose() noexcept { *this = transposed(); } + [[nodiscard]] constexpr QSizePolicy transposed() const noexcept + { + return QSizePolicy(bits.transposed()); + } + +private: +#ifndef QT_NO_DATASTREAM + friend Q_WIDGETS_EXPORT QDataStream &operator<<(QDataStream &, const QSizePolicy &); + friend Q_WIDGETS_EXPORT QDataStream &operator>>(QDataStream &, QSizePolicy &); +#endif + constexpr QSizePolicy(int i) noexcept : data(i) { } + struct Bits; + constexpr explicit QSizePolicy(Bits b) noexcept : bits(b) { } + + static constexpr quint32 toControlTypeFieldValue(ControlType type) noexcept + { + /* + The control type is a flag type, with values 0x1, 0x2, 0x4, 0x8, 0x10, + etc. In memory, we pack it onto the available bits (CTSize) in + setControlType(), and unpack it here. + + Example: + + 0x00000001 maps to 0 + 0x00000002 maps to 1 + 0x00000004 maps to 2 + 0x00000008 maps to 3 + etc. + */ + + return qCountTrailingZeroBits(static_cast(type)); + } + + struct Bits { + quint32 horStretch : 8; + quint32 verStretch : 8; + quint32 horPolicy : 4; + quint32 verPolicy : 4; + quint32 ctype : 5; + quint32 hfw : 1; + quint32 wfh : 1; + quint32 retainSizeWhenHidden : 1; + + constexpr Bits transposed() const noexcept + { + return {verStretch, // \ swap + horStretch, // / + verPolicy, // \ swap + horPolicy, // / + ctype, + hfw, // \ don't swap (historic behavior) + wfh, // / + retainSizeWhenHidden}; + } + }; + union { + Bits bits; + quint32 data; + }; +}; + +Q_DECLARE_TYPEINFO(QSizePolicy, Q_PRIMITIVE_TYPE); + +Q_DECLARE_OPERATORS_FOR_FLAGS(QSizePolicy::ControlTypes) +Q_DECLARE_MIXED_ENUM_OPERATORS(int, QSizePolicy::Policy, QSizePolicy::PolicyFlag) + +#ifndef QT_NO_DATASTREAM +Q_WIDGETS_EXPORT QDataStream &operator<<(QDataStream &, const QSizePolicy &); +Q_WIDGETS_EXPORT QDataStream &operator>>(QDataStream &, QSizePolicy &); +#endif + +#ifndef QT_NO_DEBUG_STREAM +Q_WIDGETS_EXPORT QDebug operator<<(QDebug dbg, const QSizePolicy &); +#endif + +QT_END_NAMESPACE + +#endif // QSIZEPOLICY_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qslider.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qslider.h new file mode 100644 index 0000000000000000000000000000000000000000..141fe2c3aab5b2b17cdd0a1ef7d3c2f79c573df1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qslider.h @@ -0,0 +1,68 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSLIDER_H +#define QSLIDER_H + +#include + +#include + +QT_REQUIRE_CONFIG(slider); + +QT_BEGIN_NAMESPACE + +class QSliderPrivate; +class QStyleOptionSlider; +class Q_WIDGETS_EXPORT QSlider : public QAbstractSlider +{ + Q_OBJECT + + Q_PROPERTY(TickPosition tickPosition READ tickPosition WRITE setTickPosition) + Q_PROPERTY(int tickInterval READ tickInterval WRITE setTickInterval) + +public: + enum TickPosition { + NoTicks = 0, + TicksAbove = 1, + TicksLeft = TicksAbove, + TicksBelow = 2, + TicksRight = TicksBelow, + TicksBothSides = 3 + }; + Q_ENUM(TickPosition) + + explicit QSlider(QWidget *parent = nullptr); + explicit QSlider(Qt::Orientation orientation, QWidget *parent = nullptr); + + ~QSlider(); + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + void setTickPosition(TickPosition position); + TickPosition tickPosition() const; + + void setTickInterval(int ti); + int tickInterval() const; + + bool event(QEvent *event) override; + +protected: + void paintEvent(QPaintEvent *ev) override; + void mousePressEvent(QMouseEvent *ev) override; + void mouseReleaseEvent(QMouseEvent *ev) override; + void mouseMoveEvent(QMouseEvent *ev) override; + virtual void initStyleOption(QStyleOptionSlider *option) const; + + +private: + friend Q_WIDGETS_EXPORT QStyleOptionSlider qt_qsliderStyleOption(QSlider *slider); + + Q_DISABLE_COPY(QSlider) + Q_DECLARE_PRIVATE(QSlider) +}; + +QT_END_NAMESPACE + +#endif // QSLIDER_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qspinbox.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qspinbox.h new file mode 100644 index 0000000000000000000000000000000000000000..a2f2b7f33f470f6b0bc6f72d07cabaf9c8b03c5c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qspinbox.h @@ -0,0 +1,144 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSPINBOX_H +#define QSPINBOX_H + +#include +#include + +QT_REQUIRE_CONFIG(spinbox); + +QT_BEGIN_NAMESPACE + +class QSpinBoxPrivate; +class Q_WIDGETS_EXPORT QSpinBox : public QAbstractSpinBox +{ + Q_OBJECT + + Q_PROPERTY(QString suffix READ suffix WRITE setSuffix) + Q_PROPERTY(QString prefix READ prefix WRITE setPrefix) + Q_PROPERTY(QString cleanText READ cleanText) + Q_PROPERTY(int minimum READ minimum WRITE setMinimum) + Q_PROPERTY(int maximum READ maximum WRITE setMaximum) + Q_PROPERTY(int singleStep READ singleStep WRITE setSingleStep) + Q_PROPERTY(StepType stepType READ stepType WRITE setStepType) + Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged USER true) + Q_PROPERTY(int displayIntegerBase READ displayIntegerBase WRITE setDisplayIntegerBase) + +public: + explicit QSpinBox(QWidget *parent = nullptr); + ~QSpinBox(); + + int value() const; + + QString prefix() const; + void setPrefix(const QString &prefix); + + QString suffix() const; + void setSuffix(const QString &suffix); + + QString cleanText() const; + + int singleStep() const; + void setSingleStep(int val); + + int minimum() const; + void setMinimum(int min); + + int maximum() const; + void setMaximum(int max); + + void setRange(int min, int max); + + StepType stepType() const; + void setStepType(StepType stepType); + + int displayIntegerBase() const; + void setDisplayIntegerBase(int base); + +protected: + bool event(QEvent *event) override; + QValidator::State validate(QString &input, int &pos) const override; + virtual int valueFromText(const QString &text) const; + virtual QString textFromValue(int val) const; + void fixup(QString &str) const override; + + +public Q_SLOTS: + void setValue(int val); + +Q_SIGNALS: + void valueChanged(int); + void textChanged(const QString &); + +private: + Q_DISABLE_COPY(QSpinBox) + Q_DECLARE_PRIVATE(QSpinBox) +}; + +class QDoubleSpinBoxPrivate; +class Q_WIDGETS_EXPORT QDoubleSpinBox : public QAbstractSpinBox +{ + Q_OBJECT + + Q_PROPERTY(QString prefix READ prefix WRITE setPrefix) + Q_PROPERTY(QString suffix READ suffix WRITE setSuffix) + Q_PROPERTY(QString cleanText READ cleanText) + Q_PROPERTY(int decimals READ decimals WRITE setDecimals) + Q_PROPERTY(double minimum READ minimum WRITE setMinimum) + Q_PROPERTY(double maximum READ maximum WRITE setMaximum) + Q_PROPERTY(double singleStep READ singleStep WRITE setSingleStep) + Q_PROPERTY(StepType stepType READ stepType WRITE setStepType) + Q_PROPERTY(double value READ value WRITE setValue NOTIFY valueChanged USER true) +public: + explicit QDoubleSpinBox(QWidget *parent = nullptr); + ~QDoubleSpinBox(); + + double value() const; + + QString prefix() const; + void setPrefix(const QString &prefix); + + QString suffix() const; + void setSuffix(const QString &suffix); + + QString cleanText() const; + + double singleStep() const; + void setSingleStep(double val); + + double minimum() const; + void setMinimum(double min); + + double maximum() const; + void setMaximum(double max); + + void setRange(double min, double max); + + StepType stepType() const; + void setStepType(StepType stepType); + + int decimals() const; + void setDecimals(int prec); + + QValidator::State validate(QString &input, int &pos) const override; + virtual double valueFromText(const QString &text) const; + virtual QString textFromValue(double val) const; + void fixup(QString &str) const override; + +public Q_SLOTS: + void setValue(double val); + +Q_SIGNALS: + void valueChanged(double); + void textChanged(const QString &); + +private: + Q_DISABLE_COPY(QDoubleSpinBox) + Q_DECLARE_PRIVATE(QDoubleSpinBox) +}; + +QT_END_NAMESPACE + +#endif // QSPINBOX_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qsplashscreen.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qsplashscreen.h new file mode 100644 index 0000000000000000000000000000000000000000..6567a6c475efec91fc93442ebb72aae77c614487 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qsplashscreen.h @@ -0,0 +1,51 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSPLASHSCREEN_H +#define QSPLASHSCREEN_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(splashscreen); + +QT_BEGIN_NAMESPACE + +class QSplashScreenPrivate; + +class Q_WIDGETS_EXPORT QSplashScreen : public QWidget +{ + Q_OBJECT +public: + explicit QSplashScreen(const QPixmap &pixmap = QPixmap(), Qt::WindowFlags f = Qt::WindowFlags()); + QSplashScreen(QScreen *screen, const QPixmap &pixmap = QPixmap(), Qt::WindowFlags f = Qt::WindowFlags()); + virtual ~QSplashScreen(); + + void setPixmap(const QPixmap &pixmap); + const QPixmap pixmap() const; + void finish(QWidget *w); + void repaint(); + QString message() const; + +public Q_SLOTS: + void showMessage(const QString &message, int alignment = Qt::AlignLeft, + const QColor &color = Qt::black); + void clearMessage(); + +Q_SIGNALS: + void messageChanged(const QString &message); + +protected: + bool event(QEvent *e) override; + virtual void drawContents(QPainter *painter); + void mousePressEvent(QMouseEvent *) override; + +private: + Q_DISABLE_COPY(QSplashScreen) + Q_DECLARE_PRIVATE(QSplashScreen) +}; + +QT_END_NAMESPACE + +#endif // QSPLASHSCREEN_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qsplitter.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qsplitter.h new file mode 100644 index 0000000000000000000000000000000000000000..c97c5b873df22f86a1b26d7ec2fef1944e93bf5a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qsplitter.h @@ -0,0 +1,129 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSPLITTER_H +#define QSPLITTER_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(splitter); + +QT_BEGIN_NAMESPACE + +class QSplitterPrivate; +class QTextStream; + +class QSplitterHandle; + +class Q_WIDGETS_EXPORT QSplitter : public QFrame +{ + Q_OBJECT + + Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation) + Q_PROPERTY(bool opaqueResize READ opaqueResize WRITE setOpaqueResize) + Q_PROPERTY(int handleWidth READ handleWidth WRITE setHandleWidth) + Q_PROPERTY(bool childrenCollapsible READ childrenCollapsible WRITE setChildrenCollapsible) + +public: + explicit QSplitter(QWidget* parent = nullptr); + explicit QSplitter(Qt::Orientation, QWidget* parent = nullptr); + ~QSplitter(); + + void addWidget(QWidget *widget); + void insertWidget(int index, QWidget *widget); + QWidget *replaceWidget(int index, QWidget *widget); + + void setOrientation(Qt::Orientation); + Qt::Orientation orientation() const; + + void setChildrenCollapsible(bool); + bool childrenCollapsible() const; + + void setCollapsible(int index, bool); + bool isCollapsible(int index) const; + void setOpaqueResize(bool opaque = true); + bool opaqueResize() const; + void refresh(); + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + QList sizes() const; + void setSizes(const QList &list); + + QByteArray saveState() const; + bool restoreState(const QByteArray &state); + + int handleWidth() const; + void setHandleWidth(int); + + int indexOf(QWidget *w) const; + QWidget *widget(int index) const; + int count() const; + + void getRange(int index, int *, int *) const; + QSplitterHandle *handle(int index) const; + + void setStretchFactor(int index, int stretch); + +Q_SIGNALS: + void splitterMoved(int pos, int index); + +protected: + virtual QSplitterHandle *createHandle(); + + void childEvent(QChildEvent *) override; + + bool event(QEvent *) override; + void resizeEvent(QResizeEvent *) override; + + void changeEvent(QEvent *) override; + void moveSplitter(int pos, int index); + void setRubberBand(int position); + int closestLegalPosition(int, int); + + +private: + Q_DISABLE_COPY(QSplitter) + Q_DECLARE_PRIVATE(QSplitter) +private: + friend class QSplitterHandle; +}; + + +class QSplitterHandlePrivate; +class Q_WIDGETS_EXPORT QSplitterHandle : public QWidget +{ + Q_OBJECT +public: + explicit QSplitterHandle(Qt::Orientation o, QSplitter *parent); + ~QSplitterHandle(); + + void setOrientation(Qt::Orientation o); + Qt::Orientation orientation() const; + bool opaqueResize() const; + QSplitter *splitter() const; + + QSize sizeHint() const override; + +protected: + void paintEvent(QPaintEvent *) override; + void mouseMoveEvent(QMouseEvent *) override; + void mousePressEvent(QMouseEvent *) override; + void mouseReleaseEvent(QMouseEvent *) override; + void resizeEvent(QResizeEvent *) override; + bool event(QEvent *) override; + + void moveSplitter(int p); + int closestLegalPosition(int p); + +private: + Q_DISABLE_COPY(QSplitterHandle) + Q_DECLARE_PRIVATE(QSplitterHandle) +}; + +QT_END_NAMESPACE + +#endif // QSPLITTER_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qstackedlayout.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstackedlayout.h new file mode 100644 index 0000000000000000000000000000000000000000..bf0680a17619ec61b6eea2d44faa0190afe5a58c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstackedlayout.h @@ -0,0 +1,71 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSTACKEDLAYOUT_H +#define QSTACKEDLAYOUT_H + +#include +#include + +QT_BEGIN_NAMESPACE + + +class QStackedLayoutPrivate; + +class Q_WIDGETS_EXPORT QStackedLayout : public QLayout +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QStackedLayout) + Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged) + Q_PROPERTY(StackingMode stackingMode READ stackingMode WRITE setStackingMode) + QDOC_PROPERTY(int count READ count) + +public: + enum StackingMode { + StackOne, + StackAll + }; + Q_ENUM(StackingMode) + + QStackedLayout(); + explicit QStackedLayout(QWidget *parent); + explicit QStackedLayout(QLayout *parentLayout); + ~QStackedLayout(); + + int addWidget(QWidget *w); + int insertWidget(int index, QWidget *w); + + QWidget *currentWidget() const; + int currentIndex() const; + using QLayout::widget; + QWidget *widget(int) const; + int count() const override; + + StackingMode stackingMode() const; + void setStackingMode(StackingMode stackingMode); + + // abstract virtual functions: + void addItem(QLayoutItem *item) override; + QSize sizeHint() const override; + QSize minimumSize() const override; + QLayoutItem *itemAt(int) const override; + QLayoutItem *takeAt(int) override; + void setGeometry(const QRect &rect) override; + bool hasHeightForWidth() const override; + int heightForWidth(int width) const override; + +Q_SIGNALS: + void widgetRemoved(int index); + void currentChanged(int index); + +public Q_SLOTS: + void setCurrentIndex(int index); + void setCurrentWidget(QWidget *w); + +private: + Q_DISABLE_COPY(QStackedLayout) +}; + +QT_END_NAMESPACE + +#endif // QSTACKEDLAYOUT_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qstackedwidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstackedwidget.h new file mode 100644 index 0000000000000000000000000000000000000000..d0cda3e59414ca937af84021e29f0528097721dc --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstackedwidget.h @@ -0,0 +1,55 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSTACKEDWIDGET_H +#define QSTACKEDWIDGET_H + +#include +#include + +QT_REQUIRE_CONFIG(stackedwidget); + +QT_BEGIN_NAMESPACE + +class QStackedWidgetPrivate; + +class Q_WIDGETS_EXPORT QStackedWidget : public QFrame +{ + Q_OBJECT + + Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged) + Q_PROPERTY(int count READ count) +public: + explicit QStackedWidget(QWidget *parent = nullptr); + ~QStackedWidget(); + + int addWidget(QWidget *w); + int insertWidget(int index, QWidget *w); + void removeWidget(QWidget *w); + + QWidget *currentWidget() const; + int currentIndex() const; + + int indexOf(const QWidget *) const; + QWidget *widget(int) const; + int count() const; + +public Q_SLOTS: + void setCurrentIndex(int index); + void setCurrentWidget(QWidget *w); + +Q_SIGNALS: + void currentChanged(int); + void widgetRemoved(int index); + +protected: + bool event(QEvent *e) override; + +private: + Q_DISABLE_COPY(QStackedWidget) + Q_DECLARE_PRIVATE(QStackedWidget) +}; + +QT_END_NAMESPACE + +#endif // QSTACKEDWIDGET_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qstatusbar.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstatusbar.h new file mode 100644 index 0000000000000000000000000000000000000000..28eff21ae151fb2ffab143775a0886e3932c067b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstatusbar.h @@ -0,0 +1,61 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSTATUSBAR_H +#define QSTATUSBAR_H + +#include +#include + +QT_REQUIRE_CONFIG(statusbar); + +QT_BEGIN_NAMESPACE + +class QStatusBarPrivate; + +class Q_WIDGETS_EXPORT QStatusBar: public QWidget +{ + Q_OBJECT + + Q_PROPERTY(bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled) + +public: + explicit QStatusBar(QWidget *parent = nullptr); + virtual ~QStatusBar(); + + void addWidget(QWidget *widget, int stretch = 0); + int insertWidget(int index, QWidget *widget, int stretch = 0); + void addPermanentWidget(QWidget *widget, int stretch = 0); + int insertPermanentWidget(int index, QWidget *widget, int stretch = 0); + void removeWidget(QWidget *widget); + + void setSizeGripEnabled(bool); + bool isSizeGripEnabled() const; + + QString currentMessage() const; + +public Q_SLOTS: + void showMessage(const QString &text, int timeout = 0); + void clearMessage(); + + +Q_SIGNALS: + void messageChanged(const QString &text); + +protected: + void showEvent(QShowEvent *) override; + void paintEvent(QPaintEvent *) override; + void resizeEvent(QResizeEvent *) override; + + void reformat(); + void hideOrShow(); + bool event(QEvent *) override; + +private: + Q_DISABLE_COPY(QStatusBar) + Q_DECLARE_PRIVATE(QStatusBar) +}; + +QT_END_NAMESPACE + +#endif // QSTATUSBAR_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyle.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyle.h new file mode 100644 index 0000000000000000000000000000000000000000..92d1a211804ffc5ab83cb46d1d6d32086ddbf87f --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyle.h @@ -0,0 +1,851 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSTYLE_H +#define QSTYLE_H + +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + + +class QAction; +class QDebug; +class QTab; +class QFontMetrics; +class QStyleHintReturn; +class QStyleOption; +class QStyleOptionComplex; +class QStylePrivate; + +class Q_WIDGETS_EXPORT QStyle : public QObject +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QStyle) + +protected: + QStyle(QStylePrivate &dd); + +public: + QStyle(); + virtual ~QStyle(); + + QString name() const; + + virtual void polish(QWidget *widget); + virtual void unpolish(QWidget *widget); + + virtual void polish(QApplication *application); + virtual void unpolish(QApplication *application); + + virtual void polish(QPalette &palette); + + virtual QRect itemTextRect(const QFontMetrics &fm, const QRect &r, + int flags, bool enabled, + const QString &text) const; + + virtual QRect itemPixmapRect(const QRect &r, int flags, const QPixmap &pixmap) const; + + virtual void drawItemText(QPainter *painter, const QRect &rect, + int flags, const QPalette &pal, bool enabled, + const QString &text, QPalette::ColorRole textRole = QPalette::NoRole) const; + + virtual void drawItemPixmap(QPainter *painter, const QRect &rect, + int alignment, const QPixmap &pixmap) const; + + virtual QPalette standardPalette() const; + + enum StateFlag { + State_None = 0x00000000, + State_Enabled = 0x00000001, + State_Raised = 0x00000002, + State_Sunken = 0x00000004, + State_Off = 0x00000008, + State_NoChange = 0x00000010, + State_On = 0x00000020, + State_DownArrow = 0x00000040, + State_Horizontal = 0x00000080, + State_HasFocus = 0x00000100, + State_Top = 0x00000200, + State_Bottom = 0x00000400, + State_FocusAtBorder = 0x00000800, + State_AutoRaise = 0x00001000, + State_MouseOver = 0x00002000, + State_UpArrow = 0x00004000, + State_Selected = 0x00008000, + State_Active = 0x00010000, + State_Window = 0x00020000, + State_Open = 0x00040000, + State_Children = 0x00080000, + State_Item = 0x00100000, + State_Sibling = 0x00200000, + State_Editing = 0x00400000, + State_KeyboardFocusChange = 0x00800000, +#ifdef QT_KEYPAD_NAVIGATION + State_HasEditFocus = 0x01000000, +#endif + State_ReadOnly = 0x02000000, + State_Small = 0x04000000, + State_Mini = 0x08000000 + }; + Q_ENUM(StateFlag) + Q_DECLARE_FLAGS(State, StateFlag) + + + enum PrimitiveElement { + PE_Frame, + PE_FrameDefaultButton, + PE_FrameDockWidget, + PE_FrameFocusRect, + PE_FrameGroupBox, + PE_FrameLineEdit, + PE_FrameMenu, + PE_FrameStatusBarItem, + PE_FrameTabWidget, + PE_FrameWindow, + PE_FrameButtonBevel, + PE_FrameButtonTool, + PE_FrameTabBarBase, + + PE_PanelButtonCommand, + PE_PanelButtonBevel, + PE_PanelButtonTool, + PE_PanelMenuBar, + PE_PanelToolBar, + PE_PanelLineEdit, + + PE_IndicatorArrowDown, + PE_IndicatorArrowLeft, + PE_IndicatorArrowRight, + PE_IndicatorArrowUp, + PE_IndicatorBranch, + PE_IndicatorButtonDropDown, + PE_IndicatorItemViewItemCheck, + PE_IndicatorCheckBox, + PE_IndicatorDockWidgetResizeHandle, + PE_IndicatorHeaderArrow, + PE_IndicatorMenuCheckMark, + PE_IndicatorProgressChunk, + PE_IndicatorRadioButton, + PE_IndicatorSpinDown, + PE_IndicatorSpinMinus, + PE_IndicatorSpinPlus, + PE_IndicatorSpinUp, + PE_IndicatorToolBarHandle, + PE_IndicatorToolBarSeparator, + PE_PanelTipLabel, + PE_IndicatorTabTear, + PE_IndicatorTabTearLeft = PE_IndicatorTabTear, + PE_PanelScrollAreaCorner, + + PE_Widget, + + PE_IndicatorColumnViewArrow, + PE_IndicatorItemViewItemDrop, + + PE_PanelItemViewItem, + PE_PanelItemViewRow, + + PE_PanelStatusBar, + + PE_IndicatorTabClose, + PE_PanelMenu, + + PE_IndicatorTabTearRight, + + // do not add any values below/greater this + PE_CustomBase = 0xf000000 + }; + Q_ENUM(PrimitiveElement) + + virtual void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p, + const QWidget *w = nullptr) const = 0; + enum ControlElement { + CE_PushButton, + CE_PushButtonBevel, + CE_PushButtonLabel, + + CE_CheckBox, + CE_CheckBoxLabel, + + CE_RadioButton, + CE_RadioButtonLabel, + + CE_TabBarTab, + CE_TabBarTabShape, + CE_TabBarTabLabel, + + CE_ProgressBar, + CE_ProgressBarGroove, + CE_ProgressBarContents, + CE_ProgressBarLabel, + + CE_MenuItem, + CE_MenuScroller, + CE_MenuVMargin, + CE_MenuHMargin, + CE_MenuTearoff, + CE_MenuEmptyArea, + + CE_MenuBarItem, + CE_MenuBarEmptyArea, + + CE_ToolButtonLabel, + + CE_Header, + CE_HeaderSection, + CE_HeaderLabel, + + CE_ToolBoxTab, + CE_SizeGrip, + CE_Splitter, + CE_RubberBand, + CE_DockWidgetTitle, + + CE_ScrollBarAddLine, + CE_ScrollBarSubLine, + CE_ScrollBarAddPage, + CE_ScrollBarSubPage, + CE_ScrollBarSlider, + CE_ScrollBarFirst, + CE_ScrollBarLast, + + CE_FocusFrame, + CE_ComboBoxLabel, + + CE_ToolBar, + CE_ToolBoxTabShape, + CE_ToolBoxTabLabel, + CE_HeaderEmptyArea, + + CE_ColumnViewGrip, + + CE_ItemViewItem, + + CE_ShapedFrame, + + // do not add any values below/greater than this + CE_CustomBase = 0xf0000000 + }; + Q_ENUM(ControlElement) + + virtual void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p, + const QWidget *w = nullptr) const = 0; + + enum SubElement { + SE_PushButtonContents, + SE_PushButtonFocusRect, + + SE_CheckBoxIndicator, + SE_CheckBoxContents, + SE_CheckBoxFocusRect, + SE_CheckBoxClickRect, + + SE_RadioButtonIndicator, + SE_RadioButtonContents, + SE_RadioButtonFocusRect, + SE_RadioButtonClickRect, + + SE_ComboBoxFocusRect, + + SE_SliderFocusRect, + + SE_ProgressBarGroove, + SE_ProgressBarContents, + SE_ProgressBarLabel, + + SE_ToolBoxTabContents, + + SE_HeaderLabel, + SE_HeaderArrow, + + SE_TabWidgetTabBar, + SE_TabWidgetTabPane, + SE_TabWidgetTabContents, + SE_TabWidgetLeftCorner, + SE_TabWidgetRightCorner, + + SE_ItemViewItemCheckIndicator, + SE_TabBarTearIndicator, + SE_TabBarTearIndicatorLeft = SE_TabBarTearIndicator, + + SE_TreeViewDisclosureItem, + + SE_LineEditContents, + SE_FrameContents, + + SE_DockWidgetCloseButton, + SE_DockWidgetFloatButton, + SE_DockWidgetTitleBarText, + SE_DockWidgetIcon, + + SE_CheckBoxLayoutItem, + SE_ComboBoxLayoutItem, + SE_DateTimeEditLayoutItem, + SE_LabelLayoutItem, + SE_ProgressBarLayoutItem, + SE_PushButtonLayoutItem, + SE_RadioButtonLayoutItem, + SE_SliderLayoutItem, + SE_SpinBoxLayoutItem, + SE_ToolButtonLayoutItem, + + SE_FrameLayoutItem, + SE_GroupBoxLayoutItem, + SE_TabWidgetLayoutItem, + + SE_ItemViewItemDecoration, + SE_ItemViewItemText, + SE_ItemViewItemFocusRect, + + SE_TabBarTabLeftButton, + SE_TabBarTabRightButton, + SE_TabBarTabText, + + SE_ShapedFrameContents, + + SE_ToolBarHandle, + + SE_TabBarScrollLeftButton, + SE_TabBarScrollRightButton, + SE_TabBarTearIndicatorRight, + + SE_PushButtonBevel, + + // do not add any values below/greater than this + SE_CustomBase = 0xf0000000 + }; + Q_ENUM(SubElement) + + virtual QRect subElementRect(SubElement subElement, const QStyleOption *option, + const QWidget *widget = nullptr) const = 0; + + + enum ComplexControl { + CC_SpinBox, + CC_ComboBox, + CC_ScrollBar, + CC_Slider, + CC_ToolButton, + CC_TitleBar, + CC_Dial, + CC_GroupBox, + CC_MdiControls, + + // do not add any values below/greater than this + CC_CustomBase = 0xf0000000 + }; + Q_ENUM(ComplexControl) + + enum SubControl { + SC_None = 0x00000000, + + SC_ScrollBarAddLine = 0x00000001, + SC_ScrollBarSubLine = 0x00000002, + SC_ScrollBarAddPage = 0x00000004, + SC_ScrollBarSubPage = 0x00000008, + SC_ScrollBarFirst = 0x00000010, + SC_ScrollBarLast = 0x00000020, + SC_ScrollBarSlider = 0x00000040, + SC_ScrollBarGroove = 0x00000080, + + SC_SpinBoxUp = 0x00000001, + SC_SpinBoxDown = 0x00000002, + SC_SpinBoxFrame = 0x00000004, + SC_SpinBoxEditField = 0x00000008, + + SC_ComboBoxFrame = 0x00000001, + SC_ComboBoxEditField = 0x00000002, + SC_ComboBoxArrow = 0x00000004, + SC_ComboBoxListBoxPopup = 0x00000008, + + SC_SliderGroove = 0x00000001, + SC_SliderHandle = 0x00000002, + SC_SliderTickmarks = 0x00000004, + + SC_ToolButton = 0x00000001, + SC_ToolButtonMenu = 0x00000002, + + SC_TitleBarSysMenu = 0x00000001, + SC_TitleBarMinButton = 0x00000002, + SC_TitleBarMaxButton = 0x00000004, + SC_TitleBarCloseButton = 0x00000008, + SC_TitleBarNormalButton = 0x00000010, + SC_TitleBarShadeButton = 0x00000020, + SC_TitleBarUnshadeButton = 0x00000040, + SC_TitleBarContextHelpButton = 0x00000080, + SC_TitleBarLabel = 0x00000100, + + SC_DialGroove = 0x00000001, + SC_DialHandle = 0x00000002, + SC_DialTickmarks = 0x00000004, + + SC_GroupBoxCheckBox = 0x00000001, + SC_GroupBoxLabel = 0x00000002, + SC_GroupBoxContents = 0x00000004, + SC_GroupBoxFrame = 0x00000008, + + SC_MdiMinButton = 0x00000001, + SC_MdiNormalButton = 0x00000002, + SC_MdiCloseButton = 0x00000004, + + SC_CustomBase = 0xf0000000, + SC_All = 0xffffffff + }; + Q_ENUM(SubControl) + Q_DECLARE_FLAGS(SubControls, SubControl) + + + virtual void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, + const QWidget *widget = nullptr) const = 0; + virtual SubControl hitTestComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, + const QPoint &pt, const QWidget *widget = nullptr) const = 0; + virtual QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, + SubControl sc, const QWidget *widget = nullptr) const = 0; + + enum PixelMetric { + PM_ButtonMargin, + PM_ButtonDefaultIndicator, + PM_MenuButtonIndicator, + PM_ButtonShiftHorizontal, + PM_ButtonShiftVertical, + + PM_DefaultFrameWidth, + PM_SpinBoxFrameWidth, + PM_ComboBoxFrameWidth, + + PM_MaximumDragDistance, + + PM_ScrollBarExtent, + PM_ScrollBarSliderMin, + + PM_SliderThickness, // total slider thickness + PM_SliderControlThickness, // thickness of the business part + PM_SliderLength, // total length of slider + PM_SliderTickmarkOffset, // + PM_SliderSpaceAvailable, // available space for slider to move + + PM_DockWidgetSeparatorExtent, + PM_DockWidgetHandleExtent, + PM_DockWidgetFrameWidth, + + PM_TabBarTabOverlap, + PM_TabBarTabHSpace, + PM_TabBarTabVSpace, + PM_TabBarBaseHeight, + PM_TabBarBaseOverlap, + + PM_ProgressBarChunkWidth, + + PM_SplitterWidth, + PM_TitleBarHeight, + + PM_MenuScrollerHeight, + PM_MenuHMargin, + PM_MenuVMargin, + PM_MenuPanelWidth, + PM_MenuTearoffHeight, + PM_MenuDesktopFrameWidth, + + PM_MenuBarPanelWidth, + PM_MenuBarItemSpacing, + PM_MenuBarVMargin, + PM_MenuBarHMargin, + + PM_IndicatorWidth, + PM_IndicatorHeight, + PM_ExclusiveIndicatorWidth, + PM_ExclusiveIndicatorHeight, + +#if QT_DEPRECATED_SINCE(6, 8) + PM_DialogButtonsSeparator Q_DECL_ENUMERATOR_DEPRECATED_X("Not used and no effect since Qt 4"), + PM_DialogButtonsButtonWidth Q_DECL_ENUMERATOR_DEPRECATED_X("Not used and no effect since Qt 4"), + PM_DialogButtonsButtonHeight Q_DECL_ENUMERATOR_DEPRECATED_X("Not used and no effect since Qt 4"), +#endif + + PM_MdiSubWindowFrameWidth = 44, + PM_MdiSubWindowMinimizedWidth, + + PM_HeaderMargin, + PM_HeaderMarkSize, + PM_HeaderGripMargin, + PM_TabBarTabShiftHorizontal, + PM_TabBarTabShiftVertical, + PM_TabBarScrollButtonWidth, + + PM_ToolBarFrameWidth, + PM_ToolBarHandleExtent, + PM_ToolBarItemSpacing, + PM_ToolBarItemMargin, + PM_ToolBarSeparatorExtent, + PM_ToolBarExtensionExtent, + + PM_SpinBoxSliderHeight, + + PM_ToolBarIconSize, + PM_ListViewIconSize, + PM_IconViewIconSize, + PM_SmallIconSize, + PM_LargeIconSize, + + PM_FocusFrameVMargin, + PM_FocusFrameHMargin, + + PM_ToolTipLabelFrameWidth, + PM_CheckBoxLabelSpacing, + PM_TabBarIconSize, + PM_SizeGripSize, + PM_DockWidgetTitleMargin, + PM_MessageBoxIconSize, + PM_ButtonIconSize, + + PM_DockWidgetTitleBarButtonMargin, + + PM_RadioButtonLabelSpacing, + PM_LayoutLeftMargin, + PM_LayoutTopMargin, + PM_LayoutRightMargin, + PM_LayoutBottomMargin, + PM_LayoutHorizontalSpacing, + PM_LayoutVerticalSpacing, + PM_TabBar_ScrollButtonOverlap, + + PM_TextCursorWidth, + + PM_TabCloseIndicatorWidth, + PM_TabCloseIndicatorHeight, + + PM_ScrollView_ScrollBarSpacing, + PM_ScrollView_ScrollBarOverlap, + PM_SubMenuOverlap, + PM_TreeViewIndentation, + + PM_HeaderDefaultSectionSizeHorizontal, + PM_HeaderDefaultSectionSizeVertical, + + PM_TitleBarButtonIconSize, + PM_TitleBarButtonSize, + + PM_LineEditIconSize, + PM_LineEditIconMargin, + // do not add any values below/greater than this + PM_CustomBase = 0xf0000000 + }; + Q_ENUM(PixelMetric) + + virtual int pixelMetric(PixelMetric metric, const QStyleOption *option = nullptr, + const QWidget *widget = nullptr) const = 0; + + enum ContentsType { + CT_PushButton, + CT_CheckBox, + CT_RadioButton, + CT_ToolButton, + CT_ComboBox, + CT_Splitter, + CT_ProgressBar, + CT_MenuItem, + CT_MenuBarItem, + CT_MenuBar, + CT_Menu, + CT_TabBarTab, + CT_Slider, + CT_ScrollBar, + CT_LineEdit, + CT_SpinBox, + CT_SizeGrip, + CT_TabWidget, + CT_DialogButtons, + CT_HeaderSection, + CT_GroupBox, + CT_MdiControls, + CT_ItemViewItem, + // do not add any values below/greater than this + CT_CustomBase = 0xf0000000 + }; + Q_ENUM(ContentsType) + + virtual QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, + const QSize &contentsSize, const QWidget *w = nullptr) const = 0; + + enum RequestSoftwareInputPanel { + RSIP_OnMouseClickAndAlreadyFocused, + RSIP_OnMouseClick + }; + Q_ENUM(RequestSoftwareInputPanel) + + enum StyleHint { + SH_EtchDisabledText, + SH_DitherDisabledText, + SH_ScrollBar_MiddleClickAbsolutePosition, + SH_ScrollBar_ScrollWhenPointerLeavesControl, + SH_TabBar_SelectMouseType, + SH_TabBar_Alignment, + SH_Header_ArrowAlignment, + SH_Slider_SnapToValue, + SH_Slider_SloppyKeyEvents, + SH_ProgressDialog_CenterCancelButton, + SH_ProgressDialog_TextLabelAlignment, + SH_PrintDialog_RightAlignButtons, + SH_MainWindow_SpaceBelowMenuBar, + SH_FontDialog_SelectAssociatedText, + SH_Menu_AllowActiveAndDisabled, + SH_Menu_SpaceActivatesItem, + SH_Menu_SubMenuPopupDelay, + SH_ScrollView_FrameOnlyAroundContents, + SH_MenuBar_AltKeyNavigation, + SH_ComboBox_ListMouseTracking, + SH_Menu_MouseTracking, + SH_MenuBar_MouseTracking, + SH_ItemView_ChangeHighlightOnFocus, + SH_Widget_ShareActivation, + SH_Workspace_FillSpaceOnMaximize, + SH_ComboBox_Popup, + SH_TitleBar_NoBorder, + SH_Slider_StopMouseOverSlider, + SH_BlinkCursorWhenTextSelected, + SH_RichText_FullWidthSelection, + SH_Menu_Scrollable, + SH_GroupBox_TextLabelVerticalAlignment, + SH_GroupBox_TextLabelColor, + SH_Menu_SloppySubMenus, + SH_Table_GridLineColor, + SH_LineEdit_PasswordCharacter, + SH_DialogButtons_DefaultButton, + SH_ToolBox_SelectedPageTitleBold, + SH_TabBar_PreferNoArrows, + SH_ScrollBar_LeftClickAbsolutePosition, + SH_ListViewExpand_SelectMouseType, + SH_UnderlineShortcut, + SH_SpinBox_AnimateButton, + SH_SpinBox_KeyPressAutoRepeatRate, + SH_SpinBox_ClickAutoRepeatRate, + SH_Menu_FillScreenWithScroll, + SH_ToolTipLabel_Opacity, + SH_DrawMenuBarSeparator, + SH_TitleBar_ModifyNotification, + SH_Button_FocusPolicy, + SH_MessageBox_UseBorderForButtonSpacing, + SH_TitleBar_AutoRaise, + SH_ToolButton_PopupDelay, + SH_FocusFrame_Mask, + SH_RubberBand_Mask, + SH_WindowFrame_Mask, + SH_SpinControls_DisableOnBounds, + SH_Dial_BackgroundRole, + SH_ComboBox_LayoutDirection, + SH_ItemView_EllipsisLocation, + SH_ItemView_ShowDecorationSelected, + SH_ItemView_ActivateItemOnSingleClick, + SH_ScrollBar_ContextMenu, + SH_ScrollBar_RollBetweenButtons, + SH_Slider_AbsoluteSetButtons, + SH_Slider_PageSetButtons, + SH_Menu_KeyboardSearch, + SH_TabBar_ElideMode, + SH_DialogButtonLayout, + SH_ComboBox_PopupFrameStyle, + SH_MessageBox_TextInteractionFlags, + SH_DialogButtonBox_ButtonsHaveIcons, + SH_MessageBox_CenterButtons, + SH_Menu_SelectionWrap, + SH_ItemView_MovementWithoutUpdatingSelection, + SH_ToolTip_Mask, + SH_FocusFrame_AboveWidget, + SH_TextControl_FocusIndicatorTextCharFormat, + SH_WizardStyle, + SH_ItemView_ArrowKeysNavigateIntoChildren, + SH_Menu_Mask, + SH_Menu_FlashTriggeredItem, + SH_Menu_FadeOutOnHide, + SH_SpinBox_ClickAutoRepeatThreshold, + SH_ItemView_PaintAlternatingRowColorsForEmptyArea, + SH_FormLayoutWrapPolicy, + SH_TabWidget_DefaultTabPosition, + SH_ToolBar_Movable, + SH_FormLayoutFieldGrowthPolicy, + SH_FormLayoutFormAlignment, + SH_FormLayoutLabelAlignment, + SH_ItemView_DrawDelegateFrame, + SH_TabBar_CloseButtonPosition, + SH_DockWidget_ButtonsHaveFrame, + SH_ToolButtonStyle, + SH_RequestSoftwareInputPanel, + SH_ScrollBar_Transient, + SH_Menu_SupportsSections, + SH_ToolTip_WakeUpDelay, + SH_ToolTip_FallAsleepDelay, + SH_Widget_Animate, + SH_Splitter_OpaqueResize, + // Whether we should use a native popup. + // Only supported for non-editable combo boxes on Mac OS X so far. + SH_ComboBox_UseNativePopup, + SH_LineEdit_PasswordMaskDelay, + SH_TabBar_ChangeCurrentDelay, + SH_Menu_SubMenuUniDirection, + SH_Menu_SubMenuUniDirectionFailCount, + SH_Menu_SubMenuSloppySelectOtherActions, + SH_Menu_SubMenuSloppyCloseTimeout, + SH_Menu_SubMenuResetWhenReenteringParent, + SH_Menu_SubMenuDontStartSloppyOnLeave, + SH_ItemView_ScrollMode, + SH_TitleBar_ShowToolTipsOnButtons, + SH_Widget_Animation_Duration, + SH_ComboBox_AllowWheelScrolling, + SH_SpinBox_ButtonsInsideFrame, + SH_SpinBox_StepModifier, + SH_TabBar_AllowWheelScrolling, + SH_Table_AlwaysDrawLeftTopGridLines, + SH_SpinBox_SelectOnStep, + // Add new style hint values here + + SH_CustomBase = 0xf0000000 + }; + Q_ENUM(StyleHint) + + virtual int styleHint(StyleHint stylehint, const QStyleOption *opt = nullptr, + const QWidget *widget = nullptr, QStyleHintReturn* returnData = nullptr) const = 0; + + enum StandardPixmap { + SP_TitleBarMenuButton, + SP_TitleBarMinButton, + SP_TitleBarMaxButton, + SP_TitleBarCloseButton, + SP_TitleBarNormalButton, + SP_TitleBarShadeButton, + SP_TitleBarUnshadeButton, + SP_TitleBarContextHelpButton, + SP_DockWidgetCloseButton, + SP_MessageBoxInformation, + SP_MessageBoxWarning, + SP_MessageBoxCritical, + SP_MessageBoxQuestion, + SP_DesktopIcon, + SP_TrashIcon, + SP_ComputerIcon, + SP_DriveFDIcon, + SP_DriveHDIcon, + SP_DriveCDIcon, + SP_DriveDVDIcon, + SP_DriveNetIcon, + SP_DirOpenIcon, + SP_DirClosedIcon, + SP_DirLinkIcon, + SP_DirLinkOpenIcon, + SP_FileIcon, + SP_FileLinkIcon, + SP_ToolBarHorizontalExtensionButton, + SP_ToolBarVerticalExtensionButton, + SP_FileDialogStart, + SP_FileDialogEnd, + SP_FileDialogToParent, + SP_FileDialogNewFolder, + SP_FileDialogDetailedView, + SP_FileDialogInfoView, + SP_FileDialogContentsView, + SP_FileDialogListView, + SP_FileDialogBack, + SP_DirIcon, + SP_DialogOkButton, + SP_DialogCancelButton, + SP_DialogHelpButton, + SP_DialogOpenButton, + SP_DialogSaveButton, + SP_DialogCloseButton, + SP_DialogApplyButton, + SP_DialogResetButton, + SP_DialogDiscardButton, + SP_DialogYesButton, + SP_DialogNoButton, + SP_ArrowUp, + SP_ArrowDown, + SP_ArrowLeft, + SP_ArrowRight, + SP_ArrowBack, + SP_ArrowForward, + SP_DirHomeIcon, + SP_CommandLink, + SP_VistaShield, + SP_BrowserReload, + SP_BrowserStop, + SP_MediaPlay, + SP_MediaStop, + SP_MediaPause, + SP_MediaSkipForward, + SP_MediaSkipBackward, + SP_MediaSeekForward, + SP_MediaSeekBackward, + SP_MediaVolume, + SP_MediaVolumeMuted, + SP_LineEditClearButton, + SP_DialogYesToAllButton, + SP_DialogNoToAllButton, + SP_DialogSaveAllButton, + SP_DialogAbortButton, + SP_DialogRetryButton, + SP_DialogIgnoreButton, + SP_RestoreDefaultsButton, + SP_TabCloseButton, + NStandardPixmap, // assertion value for sync with QPlatformTheme::StandardPixmap + // do not add any values below/greater than this + SP_CustomBase = 0xf0000000 + }; + Q_ENUM(StandardPixmap) + + virtual QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt = nullptr, + const QWidget *widget = nullptr) const = 0; + + virtual QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *option = nullptr, + const QWidget *widget = nullptr) const = 0; + + virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap, + const QStyleOption *opt) const = 0; + + static QRect visualRect(Qt::LayoutDirection direction, const QRect &boundingRect, + const QRect &logicalRect); + static QPoint visualPos(Qt::LayoutDirection direction, const QRect &boundingRect, + const QPoint &logicalPos); + static int sliderPositionFromValue(int min, int max, int val, int space, + bool upsideDown = false); + static int sliderValueFromPosition(int min, int max, int pos, int space, + bool upsideDown = false); + static Qt::Alignment visualAlignment(Qt::LayoutDirection direction, Qt::Alignment alignment); + static QRect alignedRect(Qt::LayoutDirection direction, Qt::Alignment alignment, + const QSize &size, const QRect &rectangle); + + virtual int layoutSpacing(QSizePolicy::ControlType control1, + QSizePolicy::ControlType control2, Qt::Orientation orientation, + const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const = 0; + int combinedLayoutSpacing(QSizePolicy::ControlTypes controls1, + QSizePolicy::ControlTypes controls2, Qt::Orientation orientation, + QStyleOption *option = nullptr, QWidget *widget = nullptr) const; + + const QStyle * proxy() const; + +private: + void setName(const QString &name); + +private: + Q_DISABLE_COPY(QStyle) + friend class QWidget; + friend class QWidgetPrivate; + friend class QApplication; + friend class QProxyStyle; + friend class QProxyStylePrivate; + friend class QStyleFactory; + void setProxy(QStyle *style); +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QStyle::State) +Q_DECLARE_OPERATORS_FOR_FLAGS(QStyle::SubControls) + +QT_END_NAMESPACE + +#endif // QSTYLE_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyleditemdelegate.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyleditemdelegate.h new file mode 100644 index 0000000000000000000000000000000000000000..5a8028cd3a6d7e9fa057e30b5b8d1b43e1d8de49 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyleditemdelegate.h @@ -0,0 +1,69 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSTYLEDITEMDELEGATE_H +#define QSTYLEDITEMDELEGATE_H + +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(itemviews); + +QT_BEGIN_NAMESPACE + +class QStyledItemDelegatePrivate; +class QItemEditorFactory; + +class Q_WIDGETS_EXPORT QStyledItemDelegate : public QAbstractItemDelegate +{ + Q_OBJECT + +public: + explicit QStyledItemDelegate(QObject *parent = nullptr); + ~QStyledItemDelegate(); + + // painting + void paint(QPainter *painter, + const QStyleOptionViewItem &option, const QModelIndex &index) const override; + QSize sizeHint(const QStyleOptionViewItem &option, + const QModelIndex &index) const override; + + // editing + QWidget *createEditor(QWidget *parent, + const QStyleOptionViewItem &option, + const QModelIndex &index) const override; + + void setEditorData(QWidget *editor, const QModelIndex &index) const override; + void setModelData(QWidget *editor, + QAbstractItemModel *model, + const QModelIndex &index) const override; + + void updateEditorGeometry(QWidget *editor, + const QStyleOptionViewItem &option, + const QModelIndex &index) const override; + + // editor factory + QItemEditorFactory *itemEditorFactory() const; + void setItemEditorFactory(QItemEditorFactory *factory); + + virtual QString displayText(const QVariant &value, const QLocale &locale) const; + +protected: + virtual void initStyleOption(QStyleOptionViewItem *option, + const QModelIndex &index) const; + + bool eventFilter(QObject *object, QEvent *event) override; + bool editorEvent(QEvent *event, QAbstractItemModel *model, + const QStyleOptionViewItem &option, const QModelIndex &index) override; + +private: + Q_DECLARE_PRIVATE(QStyledItemDelegate) + Q_DISABLE_COPY(QStyledItemDelegate) +}; + +QT_END_NAMESPACE + +#endif // QSTYLEDITEMDELEGATE_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qstylefactory.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstylefactory.h new file mode 100644 index 0000000000000000000000000000000000000000..3d2c1a2e546ae3c6c4a8863c6b7330d4ed030b22 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstylefactory.h @@ -0,0 +1,24 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSTYLEFACTORY_H +#define QSTYLEFACTORY_H + +#include +#include + +QT_BEGIN_NAMESPACE + + +class QStyle; + +class Q_WIDGETS_EXPORT QStyleFactory +{ +public: + static QStringList keys(); + static QStyle *create(const QString&); +}; + +QT_END_NAMESPACE + +#endif // QSTYLEFACTORY_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyleoption.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyleoption.h new file mode 100644 index 0000000000000000000000000000000000000000..175ae03d31baf10a864f52caa910f1198a549af8 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyleoption.h @@ -0,0 +1,754 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSTYLEOPTION_H +#define QSTYLEOPTION_H + +#include +#include +#include +#if QT_CONFIG(spinbox) +#include +#endif +#include +#include +#if QT_CONFIG(slider) +#include +#endif +#include +#if QT_CONFIG(tabbar) +#include +#endif +#if QT_CONFIG(tabwidget) +#include +#endif +#if QT_CONFIG(rubberband) +#include +#endif +#include +#if QT_CONFIG(itemviews) +# include +#endif + +QT_BEGIN_NAMESPACE + + +class QDebug; + +class Q_WIDGETS_EXPORT QStyleOption +{ +public: + enum OptionType { + SO_Default, SO_FocusRect, SO_Button, SO_Tab, SO_MenuItem, + SO_Frame, SO_ProgressBar, SO_ToolBox, SO_Header, + SO_DockWidget, SO_ViewItem, SO_TabWidgetFrame, + SO_TabBarBase, SO_RubberBand, SO_ToolBar, SO_GraphicsItem, + + SO_Complex = 0xf0000, SO_Slider, SO_SpinBox, SO_ToolButton, SO_ComboBox, + SO_TitleBar, SO_GroupBox, SO_SizeGrip, + + SO_CustomBase = 0xf00, + SO_ComplexCustomBase = 0xf000000 + }; + + enum StyleOptionType { Type = SO_Default }; + enum StyleOptionVersion { Version = 1 }; + + int version; + int type; + QStyle::State state; + Qt::LayoutDirection direction; + QRect rect; + QFontMetrics fontMetrics; + QPalette palette; + QObject *styleObject; + + QStyleOption(int version = QStyleOption::Version, int type = SO_Default); + QStyleOption(const QStyleOption &other); + ~QStyleOption(); + + void initFrom(const QWidget *w); + QStyleOption &operator=(const QStyleOption &other); +}; + +class Q_WIDGETS_EXPORT QStyleOptionFocusRect : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_FocusRect }; + enum StyleOptionVersion { Version = 1 }; + + QColor backgroundColor; + + QStyleOptionFocusRect(); + QStyleOptionFocusRect(const QStyleOptionFocusRect &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionFocusRect &operator=(const QStyleOptionFocusRect &) = default; + +protected: + QStyleOptionFocusRect(int version); +}; + +class Q_WIDGETS_EXPORT QStyleOptionFrame : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_Frame }; + enum StyleOptionVersion { Version = 1 }; + + int lineWidth; + int midLineWidth; + enum FrameFeature { + None = 0x00, + Flat = 0x01, + Rounded = 0x02 + }; + Q_DECLARE_FLAGS(FrameFeatures, FrameFeature) + FrameFeatures features; + QFrame::Shape frameShape; + + QStyleOptionFrame(); + QStyleOptionFrame(const QStyleOptionFrame &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionFrame &operator=(const QStyleOptionFrame &) = default; + +protected: + QStyleOptionFrame(int version); +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QStyleOptionFrame::FrameFeatures) + +#if QT_CONFIG(tabwidget) +class Q_WIDGETS_EXPORT QStyleOptionTabWidgetFrame : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_TabWidgetFrame }; + enum StyleOptionVersion { Version = 1 }; + + int lineWidth; + int midLineWidth; + QTabBar::Shape shape; + QSize tabBarSize; + QSize rightCornerWidgetSize; + QSize leftCornerWidgetSize; + QRect tabBarRect; + QRect selectedTabRect; + + QStyleOptionTabWidgetFrame(); + inline QStyleOptionTabWidgetFrame(const QStyleOptionTabWidgetFrame &other) + : QStyleOption(Version, Type) { *this = other; } + QStyleOptionTabWidgetFrame &operator=(const QStyleOptionTabWidgetFrame &) = default; + +protected: + QStyleOptionTabWidgetFrame(int version); +}; + +#endif // QT_CONFIG(tabwidget) + + +#if QT_CONFIG(tabbar) +class Q_WIDGETS_EXPORT QStyleOptionTabBarBase : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_TabBarBase }; + enum StyleOptionVersion { Version = 1 }; + + QTabBar::Shape shape; + QRect tabBarRect; + QRect selectedTabRect; + bool documentMode; + + QStyleOptionTabBarBase(); + QStyleOptionTabBarBase(const QStyleOptionTabBarBase &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionTabBarBase &operator=(const QStyleOptionTabBarBase &) = default; + +protected: + QStyleOptionTabBarBase(int version); +}; + +#endif // QT_CONFIG(tabbar) + +class Q_WIDGETS_EXPORT QStyleOptionHeader : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_Header }; + enum StyleOptionVersion { Version = 1 }; + + enum SectionPosition { Beginning, Middle, End, OnlyOneSection }; + enum SelectedPosition { NotAdjacent, NextIsSelected, PreviousIsSelected, + NextAndPreviousAreSelected }; + enum SortIndicator { None, SortUp, SortDown }; + + int section; + QString text; + Qt::Alignment textAlignment; + QIcon icon; + Qt::Alignment iconAlignment; + SectionPosition position; + SelectedPosition selectedPosition; + SortIndicator sortIndicator; + Qt::Orientation orientation; + + QStyleOptionHeader(); + QStyleOptionHeader(const QStyleOptionHeader &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionHeader &operator=(const QStyleOptionHeader &) = default; + +protected: + QStyleOptionHeader(int version); +}; + +// ### Qt7: merge with QStyleOptionHeader +class Q_WIDGETS_EXPORT QStyleOptionHeaderV2 : public QStyleOptionHeader +{ +public: + enum StyleOptionType { Type = SO_Header }; + enum StyleOptionVersion { Version = 2 }; + + QStyleOptionHeaderV2(); + QStyleOptionHeaderV2(const QStyleOptionHeaderV2 &other) : QStyleOptionHeader(Version) { *this = other; } + QStyleOptionHeaderV2 &operator=(const QStyleOptionHeaderV2 &) = default; + + Qt::TextElideMode textElideMode:2; + bool isSectionDragTarget:1; + int unused:29; + +protected: + QStyleOptionHeaderV2(int version); +}; + +class Q_WIDGETS_EXPORT QStyleOptionButton : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_Button }; + enum StyleOptionVersion { Version = 1 }; + + enum ButtonFeature { None = 0x00, Flat = 0x01, HasMenu = 0x02, DefaultButton = 0x04, + AutoDefaultButton = 0x08, CommandLinkButton = 0x10 }; + Q_DECLARE_FLAGS(ButtonFeatures, ButtonFeature) + + ButtonFeatures features; + QString text; + QIcon icon; + QSize iconSize; + + QStyleOptionButton(); + QStyleOptionButton(const QStyleOptionButton &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionButton &operator=(const QStyleOptionButton &) = default; + +protected: + QStyleOptionButton(int version); +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QStyleOptionButton::ButtonFeatures) + +#if QT_CONFIG(tabbar) +class Q_WIDGETS_EXPORT QStyleOptionTab : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_Tab }; + enum StyleOptionVersion { Version = 1 }; + + enum TabPosition { Beginning, Middle, End, OnlyOneTab, Moving }; + enum SelectedPosition { NotAdjacent, NextIsSelected, PreviousIsSelected }; + enum CornerWidget { NoCornerWidgets = 0x00, LeftCornerWidget = 0x01, + RightCornerWidget = 0x02 }; + enum TabFeature { None = 0x00, HasFrame = 0x01 }; + Q_DECLARE_FLAGS(CornerWidgets, CornerWidget) + Q_DECLARE_FLAGS(TabFeatures, TabFeature) + + QTabBar::Shape shape; + QString text; + QIcon icon; + int row; + TabPosition position; + SelectedPosition selectedPosition; + CornerWidgets cornerWidgets; + QSize iconSize; + bool documentMode; + QSize leftButtonSize; + QSize rightButtonSize; + TabFeatures features; + int tabIndex = -1; + + QStyleOptionTab(); + QStyleOptionTab(const QStyleOptionTab &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionTab &operator=(const QStyleOptionTab &) = default; + +protected: + QStyleOptionTab(int version); +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QStyleOptionTab::CornerWidgets) + +#endif // QT_CONFIG(tabbar) + + +#if QT_CONFIG(toolbar) + +class Q_WIDGETS_EXPORT QStyleOptionToolBar : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_ToolBar }; + enum StyleOptionVersion { Version = 1 }; + enum ToolBarPosition { Beginning, Middle, End, OnlyOne }; + enum ToolBarFeature { None = 0x0, Movable = 0x1 }; + Q_DECLARE_FLAGS(ToolBarFeatures, ToolBarFeature) + ToolBarPosition positionOfLine; // The toolbar line position + ToolBarPosition positionWithinLine; // The position within a toolbar + Qt::ToolBarArea toolBarArea; // The toolbar docking area + ToolBarFeatures features; + int lineWidth; + int midLineWidth; + QStyleOptionToolBar(); + QStyleOptionToolBar(const QStyleOptionToolBar &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionToolBar &operator=(const QStyleOptionToolBar &) = default; + +protected: + QStyleOptionToolBar(int version); +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QStyleOptionToolBar::ToolBarFeatures) + +#endif // QT_CONFIG(toolbar) + +class Q_WIDGETS_EXPORT QStyleOptionProgressBar : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_ProgressBar }; + enum StyleOptionVersion { Version = 1 }; + + int minimum; + int maximum; + int progress; + QString text; + Qt::Alignment textAlignment; + bool textVisible; + bool invertedAppearance; + bool bottomToTop; + + QStyleOptionProgressBar(); + QStyleOptionProgressBar(const QStyleOptionProgressBar &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionProgressBar &operator=(const QStyleOptionProgressBar &) = default; + +protected: + QStyleOptionProgressBar(int version); +}; + +class Q_WIDGETS_EXPORT QStyleOptionMenuItem : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_MenuItem }; + enum StyleOptionVersion { Version = 1 }; + + enum MenuItemType { Normal, DefaultItem, Separator, SubMenu, Scroller, TearOff, Margin, + EmptyArea }; + enum CheckType { NotCheckable, Exclusive, NonExclusive }; + + MenuItemType menuItemType; + CheckType checkType; + bool checked; + bool menuHasCheckableItems; + QRect menuRect; + QString text; + QIcon icon; + int maxIconWidth; + int reservedShortcutWidth; + QFont font; + + QStyleOptionMenuItem(); + QStyleOptionMenuItem(const QStyleOptionMenuItem &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionMenuItem &operator=(const QStyleOptionMenuItem &) = default; + +protected: + QStyleOptionMenuItem(int version); +}; + +class Q_WIDGETS_EXPORT QStyleOptionDockWidget : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_DockWidget }; + enum StyleOptionVersion { Version = 1 }; + + QString title; + bool closable; + bool movable; + bool floatable; + bool verticalTitleBar; + + QStyleOptionDockWidget(); + QStyleOptionDockWidget(const QStyleOptionDockWidget &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionDockWidget &operator=(const QStyleOptionDockWidget &) = default; + +protected: + QStyleOptionDockWidget(int version); +}; + +#if QT_CONFIG(itemviews) + +class Q_WIDGETS_EXPORT QStyleOptionViewItem : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_ViewItem }; + enum StyleOptionVersion { Version = 1 }; + + enum Position { Left, Right, Top, Bottom }; + + Qt::Alignment displayAlignment; + Qt::Alignment decorationAlignment; + Qt::TextElideMode textElideMode; + Position decorationPosition; + QSize decorationSize; + QFont font; + bool showDecorationSelected; + + enum ViewItemFeature { + None = 0x00, + WrapText = 0x01, + Alternate = 0x02, + HasCheckIndicator = 0x04, + HasDisplay = 0x08, + HasDecoration = 0x10 + }; + Q_DECLARE_FLAGS(ViewItemFeatures, ViewItemFeature) + + ViewItemFeatures features; + + QLocale locale; + const QWidget *widget; + + enum ViewItemPosition { Invalid, Beginning, Middle, End, OnlyOne }; + + QModelIndex index; + Qt::CheckState checkState; + QIcon icon; + QString text; + ViewItemPosition viewItemPosition; + QBrush backgroundBrush; + + QStyleOptionViewItem(); + QStyleOptionViewItem(const QStyleOptionViewItem &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionViewItem &operator=(const QStyleOptionViewItem &) = default; + +protected: + QStyleOptionViewItem(int version); +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QStyleOptionViewItem::ViewItemFeatures) + +#endif // QT_CONFIG(itemviews) + +class Q_WIDGETS_EXPORT QStyleOptionToolBox : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_ToolBox }; + enum StyleOptionVersion { Version = 1 }; + + QString text; + QIcon icon; + + enum TabPosition { Beginning, Middle, End, OnlyOneTab }; + enum SelectedPosition { NotAdjacent, NextIsSelected, PreviousIsSelected }; + + TabPosition position; + SelectedPosition selectedPosition; + + QStyleOptionToolBox(); + QStyleOptionToolBox(const QStyleOptionToolBox &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionToolBox &operator=(const QStyleOptionToolBox &) = default; + +protected: + QStyleOptionToolBox(int version); +}; + +#if QT_CONFIG(rubberband) +class Q_WIDGETS_EXPORT QStyleOptionRubberBand : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_RubberBand }; + enum StyleOptionVersion { Version = 1 }; + + QRubberBand::Shape shape; + bool opaque; + + QStyleOptionRubberBand(); + QStyleOptionRubberBand(const QStyleOptionRubberBand &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionRubberBand &operator=(const QStyleOptionRubberBand &) = default; + +protected: + QStyleOptionRubberBand(int version); +}; +#endif // QT_CONFIG(rubberband) + +// -------------------------- Complex style options ------------------------------- +class Q_WIDGETS_EXPORT QStyleOptionComplex : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_Complex }; + enum StyleOptionVersion { Version = 1 }; + + QStyle::SubControls subControls; + QStyle::SubControls activeSubControls; + + QStyleOptionComplex(int version = QStyleOptionComplex::Version, int type = SO_Complex); + QStyleOptionComplex(const QStyleOptionComplex &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionComplex &operator=(const QStyleOptionComplex &) = default; +}; + +#if QT_CONFIG(slider) +class Q_WIDGETS_EXPORT QStyleOptionSlider : public QStyleOptionComplex +{ +public: + enum StyleOptionType { Type = SO_Slider }; + enum StyleOptionVersion { Version = 1 }; + + Qt::Orientation orientation; + int minimum; + int maximum; + QSlider::TickPosition tickPosition; + int tickInterval; + bool upsideDown; + int sliderPosition; + int sliderValue; + int singleStep; + int pageStep; + qreal notchTarget; + bool dialWrapping; + Qt::KeyboardModifiers keyboardModifiers; + + QStyleOptionSlider(); + QStyleOptionSlider(const QStyleOptionSlider &other) : QStyleOptionComplex(Version, Type) { *this = other; } + QStyleOptionSlider &operator=(const QStyleOptionSlider &) = default; + +protected: + QStyleOptionSlider(int version); +}; +#endif // QT_CONFIG(slider) + +#if QT_CONFIG(spinbox) +class Q_WIDGETS_EXPORT QStyleOptionSpinBox : public QStyleOptionComplex +{ +public: + enum StyleOptionType { Type = SO_SpinBox }; + enum StyleOptionVersion { Version = 1 }; + + QAbstractSpinBox::ButtonSymbols buttonSymbols; + QAbstractSpinBox::StepEnabled stepEnabled; + bool frame; + + QStyleOptionSpinBox(); + QStyleOptionSpinBox(const QStyleOptionSpinBox &other) : QStyleOptionComplex(Version, Type) { *this = other; } + QStyleOptionSpinBox &operator=(const QStyleOptionSpinBox &) = default; + +protected: + QStyleOptionSpinBox(int version); +}; +#endif // QT_CONFIG(spinbox) + +class Q_WIDGETS_EXPORT QStyleOptionToolButton : public QStyleOptionComplex +{ +public: + enum StyleOptionType { Type = SO_ToolButton }; + enum StyleOptionVersion { Version = 1 }; + + enum ToolButtonFeature { None = 0x00, Arrow = 0x01, Menu = 0x04, MenuButtonPopup = Menu, PopupDelay = 0x08, + HasMenu = 0x10 }; + Q_DECLARE_FLAGS(ToolButtonFeatures, ToolButtonFeature) + + ToolButtonFeatures features; + QIcon icon; + QSize iconSize; + QString text; + Qt::ArrowType arrowType; + Qt::ToolButtonStyle toolButtonStyle; + QPoint pos; + QFont font; + + QStyleOptionToolButton(); + QStyleOptionToolButton(const QStyleOptionToolButton &other) : QStyleOptionComplex(Version, Type) { *this = other; } + QStyleOptionToolButton &operator=(const QStyleOptionToolButton &) = default; + +protected: + QStyleOptionToolButton(int version); +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QStyleOptionToolButton::ToolButtonFeatures) + +class Q_WIDGETS_EXPORT QStyleOptionComboBox : public QStyleOptionComplex +{ +public: + enum StyleOptionType { Type = SO_ComboBox }; + enum StyleOptionVersion { Version = 1 }; + + bool editable; + QRect popupRect; + bool frame; + QString currentText; + QIcon currentIcon; + QSize iconSize; + Qt::Alignment textAlignment = Qt::AlignLeft | Qt::AlignVCenter; + + QStyleOptionComboBox(); + QStyleOptionComboBox(const QStyleOptionComboBox &other) : QStyleOptionComplex(Version, Type) { *this = other; } + QStyleOptionComboBox &operator=(const QStyleOptionComboBox &) = default; + +protected: + QStyleOptionComboBox(int version); +}; + +class Q_WIDGETS_EXPORT QStyleOptionTitleBar : public QStyleOptionComplex +{ +public: + enum StyleOptionType { Type = SO_TitleBar }; + enum StyleOptionVersion { Version = 1 }; + + QString text; + QIcon icon; + int titleBarState; + Qt::WindowFlags titleBarFlags; + + QStyleOptionTitleBar(); + QStyleOptionTitleBar(const QStyleOptionTitleBar &other) : QStyleOptionComplex(Version, Type) { *this = other; } + QStyleOptionTitleBar &operator=(const QStyleOptionTitleBar &) = default; + +protected: + QStyleOptionTitleBar(int version); +}; + +class Q_WIDGETS_EXPORT QStyleOptionGroupBox : public QStyleOptionComplex +{ +public: + enum StyleOptionType { Type = SO_GroupBox }; + enum StyleOptionVersion { Version = 1 }; + + QStyleOptionFrame::FrameFeatures features; + QString text; + Qt::Alignment textAlignment; + QColor textColor; + int lineWidth; + int midLineWidth; + + QStyleOptionGroupBox(); + QStyleOptionGroupBox(const QStyleOptionGroupBox &other) : QStyleOptionComplex(Version, Type) { *this = other; } + QStyleOptionGroupBox &operator=(const QStyleOptionGroupBox &) = default; +protected: + QStyleOptionGroupBox(int version); +}; + +class Q_WIDGETS_EXPORT QStyleOptionSizeGrip : public QStyleOptionComplex +{ +public: + enum StyleOptionType { Type = SO_SizeGrip }; + enum StyleOptionVersion { Version = 1 }; + + Qt::Corner corner; + + QStyleOptionSizeGrip(); + QStyleOptionSizeGrip(const QStyleOptionSizeGrip &other) : QStyleOptionComplex(Version, Type) { *this = other; } + QStyleOptionSizeGrip &operator=(const QStyleOptionSizeGrip &) = default; +protected: + QStyleOptionSizeGrip(int version); +}; + +class Q_WIDGETS_EXPORT QStyleOptionGraphicsItem : public QStyleOption +{ +public: + enum StyleOptionType { Type = SO_GraphicsItem }; + enum StyleOptionVersion { Version = 1 }; + + QRectF exposedRect; + + QStyleOptionGraphicsItem(); + QStyleOptionGraphicsItem(const QStyleOptionGraphicsItem &other) : QStyleOption(Version, Type) { *this = other; } + QStyleOptionGraphicsItem &operator=(const QStyleOptionGraphicsItem &) = default; + static qreal levelOfDetailFromTransform(const QTransform &worldTransform); +protected: + QStyleOptionGraphicsItem(int version); +}; + +template +T qstyleoption_cast(const QStyleOption *opt) +{ + typedef typename std::remove_cv::type>::type Opt; + if (opt && opt->version >= Opt::Version && (opt->type == Opt::Type + || int(Opt::Type) == QStyleOption::SO_Default + || (int(Opt::Type) == QStyleOption::SO_Complex + && opt->type > QStyleOption::SO_Complex))) + return static_cast(opt); + return nullptr; +} + +template +T qstyleoption_cast(QStyleOption *opt) +{ + typedef typename std::remove_cv::type>::type Opt; + if (opt && opt->version >= Opt::Version && (opt->type == Opt::Type + || int(Opt::Type) == QStyleOption::SO_Default + || (int(Opt::Type) == QStyleOption::SO_Complex + && opt->type > QStyleOption::SO_Complex))) + return static_cast(opt); + return nullptr; +} + +// -------------------------- QStyleHintReturn ------------------------------- +class Q_WIDGETS_EXPORT QStyleHintReturn { +public: + enum HintReturnType { + SH_Default=0xf000, SH_Mask, SH_Variant + }; + + enum StyleOptionType { Type = SH_Default }; + enum StyleOptionVersion { Version = 1 }; + + QStyleHintReturn(int version = QStyleOption::Version, int type = SH_Default); + ~QStyleHintReturn(); + + int version; + int type; +}; + +class Q_WIDGETS_EXPORT QStyleHintReturnMask : public QStyleHintReturn { +public: + enum StyleOptionType { Type = SH_Mask }; + enum StyleOptionVersion { Version = 1 }; + + QStyleHintReturnMask(); + ~QStyleHintReturnMask(); + + QRegion region; +}; + +class Q_WIDGETS_EXPORT QStyleHintReturnVariant : public QStyleHintReturn { +public: + enum StyleOptionType { Type = SH_Variant }; + enum StyleOptionVersion { Version = 1 }; + + QStyleHintReturnVariant(); + ~QStyleHintReturnVariant(); + + QVariant variant; +}; + +template +T qstyleoption_cast(const QStyleHintReturn *hint) +{ + typedef typename std::remove_cv::type>::type Opt; + if (hint && hint->version <= Opt::Version && + (hint->type == Opt::Type || int(Opt::Type) == QStyleHintReturn::SH_Default)) + return static_cast(hint); + return nullptr; +} + +template +T qstyleoption_cast(QStyleHintReturn *hint) +{ + typedef typename std::remove_cv::type>::type Opt; + if (hint && hint->version <= Opt::Version && + (hint->type == Opt::Type || int(Opt::Type) == QStyleHintReturn::SH_Default)) + return static_cast(hint); + return nullptr; +} + +#if !defined(QT_NO_DEBUG_STREAM) +Q_WIDGETS_EXPORT QDebug operator<<(QDebug debug, const QStyleOption::OptionType &optionType); +Q_WIDGETS_EXPORT QDebug operator<<(QDebug debug, const QStyleOption &option); +#endif + +QT_END_NAMESPACE + +#endif // QSTYLEOPTION_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qstylepainter.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstylepainter.h new file mode 100644 index 0000000000000000000000000000000000000000..c4be3d25f9eb2075c14ab9d69512b6941134ca91 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstylepainter.h @@ -0,0 +1,72 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSTYLEPAINTER_H +#define QSTYLEPAINTER_H + +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + + +class QStylePainter : public QPainter +{ +public: + inline QStylePainter() : QPainter(), widget(nullptr), wstyle(nullptr) {} + inline explicit QStylePainter(QWidget *w) { begin(w, w); } + inline QStylePainter(QPaintDevice *pd, QWidget *w) { begin(pd, w); } + inline bool begin(QWidget *w) { return begin(w, w); } + inline bool begin(QPaintDevice *pd, QWidget *w) { + Q_ASSERT_X(w, "QStylePainter::QStylePainter", "Widget must be non-zero"); + widget = w; + wstyle = w->style(); + const bool res = QPainter::begin(pd); + setRenderHint(QPainter::SmoothPixmapTransform); + return res; + } + inline void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption &opt); + inline void drawControl(QStyle::ControlElement ce, const QStyleOption &opt); + inline void drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex &opt); + inline void drawItemText(const QRect &r, int flags, const QPalette &pal, bool enabled, + const QString &text, QPalette::ColorRole textRole = QPalette::NoRole); + inline void drawItemPixmap(const QRect &r, int flags, const QPixmap &pixmap); + inline QStyle *style() const { return wstyle; } + +private: + QWidget *widget; + QStyle *wstyle; + Q_DISABLE_COPY(QStylePainter) +}; + +void QStylePainter::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption &opt) +{ + wstyle->drawPrimitive(pe, &opt, this, widget); +} + +void QStylePainter::drawControl(QStyle::ControlElement ce, const QStyleOption &opt) +{ + wstyle->drawControl(ce, &opt, this, widget); +} + +void QStylePainter::drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex &opt) +{ + wstyle->drawComplexControl(cc, &opt, this, widget); +} + +void QStylePainter::drawItemText(const QRect &r, int flags, const QPalette &pal, bool enabled, + const QString &text, QPalette::ColorRole textRole) +{ + wstyle->drawItemText(this, r, flags, pal, enabled, text, textRole); +} + +void QStylePainter::drawItemPixmap(const QRect &r, int flags, const QPixmap &pixmap) +{ + wstyle->drawItemPixmap(this, r, flags, pixmap); +} + +QT_END_NAMESPACE + +#endif // QSTYLEPAINTER_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyleplugin.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyleplugin.h new file mode 100644 index 0000000000000000000000000000000000000000..79fe6bd330066ed8cb8d0bb7a226b96fabe29998 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qstyleplugin.h @@ -0,0 +1,30 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSTYLEPLUGIN_H +#define QSTYLEPLUGIN_H + +#include +#include +#include + +QT_BEGIN_NAMESPACE + + +class QStyle; + +#define QStyleFactoryInterface_iid "org.qt-project.Qt.QStyleFactoryInterface" + +class Q_WIDGETS_EXPORT QStylePlugin : public QObject +{ + Q_OBJECT +public: + explicit QStylePlugin(QObject *parent = nullptr); + ~QStylePlugin(); + + virtual QStyle *create(const QString &key) = 0; +}; + +QT_END_NAMESPACE + +#endif // QSTYLEPLUGIN_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qsystemtrayicon.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qsystemtrayicon.h new file mode 100644 index 0000000000000000000000000000000000000000..4a4943c94df1fe67a507c646b359f9d8f2fc79e1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qsystemtrayicon.h @@ -0,0 +1,92 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QSYSTEMTRAYICON_H +#define QSYSTEMTRAYICON_H + +#include +#include + +#ifndef QT_NO_SYSTEMTRAYICON + +#include + +QT_BEGIN_NAMESPACE + + +class QSystemTrayIconPrivate; + +class QMenu; +class QEvent; +class QWheelEvent; +class QMouseEvent; +class QPoint; + +class Q_WIDGETS_EXPORT QSystemTrayIcon : public QObject +{ + Q_OBJECT + Q_PROPERTY(QString toolTip READ toolTip WRITE setToolTip) + Q_PROPERTY(QIcon icon READ icon WRITE setIcon) + Q_PROPERTY(bool visible READ isVisible WRITE setVisible DESIGNABLE false) + +public: + QSystemTrayIcon(QObject *parent = nullptr); + QSystemTrayIcon(const QIcon &icon, QObject *parent = nullptr); + ~QSystemTrayIcon(); + + enum ActivationReason { + Unknown, + Context, + DoubleClick, + Trigger, + MiddleClick + }; + +#if QT_CONFIG(menu) + void setContextMenu(QMenu *menu); + QMenu *contextMenu() const; +#endif + + QIcon icon() const; + void setIcon(const QIcon &icon); + + QString toolTip() const; + void setToolTip(const QString &tip); + + static bool isSystemTrayAvailable(); + static bool supportsMessages(); + + enum MessageIcon { NoIcon, Information, Warning, Critical }; + + QRect geometry() const; + bool isVisible() const; + +public Q_SLOTS: + void setVisible(bool visible); + inline void show() { setVisible(true); } + inline void hide() { setVisible(false); } + void showMessage(const QString &title, const QString &msg, const QIcon &icon, int msecs = 10000); + void showMessage(const QString &title, const QString &msg, + QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information, int msecs = 10000); + +Q_SIGNALS: + void activated(QSystemTrayIcon::ActivationReason reason); + void messageClicked(); + +protected: + bool event(QEvent *event) override; + +private: + Q_DISABLE_COPY(QSystemTrayIcon) + Q_DECLARE_PRIVATE(QSystemTrayIcon) + + Q_PRIVATE_SLOT(d_func(), void _q_emitActivated(QPlatformSystemTrayIcon::ActivationReason)) + + friend class QSystemTrayIconSys; + friend class QBalloonTip; +}; + +QT_END_NAMESPACE + +#endif // QT_NO_SYSTEMTRAYICON +#endif // QSYSTEMTRAYICON_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtabbar.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtabbar.h new file mode 100644 index 0000000000000000000000000000000000000000..1f984724eb7ed3b71f5f0b883c1d0630bd571481 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtabbar.h @@ -0,0 +1,192 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTABBAR_H +#define QTABBAR_H + +#include +#include + +QT_REQUIRE_CONFIG(tabbar); + +QT_BEGIN_NAMESPACE + +class QIcon; +class QTabBarPrivate; +class QStyleOptionTab; + +class Q_WIDGETS_EXPORT QTabBar: public QWidget +{ + Q_OBJECT + + Q_PROPERTY(Shape shape READ shape WRITE setShape) + Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged) + Q_PROPERTY(int count READ count) + Q_PROPERTY(bool drawBase READ drawBase WRITE setDrawBase) + Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize) + Q_PROPERTY(Qt::TextElideMode elideMode READ elideMode WRITE setElideMode) + Q_PROPERTY(bool usesScrollButtons READ usesScrollButtons WRITE setUsesScrollButtons) + Q_PROPERTY(bool tabsClosable READ tabsClosable WRITE setTabsClosable) + Q_PROPERTY(SelectionBehavior selectionBehaviorOnRemove READ selectionBehaviorOnRemove + WRITE setSelectionBehaviorOnRemove) + Q_PROPERTY(bool expanding READ expanding WRITE setExpanding) + Q_PROPERTY(bool movable READ isMovable WRITE setMovable) + Q_PROPERTY(bool documentMode READ documentMode WRITE setDocumentMode) + Q_PROPERTY(bool autoHide READ autoHide WRITE setAutoHide) + Q_PROPERTY(bool changeCurrentOnDrag READ changeCurrentOnDrag WRITE setChangeCurrentOnDrag) + +public: + explicit QTabBar(QWidget *parent = nullptr); + ~QTabBar(); + + enum Shape { RoundedNorth, RoundedSouth, RoundedWest, RoundedEast, + TriangularNorth, TriangularSouth, TriangularWest, TriangularEast + }; + Q_ENUM(Shape) + + enum ButtonPosition { + LeftSide, + RightSide + }; + + enum SelectionBehavior { + SelectLeftTab, + SelectRightTab, + SelectPreviousTab + }; + + Shape shape() const; + void setShape(Shape shape); + + int addTab(const QString &text); + int addTab(const QIcon &icon, const QString &text); + + int insertTab(int index, const QString &text); + int insertTab(int index, const QIcon&icon, const QString &text); + + void removeTab(int index); + void moveTab(int from, int to); + + bool isTabEnabled(int index) const; + void setTabEnabled(int index, bool enabled); + + bool isTabVisible(int index) const; + void setTabVisible(int index, bool visible); + + QString tabText(int index) const; + void setTabText(int index, const QString &text); + + QColor tabTextColor(int index) const; + void setTabTextColor(int index, const QColor &color); + + QIcon tabIcon(int index) const; + void setTabIcon(int index, const QIcon &icon); + + Qt::TextElideMode elideMode() const; + void setElideMode(Qt::TextElideMode mode); + +#if QT_CONFIG(tooltip) + void setTabToolTip(int index, const QString &tip); + QString tabToolTip(int index) const; +#endif + +#if QT_CONFIG(whatsthis) + void setTabWhatsThis(int index, const QString &text); + QString tabWhatsThis(int index) const; +#endif + + void setTabData(int index, const QVariant &data); + QVariant tabData(int index) const; + + QRect tabRect(int index) const; + int tabAt(const QPoint &pos) const; + + int currentIndex() const; + int count() const; + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + void setDrawBase(bool drawTheBase); + bool drawBase() const; + + QSize iconSize() const; + void setIconSize(const QSize &size); + + bool usesScrollButtons() const; + void setUsesScrollButtons(bool useButtons); + + bool tabsClosable() const; + void setTabsClosable(bool closable); + + void setTabButton(int index, ButtonPosition position, QWidget *widget); + QWidget *tabButton(int index, ButtonPosition position) const; + + SelectionBehavior selectionBehaviorOnRemove() const; + void setSelectionBehaviorOnRemove(SelectionBehavior behavior); + + bool expanding() const; + void setExpanding(bool enabled); + + bool isMovable() const; + void setMovable(bool movable); + + bool documentMode() const; + void setDocumentMode(bool set); + + bool autoHide() const; + void setAutoHide(bool hide); + + bool changeCurrentOnDrag() const; + void setChangeCurrentOnDrag(bool change); + +#if QT_CONFIG(accessibility) + QString accessibleTabName(int index) const; + void setAccessibleTabName(int index, const QString &name); +#endif + +public Q_SLOTS: + void setCurrentIndex(int index); + +Q_SIGNALS: + void currentChanged(int index); + void tabCloseRequested(int index); + void tabMoved(int from, int to); + void tabBarClicked(int index); + void tabBarDoubleClicked(int index); + +protected: + virtual QSize tabSizeHint(int index) const; + virtual QSize minimumTabSizeHint(int index) const; + virtual void tabInserted(int index); + virtual void tabRemoved(int index); + virtual void tabLayoutChange(); + + bool event(QEvent *) override; + void resizeEvent(QResizeEvent *) override; + void showEvent(QShowEvent *) override; + void hideEvent(QHideEvent *) override; + void paintEvent(QPaintEvent *) override; + void mousePressEvent(QMouseEvent *) override; + void mouseMoveEvent(QMouseEvent *) override; + void mouseReleaseEvent(QMouseEvent *) override; + void mouseDoubleClickEvent(QMouseEvent *) override; +#if QT_CONFIG(wheelevent) + void wheelEvent(QWheelEvent *event) override; +#endif + void keyPressEvent(QKeyEvent *) override; + void changeEvent(QEvent *) override; + void timerEvent(QTimerEvent *event) override; + virtual void initStyleOption(QStyleOptionTab *option, int tabIndex) const; + +#if QT_CONFIG(accessibility) + friend class QAccessibleTabBar; +#endif +private: + Q_DISABLE_COPY(QTabBar) + Q_DECLARE_PRIVATE(QTabBar) +}; + +QT_END_NAMESPACE + +#endif // QTABBAR_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtableview.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtableview.h new file mode 100644 index 0000000000000000000000000000000000000000..5669087ba4b643ba539873b6c85498e57e3c7f27 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtableview.h @@ -0,0 +1,156 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTABLEVIEW_H +#define QTABLEVIEW_H + +#include +#include + +QT_REQUIRE_CONFIG(tableview); + +QT_BEGIN_NAMESPACE + +class QHeaderView; +class QTableViewPrivate; + +class Q_WIDGETS_EXPORT QTableView : public QAbstractItemView +{ + Q_OBJECT + Q_PROPERTY(bool showGrid READ showGrid WRITE setShowGrid) + Q_PROPERTY(Qt::PenStyle gridStyle READ gridStyle WRITE setGridStyle) + Q_PROPERTY(bool sortingEnabled READ isSortingEnabled WRITE setSortingEnabled) + Q_PROPERTY(bool wordWrap READ wordWrap WRITE setWordWrap) +#if QT_CONFIG(abstractbutton) + Q_PROPERTY(bool cornerButtonEnabled READ isCornerButtonEnabled WRITE setCornerButtonEnabled) +#endif + +public: + explicit QTableView(QWidget *parent = nullptr); + ~QTableView(); + + void setModel(QAbstractItemModel *model) override; + void setRootIndex(const QModelIndex &index) override; + void setSelectionModel(QItemSelectionModel *selectionModel) override; + void doItemsLayout() override; + + QHeaderView *horizontalHeader() const; + QHeaderView *verticalHeader() const; + void setHorizontalHeader(QHeaderView *header); + void setVerticalHeader(QHeaderView *header); + + int rowViewportPosition(int row) const; + int rowAt(int y) const; + + void setRowHeight(int row, int height); + int rowHeight(int row) const; + + int columnViewportPosition(int column) const; + int columnAt(int x) const; + + void setColumnWidth(int column, int width); + int columnWidth(int column) const; + + bool isRowHidden(int row) const; + void setRowHidden(int row, bool hide); + + bool isColumnHidden(int column) const; + void setColumnHidden(int column, bool hide); + + void setSortingEnabled(bool enable); + bool isSortingEnabled() const; + + bool showGrid() const; + + Qt::PenStyle gridStyle() const; + void setGridStyle(Qt::PenStyle style); + + void setWordWrap(bool on); + bool wordWrap() const; + +#if QT_CONFIG(abstractbutton) + void setCornerButtonEnabled(bool enable); + bool isCornerButtonEnabled() const; +#endif + + QRect visualRect(const QModelIndex &index) const override; + void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible) override; + QModelIndex indexAt(const QPoint &p) const override; + + void setSpan(int row, int column, int rowSpan, int columnSpan); + int rowSpan(int row, int column) const; + int columnSpan(int row, int column) const; + void clearSpans(); + + +public Q_SLOTS: + void selectRow(int row); + void selectColumn(int column); + void hideRow(int row); + void hideColumn(int column); + void showRow(int row); + void showColumn(int column); + void resizeRowToContents(int row); + void resizeRowsToContents(); + void resizeColumnToContents(int column); + void resizeColumnsToContents(); + void sortByColumn(int column, Qt::SortOrder order); + void setShowGrid(bool show); + +protected Q_SLOTS: + void rowMoved(int row, int oldIndex, int newIndex); + void columnMoved(int column, int oldIndex, int newIndex); + void rowResized(int row, int oldHeight, int newHeight); + void columnResized(int column, int oldWidth, int newWidth); + void rowCountChanged(int oldCount, int newCount); + void columnCountChanged(int oldCount, int newCount); + +protected: + QTableView(QTableViewPrivate &, QWidget *parent); + void scrollContentsBy(int dx, int dy) override; + + void initViewItemOption(QStyleOptionViewItem *option) const override; + void paintEvent(QPaintEvent *e) override; + + void timerEvent(QTimerEvent *event) override; + +#if QT_CONFIG(draganddrop) + void dropEvent(QDropEvent *event) override; +#endif + + int horizontalOffset() const override; + int verticalOffset() const override; + QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override; + + void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command) override; + QRegion visualRegionForSelection(const QItemSelection &selection) const override; + QModelIndexList selectedIndexes() const override; + + void updateGeometries() override; + + QSize viewportSizeHint() const override; + + int sizeHintForRow(int row) const override; + int sizeHintForColumn(int column) const override; + + void verticalScrollbarAction(int action) override; + void horizontalScrollbarAction(int action) override; + + bool isIndexHidden(const QModelIndex &index) const override; + + void selectionChanged(const QItemSelection &selected, + const QItemSelection &deselected) override; + void currentChanged(const QModelIndex ¤t, + const QModelIndex &previous) override; + +private: + friend class QAccessibleItemView; + int visualIndex(const QModelIndex &index) const; + + Q_DECLARE_PRIVATE(QTableView) + Q_DISABLE_COPY(QTableView) +}; + +QT_END_NAMESPACE + +#endif // QTABLEVIEW_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtablewidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtablewidget.h new file mode 100644 index 0000000000000000000000000000000000000000..aa4b8a52cabf9707be866b9f0f63b77c1d6f6718 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtablewidget.h @@ -0,0 +1,331 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTABLEWIDGET_H +#define QTABLEWIDGET_H + +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(tablewidget); + +QT_BEGIN_NAMESPACE + +class QTableWidgetSelectionRange +{ +public: + QTableWidgetSelectionRange() = default; + QTableWidgetSelectionRange(int top, int left, int bottom, int right) + : m_top(top), m_left(left), m_bottom(bottom), m_right(right) + {} + + friend bool operator==(const QTableWidgetSelectionRange &lhs, + const QTableWidgetSelectionRange &rhs) noexcept + { + return lhs.m_top == rhs.m_top && lhs.m_left == rhs.m_left && lhs.m_bottom == rhs.m_bottom + && lhs.m_right == rhs.m_right; + } + friend bool operator!=(const QTableWidgetSelectionRange &lhs, + const QTableWidgetSelectionRange &rhs) noexcept + { return !(lhs == rhs); } + + inline int topRow() const { return m_top; } + inline int bottomRow() const { return m_bottom; } + inline int leftColumn() const { return m_left; } + inline int rightColumn() const { return m_right; } + inline int rowCount() const { return m_bottom - m_top + 1; } + inline int columnCount() const { return m_right - m_left + 1; } +private: + int m_top = -1, m_left = -1, m_bottom = -2, m_right = -2; +}; + +class QTableWidget; +class QTableModel; +class QWidgetItemData; +class QTableWidgetItemPrivate; + +class Q_WIDGETS_EXPORT QTableWidgetItem +{ + friend class QTableWidget; + friend class QTableModel; +public: + enum ItemType { Type = 0, UserType = 1000 }; + explicit QTableWidgetItem(int type = Type); + explicit QTableWidgetItem(const QString &text, int type = Type); + explicit QTableWidgetItem(const QIcon &icon, const QString &text, int type = Type); + QTableWidgetItem(const QTableWidgetItem &other); + virtual ~QTableWidgetItem(); + + virtual QTableWidgetItem *clone() const; + + inline QTableWidget *tableWidget() const { return view; } + + inline int row() const; + inline int column() const; + + void setSelected(bool select); + bool isSelected() const; + + inline Qt::ItemFlags flags() const { return itemFlags; } + void setFlags(Qt::ItemFlags flags); + + inline QString text() const + { return data(Qt::DisplayRole).toString(); } + inline void setText(const QString &text); + + inline QIcon icon() const + { return qvariant_cast(data(Qt::DecorationRole)); } + inline void setIcon(const QIcon &icon); + + inline QString statusTip() const + { return data(Qt::StatusTipRole).toString(); } + inline void setStatusTip(const QString &statusTip); + +#if QT_CONFIG(tooltip) + inline QString toolTip() const + { return data(Qt::ToolTipRole).toString(); } + inline void setToolTip(const QString &toolTip); +#endif + +#if QT_CONFIG(whatsthis) + inline QString whatsThis() const + { return data(Qt::WhatsThisRole).toString(); } + inline void setWhatsThis(const QString &whatsThis); +#endif + + inline QFont font() const + { return qvariant_cast(data(Qt::FontRole)); } + inline void setFont(const QFont &font); + +#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) + inline int textAlignment() const + { return data(Qt::TextAlignmentRole).toInt(); } +#else + inline Qt::Alignment textAlignment() const + { return qvariant_cast(data(Qt::TextAlignmentRole)); } +#endif +#if QT_DEPRECATED_SINCE(6, 4) + QT_DEPRECATED_VERSION_X_6_4("Use the overload taking Qt::Alignment") + inline void setTextAlignment(int alignment) + { setData(Qt::TextAlignmentRole, alignment); } + inline void setTextAlignment(Qt::AlignmentFlag alignment) + { setData(Qt::TextAlignmentRole, QVariant::fromValue(Qt::Alignment(alignment))); } +#endif + inline void setTextAlignment(Qt::Alignment alignment) + { setData(Qt::TextAlignmentRole, QVariant::fromValue(alignment)); } + + inline QBrush background() const + { return qvariant_cast(data(Qt::BackgroundRole)); } + inline void setBackground(const QBrush &brush) + { setData(Qt::BackgroundRole, brush.style() != Qt::NoBrush ? QVariant(brush) : QVariant()); } + + inline QBrush foreground() const + { return qvariant_cast(data(Qt::ForegroundRole)); } + inline void setForeground(const QBrush &brush) + { setData(Qt::ForegroundRole, brush.style() != Qt::NoBrush ? QVariant(brush) : QVariant()); } + + inline Qt::CheckState checkState() const + { return qvariant_cast(data(Qt::CheckStateRole)); } + inline void setCheckState(Qt::CheckState state) + { setData(Qt::CheckStateRole, state); } + + inline QSize sizeHint() const + { return qvariant_cast(data(Qt::SizeHintRole)); } + inline void setSizeHint(const QSize &size) + { setData(Qt::SizeHintRole, size.isValid() ? QVariant(size) : QVariant()); } + + virtual QVariant data(int role) const; + virtual void setData(int role, const QVariant &value); + + virtual bool operator<(const QTableWidgetItem &other) const; + +#ifndef QT_NO_DATASTREAM + virtual void read(QDataStream &in); + virtual void write(QDataStream &out) const; +#endif + QTableWidgetItem &operator=(const QTableWidgetItem &other); + + inline int type() const { return rtti; } + +private: + QTableModel *tableModel() const; + +private: + int rtti; + QList values; + QTableWidget *view; + QTableWidgetItemPrivate *d; + Qt::ItemFlags itemFlags; +}; + +inline void QTableWidgetItem::setText(const QString &atext) +{ setData(Qt::DisplayRole, atext); } + +inline void QTableWidgetItem::setIcon(const QIcon &aicon) +{ setData(Qt::DecorationRole, aicon); } + +inline void QTableWidgetItem::setStatusTip(const QString &astatusTip) +{ setData(Qt::StatusTipRole, astatusTip); } + +#if QT_CONFIG(tooltip) +inline void QTableWidgetItem::setToolTip(const QString &atoolTip) +{ setData(Qt::ToolTipRole, atoolTip); } +#endif + +#if QT_CONFIG(whatsthis) +inline void QTableWidgetItem::setWhatsThis(const QString &awhatsThis) +{ setData(Qt::WhatsThisRole, awhatsThis); } +#endif + +inline void QTableWidgetItem::setFont(const QFont &afont) +{ setData(Qt::FontRole, afont); } + +#ifndef QT_NO_DATASTREAM +Q_WIDGETS_EXPORT QDataStream &operator>>(QDataStream &in, QTableWidgetItem &item); +Q_WIDGETS_EXPORT QDataStream &operator<<(QDataStream &out, const QTableWidgetItem &item); +#endif + +class QTableWidgetPrivate; + +class Q_WIDGETS_EXPORT QTableWidget : public QTableView +{ + Q_OBJECT + Q_PROPERTY(int rowCount READ rowCount WRITE setRowCount) + Q_PROPERTY(int columnCount READ columnCount WRITE setColumnCount) + + friend class QTableModel; +public: + explicit QTableWidget(QWidget *parent = nullptr); + QTableWidget(int rows, int columns, QWidget *parent = nullptr); + ~QTableWidget(); + + void setRowCount(int rows); + int rowCount() const; + + void setColumnCount(int columns); + int columnCount() const; + + int row(const QTableWidgetItem *item) const; + int column(const QTableWidgetItem *item) const; + + QTableWidgetItem *item(int row, int column) const; + void setItem(int row, int column, QTableWidgetItem *item); + QTableWidgetItem *takeItem(int row, int column); + QList items(const QMimeData *data) const; + QModelIndex indexFromItem(const QTableWidgetItem *item) const; + QTableWidgetItem *itemFromIndex(const QModelIndex &index) const; + + QTableWidgetItem *verticalHeaderItem(int row) const; + void setVerticalHeaderItem(int row, QTableWidgetItem *item); + QTableWidgetItem *takeVerticalHeaderItem(int row); + + QTableWidgetItem *horizontalHeaderItem(int column) const; + void setHorizontalHeaderItem(int column, QTableWidgetItem *item); + QTableWidgetItem *takeHorizontalHeaderItem(int column); + void setVerticalHeaderLabels(const QStringList &labels); + void setHorizontalHeaderLabels(const QStringList &labels); + + int currentRow() const; + int currentColumn() const; + QTableWidgetItem *currentItem() const; + void setCurrentItem(QTableWidgetItem *item); + void setCurrentItem(QTableWidgetItem *item, QItemSelectionModel::SelectionFlags command); + void setCurrentCell(int row, int column); + void setCurrentCell(int row, int column, QItemSelectionModel::SelectionFlags command); + + void sortItems(int column, Qt::SortOrder order = Qt::AscendingOrder); + void setSortingEnabled(bool enable); + bool isSortingEnabled() const; + + void editItem(QTableWidgetItem *item); + void openPersistentEditor(QTableWidgetItem *item); + void closePersistentEditor(QTableWidgetItem *item); + using QAbstractItemView::isPersistentEditorOpen; + bool isPersistentEditorOpen(QTableWidgetItem *item) const; + + QWidget *cellWidget(int row, int column) const; + void setCellWidget(int row, int column, QWidget *widget); + inline void removeCellWidget(int row, int column); + + void setRangeSelected(const QTableWidgetSelectionRange &range, bool select); + + QList selectedRanges() const; + QList selectedItems() const; + QList findItems(const QString &text, Qt::MatchFlags flags) const; + + int visualRow(int logicalRow) const; + int visualColumn(int logicalColumn) const; + + QTableWidgetItem *itemAt(const QPoint &p) const; + inline QTableWidgetItem *itemAt(int x, int y) const; + QRect visualItemRect(const QTableWidgetItem *item) const; + + const QTableWidgetItem *itemPrototype() const; + void setItemPrototype(const QTableWidgetItem *item); + +public Q_SLOTS: + void scrollToItem(const QTableWidgetItem *item, QAbstractItemView::ScrollHint hint = EnsureVisible); + void insertRow(int row); + void insertColumn(int column); + void removeRow(int row); + void removeColumn(int column); + void clear(); + void clearContents(); + +Q_SIGNALS: + void itemPressed(QTableWidgetItem *item); + void itemClicked(QTableWidgetItem *item); + void itemDoubleClicked(QTableWidgetItem *item); + + void itemActivated(QTableWidgetItem *item); + void itemEntered(QTableWidgetItem *item); + void itemChanged(QTableWidgetItem *item); + + void currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous); + void itemSelectionChanged(); + + void cellPressed(int row, int column); + void cellClicked(int row, int column); + void cellDoubleClicked(int row, int column); + + void cellActivated(int row, int column); + void cellEntered(int row, int column); + void cellChanged(int row, int column); + + void currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn); + +protected: + bool event(QEvent *e) override; + virtual QStringList mimeTypes() const; + virtual QMimeData *mimeData(const QList &items) const; + virtual bool dropMimeData(int row, int column, const QMimeData *data, Qt::DropAction action); + virtual Qt::DropActions supportedDropActions() const; + +protected: +#if QT_CONFIG(draganddrop) + void dropEvent(QDropEvent *event) override; +#endif +private: + void setModel(QAbstractItemModel *model) override; + + Q_DECLARE_PRIVATE(QTableWidget) + Q_DISABLE_COPY(QTableWidget) +}; + +inline void QTableWidget::removeCellWidget(int arow, int acolumn) +{ setCellWidget(arow, acolumn, nullptr); } + +inline QTableWidgetItem *QTableWidget::itemAt(int ax, int ay) const +{ return itemAt(QPoint(ax, ay)); } + +inline int QTableWidgetItem::row() const +{ return (view ? view->row(this) : -1); } + +inline int QTableWidgetItem::column() const +{ return (view ? view->column(this) : -1); } + +QT_END_NAMESPACE + +#endif // QTABLEWIDGET_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtabwidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtabwidget.h new file mode 100644 index 0000000000000000000000000000000000000000..92e2b1e43d015ded29b5888b3440de83cf515ba1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtabwidget.h @@ -0,0 +1,149 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTABWIDGET_H +#define QTABWIDGET_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(tabwidget); + +QT_BEGIN_NAMESPACE + +class QTabBar; +class QTabWidgetPrivate; +class QStyleOptionTabWidgetFrame; + +class Q_WIDGETS_EXPORT QTabWidget : public QWidget +{ + Q_OBJECT + Q_PROPERTY(TabPosition tabPosition READ tabPosition WRITE setTabPosition) + Q_PROPERTY(TabShape tabShape READ tabShape WRITE setTabShape) + Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged) + Q_PROPERTY(int count READ count) + Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize) + Q_PROPERTY(Qt::TextElideMode elideMode READ elideMode WRITE setElideMode) + Q_PROPERTY(bool usesScrollButtons READ usesScrollButtons WRITE setUsesScrollButtons) + Q_PROPERTY(bool documentMode READ documentMode WRITE setDocumentMode) + Q_PROPERTY(bool tabsClosable READ tabsClosable WRITE setTabsClosable) + Q_PROPERTY(bool movable READ isMovable WRITE setMovable) + Q_PROPERTY(bool tabBarAutoHide READ tabBarAutoHide WRITE setTabBarAutoHide) + +public: + explicit QTabWidget(QWidget *parent = nullptr); + ~QTabWidget(); + + int addTab(QWidget *widget, const QString &); + int addTab(QWidget *widget, const QIcon& icon, const QString &label); + + int insertTab(int index, QWidget *widget, const QString &); + int insertTab(int index, QWidget *widget, const QIcon& icon, const QString &label); + + void removeTab(int index); + + bool isTabEnabled(int index) const; + void setTabEnabled(int index, bool enabled); + + bool isTabVisible(int index) const; + void setTabVisible(int index, bool visible); + + QString tabText(int index) const; + void setTabText(int index, const QString &text); + + QIcon tabIcon(int index) const; + void setTabIcon(int index, const QIcon & icon); + +#if QT_CONFIG(tooltip) + void setTabToolTip(int index, const QString & tip); + QString tabToolTip(int index) const; +#endif + +#if QT_CONFIG(whatsthis) + void setTabWhatsThis(int index, const QString &text); + QString tabWhatsThis(int index) const; +#endif + + int currentIndex() const; + QWidget *currentWidget() const; + QWidget *widget(int index) const; + int indexOf(const QWidget *widget) const; + int count() const; + + enum TabPosition { North, South, West, East }; + Q_ENUM(TabPosition) + TabPosition tabPosition() const; + void setTabPosition(TabPosition position); + + bool tabsClosable() const; + void setTabsClosable(bool closeable); + + bool isMovable() const; + void setMovable(bool movable); + + enum TabShape { Rounded, Triangular }; + Q_ENUM(TabShape) + TabShape tabShape() const; + void setTabShape(TabShape s); + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + int heightForWidth(int width) const override; + bool hasHeightForWidth() const override; + + void setCornerWidget(QWidget * w, Qt::Corner corner = Qt::TopRightCorner); + QWidget * cornerWidget(Qt::Corner corner = Qt::TopRightCorner) const; + + Qt::TextElideMode elideMode() const; + void setElideMode(Qt::TextElideMode mode); + + QSize iconSize() const; + void setIconSize(const QSize &size); + + bool usesScrollButtons() const; + void setUsesScrollButtons(bool useButtons); + + bool documentMode() const; + void setDocumentMode(bool set); + + bool tabBarAutoHide() const; + void setTabBarAutoHide(bool enabled); + + void clear(); + + QTabBar* tabBar() const; + +public Q_SLOTS: + void setCurrentIndex(int index); + void setCurrentWidget(QWidget *widget); + +Q_SIGNALS: + void currentChanged(int index); + void tabCloseRequested(int index); + void tabBarClicked(int index); + void tabBarDoubleClicked(int index); + +protected: + virtual void tabInserted(int index); + virtual void tabRemoved(int index); + + void showEvent(QShowEvent *) override; + void resizeEvent(QResizeEvent *) override; + void keyPressEvent(QKeyEvent *) override; + void paintEvent(QPaintEvent *) override; + void setTabBar(QTabBar *); + void changeEvent(QEvent *) override; + bool event(QEvent *) override; + virtual void initStyleOption(QStyleOptionTabWidgetFrame *option) const; + + +private: + Q_DECLARE_PRIVATE(QTabWidget) + Q_DISABLE_COPY(QTabWidget) + void setUpLayout(bool = false); +}; + +QT_END_NAMESPACE + +#endif // QTABWIDGET_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtestsupport_widgets.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtestsupport_widgets.h new file mode 100644 index 0000000000000000000000000000000000000000..e518cb511e6f34e5fd33fa4627659cb00aad087b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtestsupport_widgets.h @@ -0,0 +1,46 @@ +// Copyright (C) 2018 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTESTSUPPORT_WIDGETS_H +#define QTESTSUPPORT_WIDGETS_H + +#include +#include + +QT_BEGIN_NAMESPACE + +class QPointingDevice; +class QWidget; + +namespace QTest { + +[[nodiscard]] Q_WIDGETS_EXPORT bool qWaitForWindowActive(QWidget *widget, int timeout = 5000); +[[nodiscard]] Q_WIDGETS_EXPORT bool qWaitForWindowFocused(QWidget *widget, QDeadlineTimer timeout = std::chrono::seconds{5}); +[[nodiscard]] Q_WIDGETS_EXPORT bool qWaitForWindowExposed(QWidget *widget, int timeout = 5000); + +class Q_WIDGETS_EXPORT QTouchEventWidgetSequence : public QTouchEventSequence +{ +public: + ~QTouchEventWidgetSequence() override; + QTouchEventWidgetSequence& press(int touchId, const QPoint &pt, QWidget *widget = nullptr); + QTouchEventWidgetSequence& move(int touchId, const QPoint &pt, QWidget *widget = nullptr); + QTouchEventWidgetSequence& release(int touchId, const QPoint &pt, QWidget *widget = nullptr); + QTouchEventWidgetSequence& stationary(int touchId) override; + + bool commit(bool processEvents = true) override; + +private: + QTouchEventWidgetSequence(QWidget *widget, QPointingDevice *aDevice, bool autoCommit); + + QPoint mapToScreen(QWidget *widget, const QPoint &pt); + + QWidget *targetWidget = nullptr; + + friend QTouchEventWidgetSequence touchEvent(QWidget *widget, QPointingDevice *device, bool autoCommit); +}; + +} // namespace QTest + +QT_END_NAMESPACE + +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtextbrowser.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtextbrowser.h new file mode 100644 index 0000000000000000000000000000000000000000..e1b376c955bb5466575514598653e0ea40442fd8 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtextbrowser.h @@ -0,0 +1,89 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTEXTBROWSER_H +#define QTEXTBROWSER_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(textbrowser); + +QT_BEGIN_NAMESPACE + +class QTextBrowserPrivate; + +class Q_WIDGETS_EXPORT QTextBrowser : public QTextEdit +{ + Q_OBJECT + + Q_PROPERTY(QUrl source READ source WRITE setSource) + Q_PROPERTY(QTextDocument::ResourceType sourceType READ sourceType) + Q_OVERRIDE(bool modified SCRIPTABLE false) + Q_OVERRIDE(bool readOnly DESIGNABLE false SCRIPTABLE false) + Q_OVERRIDE(bool undoRedoEnabled DESIGNABLE false SCRIPTABLE false) + Q_PROPERTY(QStringList searchPaths READ searchPaths WRITE setSearchPaths) + Q_PROPERTY(bool openExternalLinks READ openExternalLinks WRITE setOpenExternalLinks) + Q_PROPERTY(bool openLinks READ openLinks WRITE setOpenLinks) + +public: + explicit QTextBrowser(QWidget* parent = nullptr); + virtual ~QTextBrowser(); + + QUrl source() const; + QTextDocument::ResourceType sourceType() const; + + QStringList searchPaths() const; + void setSearchPaths(const QStringList &paths); + + virtual QVariant loadResource(int type, const QUrl &name) override; + + bool isBackwardAvailable() const; + bool isForwardAvailable() const; + void clearHistory(); + QString historyTitle(int) const; + QUrl historyUrl(int) const; + int backwardHistoryCount() const; + int forwardHistoryCount() const; + + bool openExternalLinks() const; + void setOpenExternalLinks(bool open); + + bool openLinks() const; + void setOpenLinks(bool open); + +public Q_SLOTS: + void setSource(const QUrl &name, QTextDocument::ResourceType type = QTextDocument::UnknownResource); + virtual void backward(); + virtual void forward(); + virtual void home(); + virtual void reload(); + +Q_SIGNALS: + void backwardAvailable(bool); + void forwardAvailable(bool); + void historyChanged(); + void sourceChanged(const QUrl &); + void highlighted(const QUrl &); + void anchorClicked(const QUrl &); + +protected: + bool event(QEvent *e) override; + virtual void keyPressEvent(QKeyEvent *ev) override; + virtual void mouseMoveEvent(QMouseEvent *ev) override; + virtual void mousePressEvent(QMouseEvent *ev) override; + virtual void mouseReleaseEvent(QMouseEvent *ev) override; + virtual void focusOutEvent(QFocusEvent *ev) override; + virtual bool focusNextPrevChild(bool next) override; + virtual void paintEvent(QPaintEvent *e) override; + virtual void doSetSource(const QUrl &name, QTextDocument::ResourceType type = QTextDocument::UnknownResource); + +private: + Q_DISABLE_COPY(QTextBrowser) + Q_DECLARE_PRIVATE(QTextBrowser) +}; + +QT_END_NAMESPACE + +#endif // QTEXTBROWSER_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtextedit.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtextedit.h new file mode 100644 index 0000000000000000000000000000000000000000..c7f596ebfc289d99155750cd3101e072486aa456 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtextedit.h @@ -0,0 +1,292 @@ +// Copyright (C) 2019 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTEXTEDIT_H +#define QTEXTEDIT_H + +#include +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(textedit); + +QT_BEGIN_NAMESPACE + +class QStyleSheet; +class QTextDocument; +class QMenu; +class QTextEditPrivate; +class QMimeData; +class QPagedPaintDevice; +class QRegularExpression; + +class Q_WIDGETS_EXPORT QTextEdit : public QAbstractScrollArea +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QTextEdit) + Q_PROPERTY(AutoFormatting autoFormatting READ autoFormatting WRITE setAutoFormatting) + Q_PROPERTY(bool tabChangesFocus READ tabChangesFocus WRITE setTabChangesFocus) + Q_PROPERTY(QString documentTitle READ documentTitle WRITE setDocumentTitle) + Q_PROPERTY(bool undoRedoEnabled READ isUndoRedoEnabled WRITE setUndoRedoEnabled) + Q_PROPERTY(LineWrapMode lineWrapMode READ lineWrapMode WRITE setLineWrapMode) + QDOC_PROPERTY(QTextOption::WrapMode wordWrapMode READ wordWrapMode WRITE setWordWrapMode) + Q_PROPERTY(int lineWrapColumnOrWidth READ lineWrapColumnOrWidth WRITE setLineWrapColumnOrWidth) + Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly) +#if QT_CONFIG(textmarkdownreader) && QT_CONFIG(textmarkdownwriter) + Q_PROPERTY(QString markdown READ toMarkdown WRITE setMarkdown NOTIFY textChanged) +#endif +#ifndef QT_NO_TEXTHTMLPARSER + Q_PROPERTY(QString html READ toHtml WRITE setHtml NOTIFY textChanged USER true) +#endif + Q_PROPERTY(QString plainText READ toPlainText WRITE setPlainText DESIGNABLE false) + Q_PROPERTY(bool overwriteMode READ overwriteMode WRITE setOverwriteMode) + Q_PROPERTY(qreal tabStopDistance READ tabStopDistance WRITE setTabStopDistance) + Q_PROPERTY(bool acceptRichText READ acceptRichText WRITE setAcceptRichText) + Q_PROPERTY(int cursorWidth READ cursorWidth WRITE setCursorWidth) + Q_PROPERTY(Qt::TextInteractionFlags textInteractionFlags READ textInteractionFlags + WRITE setTextInteractionFlags) + Q_PROPERTY(QTextDocument *document READ document WRITE setDocument DESIGNABLE false) + Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText) +public: + enum LineWrapMode { + NoWrap, + WidgetWidth, + FixedPixelWidth, + FixedColumnWidth + }; + Q_ENUM(LineWrapMode) + + enum AutoFormattingFlag { + AutoNone = 0, + AutoBulletList = 0x00000001, + AutoAll = 0xffffffff + }; + + Q_DECLARE_FLAGS(AutoFormatting, AutoFormattingFlag) + Q_FLAG(AutoFormatting) + + explicit QTextEdit(QWidget *parent = nullptr); + explicit QTextEdit(const QString &text, QWidget *parent = nullptr); + virtual ~QTextEdit(); + + void setDocument(QTextDocument *document); + QTextDocument *document() const; + + void setPlaceholderText(const QString &placeholderText); + QString placeholderText() const; + + void setTextCursor(const QTextCursor &cursor); + QTextCursor textCursor() const; + + bool isReadOnly() const; + void setReadOnly(bool ro); + + void setTextInteractionFlags(Qt::TextInteractionFlags flags); + Qt::TextInteractionFlags textInteractionFlags() const; + + qreal fontPointSize() const; + QString fontFamily() const; + int fontWeight() const; + bool fontUnderline() const; + bool fontItalic() const; + QColor textColor() const; + QColor textBackgroundColor() const; + QFont currentFont() const; + Qt::Alignment alignment() const; + + void mergeCurrentCharFormat(const QTextCharFormat &modifier); + + void setCurrentCharFormat(const QTextCharFormat &format); + QTextCharFormat currentCharFormat() const; + + AutoFormatting autoFormatting() const; + void setAutoFormatting(AutoFormatting features); + + bool tabChangesFocus() const; + void setTabChangesFocus(bool b); + + inline void setDocumentTitle(const QString &title) + { document()->setMetaInformation(QTextDocument::DocumentTitle, title); } + inline QString documentTitle() const + { return document()->metaInformation(QTextDocument::DocumentTitle); } + + inline bool isUndoRedoEnabled() const + { return document()->isUndoRedoEnabled(); } + inline void setUndoRedoEnabled(bool enable) + { document()->setUndoRedoEnabled(enable); } + + LineWrapMode lineWrapMode() const; + void setLineWrapMode(LineWrapMode mode); + + int lineWrapColumnOrWidth() const; + void setLineWrapColumnOrWidth(int w); + + QTextOption::WrapMode wordWrapMode() const; + void setWordWrapMode(QTextOption::WrapMode policy); + + bool find(const QString &exp, QTextDocument::FindFlags options = QTextDocument::FindFlags()); +#if QT_CONFIG(regularexpression) + bool find(const QRegularExpression &exp, QTextDocument::FindFlags options = QTextDocument::FindFlags()); +#endif + + QString toPlainText() const; +#ifndef QT_NO_TEXTHTMLPARSER + QString toHtml() const; +#endif +#if QT_CONFIG(textmarkdownwriter) + QString toMarkdown(QTextDocument::MarkdownFeatures features = QTextDocument::MarkdownDialectGitHub) const; +#endif + + void ensureCursorVisible(); + + Q_INVOKABLE virtual QVariant loadResource(int type, const QUrl &name); +#ifndef QT_NO_CONTEXTMENU + QMenu *createStandardContextMenu(); + QMenu *createStandardContextMenu(const QPoint &position); +#endif + + QTextCursor cursorForPosition(const QPoint &pos) const; + QRect cursorRect(const QTextCursor &cursor) const; + QRect cursorRect() const; + + QString anchorAt(const QPoint& pos) const; + + bool overwriteMode() const; + void setOverwriteMode(bool overwrite); + + qreal tabStopDistance() const; + void setTabStopDistance(qreal distance); + + int cursorWidth() const; + void setCursorWidth(int width); + + bool acceptRichText() const; + void setAcceptRichText(bool accept); + + struct ExtraSelection + { + QTextCursor cursor; + QTextCharFormat format; + }; + void setExtraSelections(const QList &selections); + QList extraSelections() const; + + void moveCursor(QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); + + bool canPaste() const; + + void print(QPagedPaintDevice *printer) const; + + QVariant inputMethodQuery(Qt::InputMethodQuery property) const override; + Q_INVOKABLE QVariant inputMethodQuery(Qt::InputMethodQuery query, QVariant argument) const; + +public Q_SLOTS: + void setFontPointSize(qreal s); + void setFontFamily(const QString &fontFamily); + void setFontWeight(int w); + void setFontUnderline(bool b); + void setFontItalic(bool b); + void setTextColor(const QColor &c); + void setTextBackgroundColor(const QColor &c); + void setCurrentFont(const QFont &f); + void setAlignment(Qt::Alignment a); + + void setPlainText(const QString &text); +#ifndef QT_NO_TEXTHTMLPARSER + void setHtml(const QString &text); +#endif +#if QT_CONFIG(textmarkdownreader) + void setMarkdown(const QString &markdown); +#endif + void setText(const QString &text); + +#ifndef QT_NO_CLIPBOARD + void cut(); + void copy(); + void paste(); +#endif + + void undo(); + void redo(); + + void clear(); + void selectAll(); + + void insertPlainText(const QString &text); +#ifndef QT_NO_TEXTHTMLPARSER + void insertHtml(const QString &text); +#endif // QT_NO_TEXTHTMLPARSER + + void append(const QString &text); + + void scrollToAnchor(const QString &name); + + void zoomIn(int range = 1); + void zoomOut(int range = 1); + +Q_SIGNALS: + void textChanged(); + void undoAvailable(bool b); + void redoAvailable(bool b); + void currentCharFormatChanged(const QTextCharFormat &format); + void copyAvailable(bool b); + void selectionChanged(); + void cursorPositionChanged(); + +protected: + virtual bool event(QEvent *e) override; + virtual void timerEvent(QTimerEvent *e) override; + virtual void keyPressEvent(QKeyEvent *e) override; + virtual void keyReleaseEvent(QKeyEvent *e) override; + virtual void resizeEvent(QResizeEvent *e) override; + virtual void paintEvent(QPaintEvent *e) override; + virtual void mousePressEvent(QMouseEvent *e) override; + virtual void mouseMoveEvent(QMouseEvent *e) override; + virtual void mouseReleaseEvent(QMouseEvent *e) override; + virtual void mouseDoubleClickEvent(QMouseEvent *e) override; + virtual bool focusNextPrevChild(bool next) override; +#ifndef QT_NO_CONTEXTMENU + virtual void contextMenuEvent(QContextMenuEvent *e) override; +#endif +#if QT_CONFIG(draganddrop) + virtual void dragEnterEvent(QDragEnterEvent *e) override; + virtual void dragLeaveEvent(QDragLeaveEvent *e) override; + virtual void dragMoveEvent(QDragMoveEvent *e) override; + virtual void dropEvent(QDropEvent *e) override; +#endif + virtual void focusInEvent(QFocusEvent *e) override; + virtual void focusOutEvent(QFocusEvent *e) override; + virtual void showEvent(QShowEvent *) override; + virtual void changeEvent(QEvent *e) override; +#if QT_CONFIG(wheelevent) + virtual void wheelEvent(QWheelEvent *e) override; +#endif + + virtual QMimeData *createMimeDataFromSelection() const; + virtual bool canInsertFromMimeData(const QMimeData *source) const; + virtual void insertFromMimeData(const QMimeData *source); + + virtual void inputMethodEvent(QInputMethodEvent *) override; + + QTextEdit(QTextEditPrivate &dd, QWidget *parent); + + virtual void scrollContentsBy(int dx, int dy) override; + virtual void doSetTextCursor(const QTextCursor &cursor); + + void zoomInF(float range); + +private: + Q_DISABLE_COPY(QTextEdit) + friend class QTextEditControl; + friend class QTextDocument; + friend class QWidgetTextControl; +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QTextEdit::AutoFormatting) + +QT_END_NAMESPACE + +#endif // QTEXTEDIT_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtoolbar.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtoolbar.h new file mode 100644 index 0000000000000000000000000000000000000000..159481f936d5f33166db1a638f74c169131eade5 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtoolbar.h @@ -0,0 +1,126 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QDYNAMICTOOLBAR_H +#define QDYNAMICTOOLBAR_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(toolbar); + +QT_BEGIN_NAMESPACE + +class QToolBarPrivate; + +class QAction; +class QIcon; +class QMainWindow; +class QStyleOptionToolBar; + +class Q_WIDGETS_EXPORT QToolBar : public QWidget +{ + Q_OBJECT + + Q_PROPERTY(bool movable READ isMovable WRITE setMovable NOTIFY movableChanged) + Q_PROPERTY(Qt::ToolBarAreas allowedAreas READ allowedAreas WRITE setAllowedAreas + NOTIFY allowedAreasChanged) + Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation + NOTIFY orientationChanged) + Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize NOTIFY iconSizeChanged) + Q_PROPERTY(Qt::ToolButtonStyle toolButtonStyle READ toolButtonStyle WRITE setToolButtonStyle + NOTIFY toolButtonStyleChanged) + Q_PROPERTY(bool floating READ isFloating) + Q_PROPERTY(bool floatable READ isFloatable WRITE setFloatable) + +public: + explicit QToolBar(const QString &title, QWidget *parent = nullptr); + explicit QToolBar(QWidget *parent = nullptr); + ~QToolBar(); + + void setMovable(bool movable); + bool isMovable() const; + + void setAllowedAreas(Qt::ToolBarAreas areas); + Qt::ToolBarAreas allowedAreas() const; + + inline bool isAreaAllowed(Qt::ToolBarArea area) const + { return (allowedAreas() & area) == area; } + + void setOrientation(Qt::Orientation orientation); + Qt::Orientation orientation() const; + + void clear(); + + using QWidget::addAction; +#if QT_WIDGETS_REMOVED_SINCE(6, 3) + QAction *addAction(const QString &text); + QAction *addAction(const QIcon &icon, const QString &text); + QAction *addAction(const QString &text, const QObject *receiver, const char* member); + QAction *addAction(const QIcon &icon, const QString &text, + const QObject *receiver, const char* member); +#endif + + QAction *addSeparator(); + QAction *insertSeparator(QAction *before); + + QAction *addWidget(QWidget *widget); + QAction *insertWidget(QAction *before, QWidget *widget); + + QRect actionGeometry(QAction *action) const; + QAction *actionAt(const QPoint &p) const; + inline QAction *actionAt(int x, int y) const; + + QAction *toggleViewAction() const; + + QSize iconSize() const; + Qt::ToolButtonStyle toolButtonStyle() const; + + QWidget *widgetForAction(QAction *action) const; + + bool isFloatable() const; + void setFloatable(bool floatable); + bool isFloating() const; + +public Q_SLOTS: + void setIconSize(const QSize &iconSize); + void setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle); + +Q_SIGNALS: + void actionTriggered(QAction *action); + void movableChanged(bool movable); + void allowedAreasChanged(Qt::ToolBarAreas allowedAreas); + void orientationChanged(Qt::Orientation orientation); + void iconSizeChanged(const QSize &iconSize); + void toolButtonStyleChanged(Qt::ToolButtonStyle toolButtonStyle); + void topLevelChanged(bool topLevel); + void visibilityChanged(bool visible); + +protected: + void actionEvent(QActionEvent *event) override; + void changeEvent(QEvent *event) override; + void paintEvent(QPaintEvent *event) override; + bool event(QEvent *event) override; + virtual void initStyleOption(QStyleOptionToolBar *option) const; + + +private: + Q_DECLARE_PRIVATE(QToolBar) + Q_DISABLE_COPY(QToolBar) + Q_PRIVATE_SLOT(d_func(), void _q_toggleView(bool)) + Q_PRIVATE_SLOT(d_func(), void _q_updateIconSize(const QSize &)) + Q_PRIVATE_SLOT(d_func(), void _q_updateToolButtonStyle(Qt::ToolButtonStyle)) + + friend class QMainWindow; + friend class QMainWindowLayout; + friend class QToolBarLayout; + friend class QToolBarAreaLayout; +}; + +inline QAction *QToolBar::actionAt(int ax, int ay) const +{ return actionAt(QPoint(ax, ay)); } + +QT_END_NAMESPACE + +#endif // QDYNAMICTOOLBAR_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtoolbox.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtoolbox.h new file mode 100644 index 0000000000000000000000000000000000000000..8f4259506cfc7ebf1e1c83e957e9f6c09e01fe4d --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtoolbox.h @@ -0,0 +1,87 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTOOLBOX_H +#define QTOOLBOX_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(toolbox); + +QT_BEGIN_NAMESPACE + +class QToolBoxPrivate; + +class Q_WIDGETS_EXPORT QToolBox : public QFrame +{ + Q_OBJECT + Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged) + Q_PROPERTY(int count READ count) + +public: + explicit QToolBox(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags()); + ~QToolBox(); + + int addItem(QWidget *widget, const QString &text); + int addItem(QWidget *widget, const QIcon &icon, const QString &text); + int insertItem(int index, QWidget *widget, const QString &text); + int insertItem(int index, QWidget *widget, const QIcon &icon, const QString &text); + + void removeItem(int index); + + void setItemEnabled(int index, bool enabled); + bool isItemEnabled(int index) const; + + void setItemText(int index, const QString &text); + QString itemText(int index) const; + + void setItemIcon(int index, const QIcon &icon); + QIcon itemIcon(int index) const; + +#if QT_CONFIG(tooltip) + void setItemToolTip(int index, const QString &toolTip); + QString itemToolTip(int index) const; +#endif + + int currentIndex() const; + QWidget *currentWidget() const; + QWidget *widget(int index) const; + int indexOf(const QWidget *widget) const; + int count() const; + +public Q_SLOTS: + void setCurrentIndex(int index); + void setCurrentWidget(QWidget *widget); + +Q_SIGNALS: + void currentChanged(int index); + +protected: + bool event(QEvent *e) override; + virtual void itemInserted(int index); + virtual void itemRemoved(int index); + void showEvent(QShowEvent *e) override; + void changeEvent(QEvent *) override; + + +private: + Q_DECLARE_PRIVATE(QToolBox) + Q_DISABLE_COPY(QToolBox) + Q_PRIVATE_SLOT(d_func(), void _q_buttonClicked()) + Q_PRIVATE_SLOT(d_func(), void _q_widgetDestroyed(QObject*)) +}; + + +inline int QToolBox::addItem(QWidget *item, const QString &text) +{ return insertItem(-1, item, QIcon(), text); } +inline int QToolBox::addItem(QWidget *item, const QIcon &iconSet, + const QString &text) +{ return insertItem(-1, item, iconSet, text); } +inline int QToolBox::insertItem(int index, QWidget *item, const QString &text) +{ return insertItem(index, item, QIcon(), text); } + +QT_END_NAMESPACE + +#endif // QTOOLBOX_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtoolbutton.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtoolbutton.h new file mode 100644 index 0000000000000000000000000000000000000000..6d959d103a2681fbbbfea0d346a68041b621b2ec --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtoolbutton.h @@ -0,0 +1,96 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTOOLBUTTON_H +#define QTOOLBUTTON_H + +#include + +#include + +QT_REQUIRE_CONFIG(toolbutton); + +QT_BEGIN_NAMESPACE + +class QToolButtonPrivate; +class QMenu; +class QStyleOptionToolButton; + +class Q_WIDGETS_EXPORT QToolButton : public QAbstractButton +{ + Q_OBJECT + Q_ENUMS(Qt::ToolButtonStyle Qt::ArrowType) +#if QT_CONFIG(menu) + Q_PROPERTY(ToolButtonPopupMode popupMode READ popupMode WRITE setPopupMode) +#endif + Q_PROPERTY(Qt::ToolButtonStyle toolButtonStyle READ toolButtonStyle WRITE setToolButtonStyle) + Q_PROPERTY(bool autoRaise READ autoRaise WRITE setAutoRaise) + Q_PROPERTY(Qt::ArrowType arrowType READ arrowType WRITE setArrowType) + +public: + enum ToolButtonPopupMode { + DelayedPopup, + MenuButtonPopup, + InstantPopup + }; + Q_ENUM(ToolButtonPopupMode) + + explicit QToolButton(QWidget *parent = nullptr); + ~QToolButton(); + + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + + Qt::ToolButtonStyle toolButtonStyle() const; + + Qt::ArrowType arrowType() const; + void setArrowType(Qt::ArrowType type); + +#if QT_CONFIG(menu) + void setMenu(QMenu* menu); + QMenu* menu() const; + + void setPopupMode(ToolButtonPopupMode mode); + ToolButtonPopupMode popupMode() const; +#endif + + QAction *defaultAction() const; + + void setAutoRaise(bool enable); + bool autoRaise() const; + +public Q_SLOTS: +#if QT_CONFIG(menu) + void showMenu(); +#endif + void setToolButtonStyle(Qt::ToolButtonStyle style); + void setDefaultAction(QAction *); + +Q_SIGNALS: + void triggered(QAction *); + +protected: + bool event(QEvent *e) override; + void mousePressEvent(QMouseEvent *) override; + void mouseReleaseEvent(QMouseEvent *) override; + void paintEvent(QPaintEvent *) override; + void actionEvent(QActionEvent *) override; + + void enterEvent(QEnterEvent *) override; + void leaveEvent(QEvent *) override; + void timerEvent(QTimerEvent *) override; + void changeEvent(QEvent *) override; + + bool hitButton(const QPoint &pos) const override; + void checkStateSet() override; + void nextCheckState() override; + virtual void initStyleOption(QStyleOptionToolButton *option) const; + +private: + Q_DISABLE_COPY(QToolButton) + Q_DECLARE_PRIVATE(QToolButton) +}; + +QT_END_NAMESPACE + +#endif // QTOOLBUTTON_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtooltip.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtooltip.h new file mode 100644 index 0000000000000000000000000000000000000000..1e79cb42a1b4f4d75f1229e83738e71b1b19bbe4 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtooltip.h @@ -0,0 +1,32 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTOOLTIP_H +#define QTOOLTIP_H + +#include +#include + +QT_REQUIRE_CONFIG(tooltip); +QT_BEGIN_NAMESPACE + +class Q_WIDGETS_EXPORT QToolTip +{ + QToolTip() = delete; +public: + static void showText(const QPoint &pos, const QString &text, + QWidget *w = nullptr, const QRect &rect = {}, int msecShowTime = -1); + static inline void hideText() { showText(QPoint(), QString()); } + + static bool isVisible(); + static QString text(); + + static QPalette palette(); + static void setPalette(const QPalette &); + static QFont font(); + static void setFont(const QFont &); +}; + +QT_END_NAMESPACE + +#endif // QTOOLTIP_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtreeview.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtreeview.h new file mode 100644 index 0000000000000000000000000000000000000000..7b6bbd243d4e935371d78e384fa78bf6d8c3ac07 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtreeview.h @@ -0,0 +1,202 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTREEVIEW_H +#define QTREEVIEW_H + +#include +#include + +class tst_QTreeView; + +QT_REQUIRE_CONFIG(treeview); + +QT_BEGIN_NAMESPACE + +class QTreeViewPrivate; +class QHeaderView; + +class Q_WIDGETS_EXPORT QTreeView : public QAbstractItemView +{ + Q_OBJECT + Q_PROPERTY(int autoExpandDelay READ autoExpandDelay WRITE setAutoExpandDelay) + Q_PROPERTY(int indentation READ indentation WRITE setIndentation RESET resetIndentation) + Q_PROPERTY(bool rootIsDecorated READ rootIsDecorated WRITE setRootIsDecorated) + Q_PROPERTY(bool uniformRowHeights READ uniformRowHeights WRITE setUniformRowHeights) + Q_PROPERTY(bool itemsExpandable READ itemsExpandable WRITE setItemsExpandable) + Q_PROPERTY(bool sortingEnabled READ isSortingEnabled WRITE setSortingEnabled) + Q_PROPERTY(bool animated READ isAnimated WRITE setAnimated) + Q_PROPERTY(bool allColumnsShowFocus READ allColumnsShowFocus WRITE setAllColumnsShowFocus) + Q_PROPERTY(bool wordWrap READ wordWrap WRITE setWordWrap) + Q_PROPERTY(bool headerHidden READ isHeaderHidden WRITE setHeaderHidden) + Q_PROPERTY(bool expandsOnDoubleClick READ expandsOnDoubleClick WRITE setExpandsOnDoubleClick) + +public: + explicit QTreeView(QWidget *parent = nullptr); + ~QTreeView(); + + void setModel(QAbstractItemModel *model) override; + void setRootIndex(const QModelIndex &index) override; + void setSelectionModel(QItemSelectionModel *selectionModel) override; + + QHeaderView *header() const; + void setHeader(QHeaderView *header); + + int autoExpandDelay() const; + void setAutoExpandDelay(int delay); + + int indentation() const; + void setIndentation(int i); + void resetIndentation(); + + bool rootIsDecorated() const; + void setRootIsDecorated(bool show); + + bool uniformRowHeights() const; + void setUniformRowHeights(bool uniform); + + bool itemsExpandable() const; + void setItemsExpandable(bool enable); + + bool expandsOnDoubleClick() const; + void setExpandsOnDoubleClick(bool enable); + + int columnViewportPosition(int column) const; + int columnWidth(int column) const; + void setColumnWidth(int column, int width); + int columnAt(int x) const; + + bool isColumnHidden(int column) const; + void setColumnHidden(int column, bool hide); + + bool isHeaderHidden() const; + void setHeaderHidden(bool hide); + + bool isRowHidden(int row, const QModelIndex &parent) const; + void setRowHidden(int row, const QModelIndex &parent, bool hide); + + bool isFirstColumnSpanned(int row, const QModelIndex &parent) const; + void setFirstColumnSpanned(int row, const QModelIndex &parent, bool span); + + bool isExpanded(const QModelIndex &index) const; + void setExpanded(const QModelIndex &index, bool expand); + + void setSortingEnabled(bool enable); + bool isSortingEnabled() const; + + void setAnimated(bool enable); + bool isAnimated() const; + + void setAllColumnsShowFocus(bool enable); + bool allColumnsShowFocus() const; + + void setWordWrap(bool on); + bool wordWrap() const; + + void setTreePosition(int logicalIndex); + int treePosition() const; + + void keyboardSearch(const QString &search) override; + + QRect visualRect(const QModelIndex &index) const override; + void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible) override; + QModelIndex indexAt(const QPoint &p) const override; + QModelIndex indexAbove(const QModelIndex &index) const; + QModelIndex indexBelow(const QModelIndex &index) const; + + void doItemsLayout() override; + void reset() override; + + void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, + const QList &roles = QList()) override; + void selectAll() override; + +Q_SIGNALS: + void expanded(const QModelIndex &index); + void collapsed(const QModelIndex &index); + +public Q_SLOTS: + void hideColumn(int column); + void showColumn(int column); + void expand(const QModelIndex &index); + void collapse(const QModelIndex &index); + void resizeColumnToContents(int column); + void sortByColumn(int column, Qt::SortOrder order); + void expandAll(); + void expandRecursively(const QModelIndex &index, int depth = -1); + void collapseAll(); + void expandToDepth(int depth); + +protected Q_SLOTS: + void columnResized(int column, int oldSize, int newSize); + void columnCountChanged(int oldCount, int newCount); + void columnMoved(); + void reexpand(); + void rowsRemoved(const QModelIndex &parent, int first, int last); + void verticalScrollbarValueChanged(int value) override; + +protected: + QTreeView(QTreeViewPrivate &dd, QWidget *parent = nullptr); + void scrollContentsBy(int dx, int dy) override; + void rowsInserted(const QModelIndex &parent, int start, int end) override; + void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) override; + + QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override; + int horizontalOffset() const override; + int verticalOffset() const override; + + void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command) override; + QRegion visualRegionForSelection(const QItemSelection &selection) const override; + QModelIndexList selectedIndexes() const override; + + void changeEvent(QEvent *event) override; + void timerEvent(QTimerEvent *event) override; + void paintEvent(QPaintEvent *event) override; + + void drawTree(QPainter *painter, const QRegion ®ion) const; + virtual void drawRow(QPainter *painter, + const QStyleOptionViewItem &options, + const QModelIndex &index) const; + virtual void drawBranches(QPainter *painter, + const QRect &rect, + const QModelIndex &index) const; + + void mousePressEvent(QMouseEvent *event) override; + void mouseReleaseEvent(QMouseEvent *event) override; + void mouseDoubleClickEvent(QMouseEvent *event) override; + void mouseMoveEvent(QMouseEvent *event) override; + void keyPressEvent(QKeyEvent *event) override; +#if QT_CONFIG(draganddrop) + void dragMoveEvent(QDragMoveEvent *event) override; +#endif + bool viewportEvent(QEvent *event) override; + + void updateGeometries() override; + + QSize viewportSizeHint() const override; + + int sizeHintForColumn(int column) const override; + int indexRowSizeHint(const QModelIndex &index) const; + int rowHeight(const QModelIndex &index) const; + + void horizontalScrollbarAction(int action) override; + + bool isIndexHidden(const QModelIndex &index) const override; + void selectionChanged(const QItemSelection &selected, + const QItemSelection &deselected) override; + void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override; + +private: + friend class ::tst_QTreeView; + friend class QAccessibleTable; + friend class QAccessibleTree; + friend class QAccessibleTableCell; + int visualIndex(const QModelIndex &index) const; + + Q_DECLARE_PRIVATE(QTreeView) + Q_DISABLE_COPY(QTreeView) +}; + +QT_END_NAMESPACE + +#endif // QTREEVIEW_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtreewidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtreewidget.h new file mode 100644 index 0000000000000000000000000000000000000000..8cf62a4169c32fb3974773d6664c805507ec2e78 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtreewidget.h @@ -0,0 +1,345 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTREEWIDGET_H +#define QTREEWIDGET_H + +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(treewidget); + +QT_BEGIN_NAMESPACE + +class QTreeWidget; +class QTreeModel; +class QWidgetItemData; +class QTreeWidgetItemPrivate; + +class Q_WIDGETS_EXPORT QTreeWidgetItem +{ + friend class QTreeModel; + friend class QTreeWidget; + friend class QTreeWidgetPrivate; + friend class QTreeWidgetItemIterator; + friend class QTreeWidgetItemPrivate; +public: + enum ItemType { Type = 0, UserType = 1000 }; + explicit QTreeWidgetItem(int type = Type); + explicit QTreeWidgetItem(const QStringList &strings, int type = Type); + explicit QTreeWidgetItem(QTreeWidget *treeview, int type = Type); + QTreeWidgetItem(QTreeWidget *treeview, const QStringList &strings, int type = Type); + QTreeWidgetItem(QTreeWidget *treeview, QTreeWidgetItem *after, int type = Type); + explicit QTreeWidgetItem(QTreeWidgetItem *parent, int type = Type); + QTreeWidgetItem(QTreeWidgetItem *parent, const QStringList &strings, int type = Type); + QTreeWidgetItem(QTreeWidgetItem *parent, QTreeWidgetItem *after, int type = Type); + QTreeWidgetItem(const QTreeWidgetItem &other); + virtual ~QTreeWidgetItem(); + + virtual QTreeWidgetItem *clone() const; + + inline QTreeWidget *treeWidget() const { return view; } + + void setSelected(bool select); + bool isSelected() const; + + void setHidden(bool hide); + bool isHidden() const; + + void setExpanded(bool expand); + bool isExpanded() const; + + void setFirstColumnSpanned(bool span); + bool isFirstColumnSpanned() const; + + inline void setDisabled(bool disabled); + inline bool isDisabled() const; + + enum ChildIndicatorPolicy { ShowIndicator, DontShowIndicator, DontShowIndicatorWhenChildless }; + void setChildIndicatorPolicy(QTreeWidgetItem::ChildIndicatorPolicy policy); + QTreeWidgetItem::ChildIndicatorPolicy childIndicatorPolicy() const; + + Qt::ItemFlags flags() const; + void setFlags(Qt::ItemFlags flags); + + inline QString text(int column) const + { return data(column, Qt::DisplayRole).toString(); } + inline void setText(int column, const QString &text); + + inline QIcon icon(int column) const + { return qvariant_cast(data(column, Qt::DecorationRole)); } + inline void setIcon(int column, const QIcon &icon); + + inline QString statusTip(int column) const + { return data(column, Qt::StatusTipRole).toString(); } + inline void setStatusTip(int column, const QString &statusTip); + +#if QT_CONFIG(tooltip) + inline QString toolTip(int column) const + { return data(column, Qt::ToolTipRole).toString(); } + inline void setToolTip(int column, const QString &toolTip); +#endif + +#if QT_CONFIG(whatsthis) + inline QString whatsThis(int column) const + { return data(column, Qt::WhatsThisRole).toString(); } + inline void setWhatsThis(int column, const QString &whatsThis); +#endif + + inline QFont font(int column) const + { return qvariant_cast(data(column, Qt::FontRole)); } + inline void setFont(int column, const QFont &font); + +#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) + inline int textAlignment(int column) const + { return data(column, Qt::TextAlignmentRole).toInt(); } +#else + inline Qt::Alignment textAlignment(int column) const + { return qvariant_cast(data(column, Qt::TextAlignmentRole)); } +#endif +#if QT_DEPRECATED_SINCE(6, 4) + QT_DEPRECATED_VERSION_X_6_4("Use the overload taking Qt::Alignment") + inline void setTextAlignment(int column, int alignment) + { setData(column, Qt::TextAlignmentRole, alignment); } + inline void setTextAlignment(int column, Qt::AlignmentFlag alignment) + { setData(column, Qt::TextAlignmentRole, QVariant::fromValue(Qt::Alignment(alignment))); } +#endif + inline void setTextAlignment(int column, Qt::Alignment alignment) + { setData(column, Qt::TextAlignmentRole, QVariant::fromValue(alignment)); } + + inline QBrush background(int column) const + { return qvariant_cast(data(column, Qt::BackgroundRole)); } + inline void setBackground(int column, const QBrush &brush) + { setData(column, Qt::BackgroundRole, brush.style() != Qt::NoBrush ? QVariant(brush) : QVariant()); } + + inline QBrush foreground(int column) const + { return qvariant_cast(data(column, Qt::ForegroundRole)); } + inline void setForeground(int column, const QBrush &brush) + { setData(column, Qt::ForegroundRole, brush.style() != Qt::NoBrush ? QVariant(brush) : QVariant()); } + + inline Qt::CheckState checkState(int column) const + { return qvariant_cast(data(column, Qt::CheckStateRole)); } + inline void setCheckState(int column, Qt::CheckState state) + { setData(column, Qt::CheckStateRole, state); } + + inline QSize sizeHint(int column) const + { return qvariant_cast(data(column, Qt::SizeHintRole)); } + inline void setSizeHint(int column, const QSize &size) + { setData(column, Qt::SizeHintRole, size.isValid() ? QVariant(size) : QVariant()); } + + virtual QVariant data(int column, int role) const; + virtual void setData(int column, int role, const QVariant &value); + + virtual bool operator<(const QTreeWidgetItem &other) const; + +#ifndef QT_NO_DATASTREAM + virtual void read(QDataStream &in); + virtual void write(QDataStream &out) const; +#endif + QTreeWidgetItem &operator=(const QTreeWidgetItem &other); + + inline QTreeWidgetItem *parent() const { return par; } + inline QTreeWidgetItem *child(int index) const { + if (index < 0 || index >= children.size()) + return nullptr; + executePendingSort(); + return children.at(index); + } + inline int childCount() const { return int(children.size()); } + inline int columnCount() const { return int(values.size()); } + inline int indexOfChild(QTreeWidgetItem *child) const; + + void addChild(QTreeWidgetItem *child); + void insertChild(int index, QTreeWidgetItem *child); + void removeChild(QTreeWidgetItem *child); + QTreeWidgetItem *takeChild(int index); + + void addChildren(const QList &children); + void insertChildren(int index, const QList &children); + QList takeChildren(); + + inline int type() const { return rtti; } + inline void sortChildren(int column, Qt::SortOrder order) + { sortChildren(column, order, false); } + +protected: + void emitDataChanged(); + +private: + void sortChildren(int column, Qt::SortOrder order, bool climb); + QVariant childrenCheckState(int column) const; + void itemChanged(); + void executePendingSort() const; + QTreeModel *treeModel(QTreeWidget *v = nullptr) const; + + int rtti; + // One item has a vector of column entries. Each column has a vector of (role, value) pairs. + QList> values; + QTreeWidget *view = nullptr; + QTreeWidgetItemPrivate *d; + QTreeWidgetItem *par = nullptr; + // ### Qt7: Move children to d-pointer and replace QList by a suitable data structure. + // to fix QTBUG-94546 + QList children; + Qt::ItemFlags itemFlags = Qt::ItemIsSelectable | Qt::ItemIsUserCheckable | Qt::ItemIsEnabled + | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled; +}; + +inline void QTreeWidgetItem::setText(int column, const QString &atext) +{ setData(column, Qt::DisplayRole, atext); } + +inline void QTreeWidgetItem::setIcon(int column, const QIcon &aicon) +{ setData(column, Qt::DecorationRole, aicon); } + +#if QT_CONFIG(statustip) +inline void QTreeWidgetItem::setStatusTip(int column, const QString &astatusTip) +{ setData(column, Qt::StatusTipRole, astatusTip); } +#endif + +#if QT_CONFIG(tooltip) +inline void QTreeWidgetItem::setToolTip(int column, const QString &atoolTip) +{ setData(column, Qt::ToolTipRole, atoolTip); } +#endif + +#if QT_CONFIG(whatsthis) +inline void QTreeWidgetItem::setWhatsThis(int column, const QString &awhatsThis) +{ setData(column, Qt::WhatsThisRole, awhatsThis); } +#endif + +inline void QTreeWidgetItem::setFont(int column, const QFont &afont) +{ setData(column, Qt::FontRole, afont); } + +inline int QTreeWidgetItem::indexOfChild(QTreeWidgetItem *achild) const +{ executePendingSort(); return int(children.indexOf(achild)); } + +#ifndef QT_NO_DATASTREAM +Q_WIDGETS_EXPORT QDataStream &operator<<(QDataStream &out, const QTreeWidgetItem &item); +Q_WIDGETS_EXPORT QDataStream &operator>>(QDataStream &in, QTreeWidgetItem &item); +#endif + +class QTreeWidgetPrivate; + +class Q_WIDGETS_EXPORT QTreeWidget : public QTreeView +{ + Q_OBJECT + Q_PROPERTY(int columnCount READ columnCount WRITE setColumnCount) + Q_PROPERTY(int topLevelItemCount READ topLevelItemCount) + + friend class QTreeModel; + friend class QTreeWidgetItem; +public: + explicit QTreeWidget(QWidget *parent = nullptr); + ~QTreeWidget(); + + int columnCount() const; + void setColumnCount(int columns); + + QTreeWidgetItem *invisibleRootItem() const; + QTreeWidgetItem *topLevelItem(int index) const; + int topLevelItemCount() const; + void insertTopLevelItem(int index, QTreeWidgetItem *item); + void addTopLevelItem(QTreeWidgetItem *item); + QTreeWidgetItem *takeTopLevelItem(int index); + int indexOfTopLevelItem(QTreeWidgetItem *item) const; + + void insertTopLevelItems(int index, const QList &items); + void addTopLevelItems(const QList &items); + + QTreeWidgetItem *headerItem() const; + void setHeaderItem(QTreeWidgetItem *item); + void setHeaderLabels(const QStringList &labels); + inline void setHeaderLabel(const QString &label); + + QTreeWidgetItem *currentItem() const; + int currentColumn() const; + void setCurrentItem(QTreeWidgetItem *item); + void setCurrentItem(QTreeWidgetItem *item, int column); + void setCurrentItem(QTreeWidgetItem *item, int column, QItemSelectionModel::SelectionFlags command); + + QTreeWidgetItem *itemAt(const QPoint &p) const; + inline QTreeWidgetItem *itemAt(int x, int y) const; + QRect visualItemRect(const QTreeWidgetItem *item) const; + + int sortColumn() const; + void sortItems(int column, Qt::SortOrder order); + + void editItem(QTreeWidgetItem *item, int column = 0); + void openPersistentEditor(QTreeWidgetItem *item, int column = 0); + void closePersistentEditor(QTreeWidgetItem *item, int column = 0); + using QAbstractItemView::isPersistentEditorOpen; + bool isPersistentEditorOpen(QTreeWidgetItem *item, int column = 0) const; + + QWidget *itemWidget(QTreeWidgetItem *item, int column) const; + void setItemWidget(QTreeWidgetItem *item, int column, QWidget *widget); + inline void removeItemWidget(QTreeWidgetItem *item, int column); + + QList selectedItems() const; + QList findItems(const QString &text, Qt::MatchFlags flags, + int column = 0) const; + + QTreeWidgetItem *itemAbove(const QTreeWidgetItem *item) const; + QTreeWidgetItem *itemBelow(const QTreeWidgetItem *item) const; + + QModelIndex indexFromItem(const QTreeWidgetItem *item, int column = 0) const; + QTreeWidgetItem *itemFromIndex(const QModelIndex &index) const; + + void setSelectionModel(QItemSelectionModel *selectionModel) override; + +public Q_SLOTS: + void scrollToItem(const QTreeWidgetItem *item, + QAbstractItemView::ScrollHint hint = EnsureVisible); + void expandItem(const QTreeWidgetItem *item); + void collapseItem(const QTreeWidgetItem *item); + void clear(); + +Q_SIGNALS: + void itemPressed(QTreeWidgetItem *item, int column); + void itemClicked(QTreeWidgetItem *item, int column); + void itemDoubleClicked(QTreeWidgetItem *item, int column); + void itemActivated(QTreeWidgetItem *item, int column); + void itemEntered(QTreeWidgetItem *item, int column); + void itemChanged(QTreeWidgetItem *item, int column); + void itemExpanded(QTreeWidgetItem *item); + void itemCollapsed(QTreeWidgetItem *item); + void currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous); + void itemSelectionChanged(); + +protected: + bool event(QEvent *e) override; + virtual QStringList mimeTypes() const; + virtual QMimeData *mimeData(const QList &items) const; + virtual bool dropMimeData(QTreeWidgetItem *parent, int index, + const QMimeData *data, Qt::DropAction action); + virtual Qt::DropActions supportedDropActions() const; + +#if QT_CONFIG(draganddrop) + void dropEvent(QDropEvent *event) override; +#endif +private: + void setModel(QAbstractItemModel *model) override; + + Q_DECLARE_PRIVATE(QTreeWidget) + Q_DISABLE_COPY(QTreeWidget) +}; + +inline void QTreeWidget::removeItemWidget(QTreeWidgetItem *item, int column) +{ setItemWidget(item, column, nullptr); } + +inline QTreeWidgetItem *QTreeWidget::itemAt(int ax, int ay) const +{ return itemAt(QPoint(ax, ay)); } + +inline void QTreeWidget::setHeaderLabel(const QString &alabel) +{ setHeaderLabels(QStringList(alabel)); } + +inline void QTreeWidgetItem::setDisabled(bool disabled) +{ setFlags(disabled ? (flags() & ~Qt::ItemIsEnabled) : flags() | Qt::ItemIsEnabled); } + +inline bool QTreeWidgetItem::isDisabled() const +{ return !(flags() & Qt::ItemIsEnabled); } + +QT_END_NAMESPACE + +#endif // QTREEWIDGET_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtreewidgetitemiterator.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtreewidgetitemiterator.h new file mode 100644 index 0000000000000000000000000000000000000000..df6ad56c050f29b138ee5e5452f7b0d472c600fc --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtreewidgetitemiterator.h @@ -0,0 +1,113 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTREEWIDGETITEMITERATOR_H +#define QTREEWIDGETITEMITERATOR_H + +#include +#include + +QT_REQUIRE_CONFIG(treewidget); + +QT_BEGIN_NAMESPACE + +class QTreeWidget; +class QTreeWidgetItem; +class QTreeModel; + +class QTreeWidgetItemIteratorPrivate; +class Q_WIDGETS_EXPORT QTreeWidgetItemIterator +{ + friend class QTreeModel; + +public: + enum IteratorFlag { + All = 0x00000000, + Hidden = 0x00000001, + NotHidden = 0x00000002, + Selected = 0x00000004, + Unselected = 0x00000008, + Selectable = 0x00000010, + NotSelectable = 0x00000020, + DragEnabled = 0x00000040, + DragDisabled = 0x00000080, + DropEnabled = 0x00000100, + DropDisabled = 0x00000200, + HasChildren = 0x00000400, + NoChildren = 0x00000800, + Checked = 0x00001000, + NotChecked = 0x00002000, + Enabled = 0x00004000, + Disabled = 0x00008000, + Editable = 0x00010000, + NotEditable = 0x00020000, + UserFlag = 0x01000000 // The first flag that can be used by the user. + }; + Q_DECLARE_FLAGS(IteratorFlags, IteratorFlag) + + QTreeWidgetItemIterator(const QTreeWidgetItemIterator &it); + explicit QTreeWidgetItemIterator(QTreeWidget *widget, IteratorFlags flags = All); + explicit QTreeWidgetItemIterator(QTreeWidgetItem *item, IteratorFlags flags = All); + ~QTreeWidgetItemIterator(); + + QTreeWidgetItemIterator &operator=(const QTreeWidgetItemIterator &it); + + QTreeWidgetItemIterator &operator++(); + inline const QTreeWidgetItemIterator operator++(int); + inline QTreeWidgetItemIterator &operator+=(int n); + + QTreeWidgetItemIterator &operator--(); + inline const QTreeWidgetItemIterator operator--(int); + inline QTreeWidgetItemIterator &operator-=(int n); + + inline QTreeWidgetItem *operator*() const; + +private: + bool matchesFlags(const QTreeWidgetItem *item) const; + QScopedPointer d_ptr; + QTreeWidgetItem *current; + IteratorFlags flags; + Q_DECLARE_PRIVATE(QTreeWidgetItemIterator) +}; + +inline const QTreeWidgetItemIterator QTreeWidgetItemIterator::operator++(int) +{ + QTreeWidgetItemIterator it = *this; + ++(*this); + return it; +} + +inline const QTreeWidgetItemIterator QTreeWidgetItemIterator::operator--(int) +{ + QTreeWidgetItemIterator it = *this; + --(*this); + return it; +} + +inline QTreeWidgetItemIterator &QTreeWidgetItemIterator::operator+=(int n) +{ + if (n < 0) + return (*this) -= (-n); + while (current && n--) + ++(*this); + return *this; +} + +inline QTreeWidgetItemIterator &QTreeWidgetItemIterator::operator-=(int n) +{ + if (n < 0) + return (*this) += (-n); + while (current && n--) + --(*this); + return *this; +} + +inline QTreeWidgetItem *QTreeWidgetItemIterator::operator*() const +{ + return current; +} + +Q_DECLARE_OPERATORS_FOR_FLAGS(QTreeWidgetItemIterator::IteratorFlags) + +QT_END_NAMESPACE +#endif // QTREEWIDGETITEMITERATOR_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgets-config.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgets-config.h new file mode 100644 index 0000000000000000000000000000000000000000..83673ebf2afecf12d0ad7c47655d642898bbfaf7 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgets-config.h @@ -0,0 +1,144 @@ +#define QT_FEATURE_style_stylesheet 1 + +#define QT_FEATURE_itemviews 1 + +#define QT_FEATURE_treewidget 1 + +#define QT_FEATURE_listwidget 1 + +#define QT_FEATURE_tablewidget 1 + +#define QT_FEATURE_abstractbutton 1 + +#define QT_FEATURE_commandlinkbutton 1 + +#define QT_FEATURE_datetimeedit 1 + +#define QT_FEATURE_stackedwidget 1 + +#define QT_FEATURE_textbrowser 1 + +#define QT_FEATURE_splashscreen 1 + +#define QT_FEATURE_splitter 1 + +#define QT_FEATURE_label 1 + +#define QT_FEATURE_formlayout 1 + +#define QT_FEATURE_lcdnumber 1 + +#define QT_FEATURE_menu 1 + +#define QT_FEATURE_lineedit 1 + +#define QT_FEATURE_radiobutton 1 + +#define QT_FEATURE_spinbox 1 + +#define QT_FEATURE_tabbar 1 + +#define QT_FEATURE_tabwidget 1 + +#define QT_FEATURE_combobox 1 + +#define QT_FEATURE_fontcombobox 1 + +#define QT_FEATURE_checkbox 1 + +#define QT_FEATURE_pushbutton 1 + +#define QT_FEATURE_toolbutton 1 + +#define QT_FEATURE_toolbar 1 + +#define QT_FEATURE_toolbox 1 + +#define QT_FEATURE_groupbox 1 + +#define QT_FEATURE_buttongroup 1 + +#define QT_FEATURE_mainwindow 1 + +#define QT_FEATURE_dockwidget 1 + +#define QT_FEATURE_mdiarea 1 + +#define QT_FEATURE_resizehandler 1 + +#define QT_FEATURE_statusbar 1 + +#define QT_FEATURE_menubar 1 + +#define QT_FEATURE_contextmenu 1 + +#define QT_FEATURE_progressbar 1 + +#define QT_FEATURE_abstractslider 1 + +#define QT_FEATURE_slider 1 + +#define QT_FEATURE_scrollbar 1 + +#define QT_FEATURE_dial 1 + +#define QT_FEATURE_scrollarea 1 + +#define QT_FEATURE_scroller 1 + +#define QT_FEATURE_graphicsview 1 + +#define QT_FEATURE_graphicseffect 1 + +#define QT_FEATURE_textedit 1 + +#define QT_FEATURE_syntaxhighlighter 1 + +#define QT_FEATURE_rubberband 1 + +#define QT_FEATURE_tooltip 1 + +#define QT_FEATURE_statustip 1 + +#define QT_FEATURE_sizegrip 1 + +#define QT_FEATURE_calendarwidget 1 + +#define QT_FEATURE_keysequenceedit 1 + +#define QT_FEATURE_dialog 1 + +#define QT_FEATURE_dialogbuttonbox 1 + +#define QT_FEATURE_messagebox 1 + +#define QT_FEATURE_colordialog 1 + +#define QT_FEATURE_filedialog 1 + +#define QT_FEATURE_fontdialog 1 + +#define QT_FEATURE_progressdialog 1 + +#define QT_FEATURE_inputdialog 1 + +#define QT_FEATURE_errormessage 1 + +#define QT_FEATURE_wizard 1 + +#define QT_FEATURE_listview 1 + +#define QT_FEATURE_tableview 1 + +#define QT_FEATURE_treeview 1 + +#define QT_FEATURE_datawidgetmapper 1 + +#define QT_FEATURE_columnview 1 + +#define QT_FEATURE_completer 1 + +#define QT_FEATURE_fscompleter 1 + +#define QT_FEATURE_undoview 1 + diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgetsexports.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgetsexports.h new file mode 100644 index 0000000000000000000000000000000000000000..1a3571fc4ef08d72b9b7c9505e26f9383464b3a9 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgetsexports.h @@ -0,0 +1,50 @@ +// Copyright (C) 2022 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTWIDGETSEXPORTS_H +#define QTWIDGETSEXPORTS_H + +#include +#include // Q_WIDGETS_EXPORT +#include // QT_IF_DEPRECATED_SINCE + +#if defined(QT_SHARED) || !defined(QT_STATIC) +# if defined(QT_BUILD_WIDGETS_LIB) +# define Q_WIDGETS_EXPORT Q_DECL_EXPORT +# else +# define Q_WIDGETS_EXPORT Q_DECL_IMPORT +# endif +#else +# define Q_WIDGETS_EXPORT +#endif + +#if !defined(QT_BUILD_WIDGETS_LIB) && !defined(QT_STATIC) +/* outside library -> inline decl + defi */ +/* static builds treat everything as part of the library, so they never inline */ +# define QT_WIDGETS_INLINE_SINCE(major, minor) inline +# define QT_WIDGETS_INLINE_IMPL_SINCE(major, minor) 1 +#elif defined(QT_WIDGETS_BUILD_REMOVED_API) +/* inside library, inside removed_api.cpp: + * keep deprecated API -> non-inline decl; + * remove deprecated API -> inline decl; + * definition is always available */ +# define QT_WIDGETS_INLINE_SINCE(major, minor) \ + QT_IF_DEPRECATED_SINCE(major, minor, inline, /* not inline */) +# define QT_WIDGETS_INLINE_IMPL_SINCE(major, minor) 1 +#else +/* inside library, outside removed_api.cpp: + * keep deprecated API -> non-inline decl, no defi; + * remove deprecated API -> inline decl, defi */ +# define QT_WIDGETS_INLINE_SINCE(major, minor) \ + QT_IF_DEPRECATED_SINCE(major, minor, inline, /* not inline */) +# define QT_WIDGETS_INLINE_IMPL_SINCE(major, minor) \ + QT_IF_DEPRECATED_SINCE(major, minor, 1, 0) +#endif + +#ifdef QT_WIDGETS_BUILD_REMOVED_API +# define QT_WIDGETS_REMOVED_SINCE(major, minor) QT_DEPRECATED_SINCE(major, minor) +#else +# define QT_WIDGETS_REMOVED_SINCE(major, minor) 0 +#endif + +#endif // QTWIDGETSEXPORTS_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgetsglobal.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgetsglobal.h new file mode 100644 index 0000000000000000000000000000000000000000..37cfc9308a0e0cf9a0fa013a05ba2fb5b447690b --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgetsglobal.h @@ -0,0 +1,11 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTWIDGETSGLOBAL_H +#define QTWIDGETSGLOBAL_H + +#include +#include +#include + +#endif // QTGUIGLOBAL_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgetsversion.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgetsversion.h new file mode 100644 index 0000000000000000000000000000000000000000..3b6b195a6f9f397a3cc6c02bcd3d44740a472182 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qtwidgetsversion.h @@ -0,0 +1,9 @@ +/* This file was generated by syncqt. */ +#ifndef QT_QTWIDGETS_VERSION_H +#define QT_QTWIDGETS_VERSION_H + +#define QTWIDGETS_VERSION_STR "6.8.1" + +#define QTWIDGETS_VERSION 0x060801 + +#endif // QT_QTWIDGETS_VERSION_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qundogroup.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qundogroup.h new file mode 100644 index 0000000000000000000000000000000000000000..f2e97b21ed4edb119dda4b53aef4bc34bfef468f --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qundogroup.h @@ -0,0 +1,12 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#if 0 +// syncqt: header is already part of QtGui/QtGui +#pragma qt_no_master_include +#endif + +#include + +QT_BEGIN_NAMESPACE +QT_END_NAMESPACE diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qundostack.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qundostack.h new file mode 100644 index 0000000000000000000000000000000000000000..59590f54d91d07737eb644455ea942bd7f2cd5dc --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qundostack.h @@ -0,0 +1,12 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#if 0 +// syncqt: header is already part of QtGui/QtGui +#pragma qt_no_master_include +#endif + +#include + +QT_BEGIN_NAMESPACE +QT_END_NAMESPACE diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qundoview.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qundoview.h new file mode 100644 index 0000000000000000000000000000000000000000..d588fbfb28256b934b672fb2e7c653cae642d3e3 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qundoview.h @@ -0,0 +1,59 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QUNDOVIEW_H +#define QUNDOVIEW_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(undoview); + +QT_BEGIN_NAMESPACE + +class QUndoViewPrivate; +class QUndoStack; +class QUndoGroup; +class QIcon; + + +class Q_WIDGETS_EXPORT QUndoView : public QListView +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QUndoView) + Q_PROPERTY(QString emptyLabel READ emptyLabel WRITE setEmptyLabel) + Q_PROPERTY(QIcon cleanIcon READ cleanIcon WRITE setCleanIcon) + +public: + explicit QUndoView(QWidget *parent = nullptr); + explicit QUndoView(QUndoStack *stack, QWidget *parent = nullptr); +#if QT_CONFIG(undogroup) + explicit QUndoView(QUndoGroup *group, QWidget *parent = nullptr); +#endif + ~QUndoView(); + + QUndoStack *stack() const; +#if QT_CONFIG(undogroup) + QUndoGroup *group() const; +#endif + + void setEmptyLabel(const QString &label); + QString emptyLabel() const; + + void setCleanIcon(const QIcon &icon); + QIcon cleanIcon() const; + +public Q_SLOTS: + void setStack(QUndoStack *stack); +#if QT_CONFIG(undogroup) + void setGroup(QUndoGroup *group); +#endif + +private: + Q_DISABLE_COPY(QUndoView) +}; + +QT_END_NAMESPACE + +#endif // QUNDOVIEW_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qwhatsthis.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qwhatsthis.h new file mode 100644 index 0000000000000000000000000000000000000000..9749c2cc8c3f941231faf8fad66a79956c07654c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qwhatsthis.h @@ -0,0 +1,39 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QWHATSTHIS_H +#define QWHATSTHIS_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(whatsthis); + +QT_BEGIN_NAMESPACE + +#if QT_CONFIG(action) +class QAction; +#endif // QT_CONFIG(action) + +class Q_WIDGETS_EXPORT QWhatsThis +{ + QWhatsThis() = delete; + +public: + static void enterWhatsThisMode(); + static bool inWhatsThisMode(); + static void leaveWhatsThisMode(); + + static void showText(const QPoint &pos, const QString &text, QWidget *w = nullptr); + static void hideText(); + +#if QT_CONFIG(action) + static QAction *createAction(QObject *parent = nullptr); +#endif // QT_CONFIG(action) + +}; + +QT_END_NAMESPACE + +#endif // QWHATSTHIS_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qwidget.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qwidget.h new file mode 100644 index 0000000000000000000000000000000000000000..e9a1e64bdb5f627d57b23a8da4d1539b951635fc --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qwidget.h @@ -0,0 +1,926 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QWIDGET_H +#define QWIDGET_H + +#include +#include +#include +#include +#if QT_CONFIG(action) +#include +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#if QT_CONFIG(shortcut) +# include +#endif + +#ifdef QT_INCLUDE_COMPAT +#include +#endif + +QT_BEGIN_NAMESPACE + + +class QLayout; +class QStyle; +class QAction; +class QVariant; +class QWindow; +class QActionEvent; +class QMouseEvent; +class QWheelEvent; +class QHoverEvent; +class QKeyEvent; +class QEnterEvent; +class QFocusEvent; +class QPaintEvent; +class QMoveEvent; +class QResizeEvent; +class QCloseEvent; +class QContextMenuEvent; +class QInputMethodEvent; +class QTabletEvent; +class QDragEnterEvent; +class QDragMoveEvent; +class QDragLeaveEvent; +class QDropEvent; +class QScreen; +class QShowEvent; +class QHideEvent; +class QIcon; +class QBackingStore; +class QPlatformWindow; +class QLocale; +class QGraphicsProxyWidget; +class QGraphicsEffect; +class QRasterWindowSurface; +class QUnifiedToolbarSurface; +class QPixmap; +#ifndef QT_NO_DEBUG_STREAM +class QDebug; +#endif + +class QWidgetData +{ +public: + WId winid; + uint widget_attributes; + Qt::WindowFlags window_flags; + uint window_state : 4; + uint focus_policy : 4; + uint sizehint_forced :1; + uint is_closing :1; + uint in_show : 1; + uint in_set_window_state : 1; + mutable uint fstrut_dirty : 1; + uint context_menu_policy : 3; + uint window_modality : 2; + uint in_destructor : 1; + uint unused : 13; + QRect crect; + mutable QPalette pal; + QFont fnt; + QRect wrect; +}; + +class QWidgetPrivate; + +class Q_WIDGETS_EXPORT QWidget : public QObject, public QPaintDevice +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QWidget) + + Q_PROPERTY(bool modal READ isModal) + Q_PROPERTY(Qt::WindowModality windowModality READ windowModality WRITE setWindowModality) + Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled) + Q_PROPERTY(QRect geometry READ geometry WRITE setGeometry) + Q_PROPERTY(QRect frameGeometry READ frameGeometry) + Q_PROPERTY(QRect normalGeometry READ normalGeometry) + Q_PROPERTY(int x READ x) + Q_PROPERTY(int y READ y) + Q_PROPERTY(QPoint pos READ pos WRITE move DESIGNABLE false STORED false) + Q_PROPERTY(QSize frameSize READ frameSize) + Q_PROPERTY(QSize size READ size WRITE resize DESIGNABLE false STORED false) + Q_PROPERTY(int width READ width) + Q_PROPERTY(int height READ height) + Q_PROPERTY(QRect rect READ rect) + Q_PROPERTY(QRect childrenRect READ childrenRect) + Q_PROPERTY(QRegion childrenRegion READ childrenRegion) + Q_PROPERTY(QSizePolicy sizePolicy READ sizePolicy WRITE setSizePolicy) + Q_PROPERTY(QSize minimumSize READ minimumSize WRITE setMinimumSize) + Q_PROPERTY(QSize maximumSize READ maximumSize WRITE setMaximumSize) + Q_PROPERTY(int minimumWidth READ minimumWidth WRITE setMinimumWidth STORED false + DESIGNABLE false) + Q_PROPERTY(int minimumHeight READ minimumHeight WRITE setMinimumHeight STORED false + DESIGNABLE false) + Q_PROPERTY(int maximumWidth READ maximumWidth WRITE setMaximumWidth STORED false + DESIGNABLE false) + Q_PROPERTY(int maximumHeight READ maximumHeight WRITE setMaximumHeight STORED false + DESIGNABLE false) + Q_PROPERTY(QSize sizeIncrement READ sizeIncrement WRITE setSizeIncrement) + Q_PROPERTY(QSize baseSize READ baseSize WRITE setBaseSize) + Q_PROPERTY(QPalette palette READ palette WRITE setPalette) + Q_PROPERTY(QFont font READ font WRITE setFont) +#ifndef QT_NO_CURSOR + Q_PROPERTY(QCursor cursor READ cursor WRITE setCursor RESET unsetCursor) +#endif + Q_PROPERTY(bool mouseTracking READ hasMouseTracking WRITE setMouseTracking) + Q_PROPERTY(bool tabletTracking READ hasTabletTracking WRITE setTabletTracking) + Q_PROPERTY(bool isActiveWindow READ isActiveWindow) + Q_PROPERTY(Qt::FocusPolicy focusPolicy READ focusPolicy WRITE setFocusPolicy) + Q_PROPERTY(bool focus READ hasFocus) + Q_PROPERTY(Qt::ContextMenuPolicy contextMenuPolicy READ contextMenuPolicy WRITE setContextMenuPolicy) + Q_PROPERTY(bool updatesEnabled READ updatesEnabled WRITE setUpdatesEnabled DESIGNABLE false) + Q_PROPERTY(bool visible READ isVisible WRITE setVisible DESIGNABLE false) + Q_PROPERTY(bool minimized READ isMinimized) + Q_PROPERTY(bool maximized READ isMaximized) + Q_PROPERTY(bool fullScreen READ isFullScreen) + Q_PROPERTY(QSize sizeHint READ sizeHint) + Q_PROPERTY(QSize minimumSizeHint READ minimumSizeHint) + Q_PROPERTY(bool acceptDrops READ acceptDrops WRITE setAcceptDrops) + Q_PROPERTY(QString windowTitle READ windowTitle WRITE setWindowTitle NOTIFY windowTitleChanged) + Q_PROPERTY(QIcon windowIcon READ windowIcon WRITE setWindowIcon NOTIFY windowIconChanged) + Q_PROPERTY(QString windowIconText READ windowIconText WRITE setWindowIconText NOTIFY windowIconTextChanged) // deprecated + Q_PROPERTY(double windowOpacity READ windowOpacity WRITE setWindowOpacity) + Q_PROPERTY(bool windowModified READ isWindowModified WRITE setWindowModified) +#if QT_CONFIG(tooltip) + Q_PROPERTY(QString toolTip READ toolTip WRITE setToolTip) + Q_PROPERTY(int toolTipDuration READ toolTipDuration WRITE setToolTipDuration) +#endif +#if QT_CONFIG(statustip) + Q_PROPERTY(QString statusTip READ statusTip WRITE setStatusTip) +#endif +#if QT_CONFIG(whatsthis) + Q_PROPERTY(QString whatsThis READ whatsThis WRITE setWhatsThis) +#endif +#if QT_CONFIG(accessibility) + Q_PROPERTY(QString accessibleName READ accessibleName WRITE setAccessibleName) + Q_PROPERTY(QString accessibleDescription READ accessibleDescription WRITE setAccessibleDescription) +#endif + Q_PROPERTY(Qt::LayoutDirection layoutDirection READ layoutDirection WRITE setLayoutDirection RESET unsetLayoutDirection) + QDOC_PROPERTY(Qt::WindowFlags windowFlags READ windowFlags WRITE setWindowFlags) + Q_PROPERTY(bool autoFillBackground READ autoFillBackground WRITE setAutoFillBackground) +#ifndef QT_NO_STYLE_STYLESHEET + Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet) +#endif + Q_PROPERTY(QLocale locale READ locale WRITE setLocale RESET unsetLocale) + Q_PROPERTY(QString windowFilePath READ windowFilePath WRITE setWindowFilePath) + Q_PROPERTY(Qt::InputMethodHints inputMethodHints READ inputMethodHints WRITE setInputMethodHints) + +#if QT_CONFIG(action) +#if 0 + // ### TODO: make this work (requires SFINAE-friendly connect()) + template + using compatible_action_slot_args = std::void_t< + decltype(QObject::connect(std::declval(), &QAction::triggered, + std::declval()...)) + >; +#else + // good-enough compromise for now + template + using compatible_action_slot_args = std::enable_if_t, + std::negation> + >..., +#endif + std::negation>..., + std::negation>..., + std::negation>... + >>; +#endif +#endif // QT_CONFIG(action) + +public: + enum RenderFlag { + DrawWindowBackground = 0x1, + DrawChildren = 0x2, + IgnoreMask = 0x4 + }; + Q_DECLARE_FLAGS(RenderFlags, RenderFlag) + + explicit QWidget(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags()); + ~QWidget(); + + int devType() const override; + + WId winId() const; + void createWinId(); // internal, going away + inline WId internalWinId() const { return data->winid; } + WId effectiveWinId() const; + + // GUI style setting + QStyle *style() const; + void setStyle(QStyle *); + // Widget types and states + +#if QT_DEPRECATED_SINCE(6, 1) + QT_DEPRECATED_VERSION_X_6_1("Use isWindow()") + bool isTopLevel() const; +#endif + bool isWindow() const; + + bool isModal() const; + Qt::WindowModality windowModality() const; + void setWindowModality(Qt::WindowModality windowModality); + + bool isEnabled() const; + bool isEnabledTo(const QWidget *) const; + +public Q_SLOTS: + void setEnabled(bool); + void setDisabled(bool); + void setWindowModified(bool); + + // Widget coordinates + +public: + QRect frameGeometry() const; + const QRect &geometry() const; + QRect normalGeometry() const; + + int x() const; + int y() const; + QPoint pos() const; + QSize frameSize() const; + QSize size() const; + inline int width() const; + inline int height() const; + inline QRect rect() const; + QRect childrenRect() const; + QRegion childrenRegion() const; + + QSize minimumSize() const; + QSize maximumSize() const; + int minimumWidth() const; + int minimumHeight() const; + int maximumWidth() const; + int maximumHeight() const; + void setMinimumSize(const QSize &); + void setMinimumSize(int minw, int minh); + void setMaximumSize(const QSize &); + void setMaximumSize(int maxw, int maxh); + void setMinimumWidth(int minw); + void setMinimumHeight(int minh); + void setMaximumWidth(int maxw); + void setMaximumHeight(int maxh); + +#ifdef Q_QDOC + void setupUi(QWidget *widget); +#endif + + QSize sizeIncrement() const; + void setSizeIncrement(const QSize &); + void setSizeIncrement(int w, int h); + QSize baseSize() const; + void setBaseSize(const QSize &); + void setBaseSize(int basew, int baseh); + + void setFixedSize(const QSize &); + void setFixedSize(int w, int h); + void setFixedWidth(int w); + void setFixedHeight(int h); + + // Widget coordinate mapping + + QPointF mapToGlobal(const QPointF &) const; + QPoint mapToGlobal(const QPoint &) const; + QPointF mapFromGlobal(const QPointF &) const; + QPoint mapFromGlobal(const QPoint &) const; + QPointF mapToParent(const QPointF &) const; + QPoint mapToParent(const QPoint &) const; + QPointF mapFromParent(const QPointF &) const; + QPoint mapFromParent(const QPoint &) const; + QPointF mapTo(const QWidget *, const QPointF &) const; + QPoint mapTo(const QWidget *, const QPoint &) const; + QPointF mapFrom(const QWidget *, const QPointF &) const; + QPoint mapFrom(const QWidget *, const QPoint &) const; + + QWidget *window() const; + QWidget *nativeParentWidget() const; + inline QWidget *topLevelWidget() const { return window(); } + + // Widget appearance functions + const QPalette &palette() const; + void setPalette(const QPalette &); + + void setBackgroundRole(QPalette::ColorRole); + QPalette::ColorRole backgroundRole() const; + + void setForegroundRole(QPalette::ColorRole); + QPalette::ColorRole foregroundRole() const; + + const QFont &font() const; + void setFont(const QFont &); + QFontMetrics fontMetrics() const; + QFontInfo fontInfo() const; + +#ifndef QT_NO_CURSOR + QCursor cursor() const; + void setCursor(const QCursor &); + void unsetCursor(); +#endif + + void setMouseTracking(bool enable); + bool hasMouseTracking() const; + bool underMouse() const; + + void setTabletTracking(bool enable); + bool hasTabletTracking() const; + + void setMask(const QBitmap &); + void setMask(const QRegion &); + QRegion mask() const; + void clearMask(); + + void render(QPaintDevice *target, const QPoint &targetOffset = QPoint(), + const QRegion &sourceRegion = QRegion(), + RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren)); + + void render(QPainter *painter, const QPoint &targetOffset = QPoint(), + const QRegion &sourceRegion = QRegion(), + RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren)); + + Q_INVOKABLE QPixmap grab(const QRect &rectangle = QRect(QPoint(0, 0), QSize(-1, -1))); + +#if QT_CONFIG(graphicseffect) + QGraphicsEffect *graphicsEffect() const; + void setGraphicsEffect(QGraphicsEffect *effect); +#endif // QT_CONFIG(graphicseffect) + +#ifndef QT_NO_GESTURES + void grabGesture(Qt::GestureType type, Qt::GestureFlags flags = Qt::GestureFlags()); + void ungrabGesture(Qt::GestureType type); +#endif + +public Q_SLOTS: + void setWindowTitle(const QString &); +#ifndef QT_NO_STYLE_STYLESHEET + void setStyleSheet(const QString& styleSheet); +#endif +public: +#ifndef QT_NO_STYLE_STYLESHEET + QString styleSheet() const; +#endif + QString windowTitle() const; + void setWindowIcon(const QIcon &icon); + QIcon windowIcon() const; + void setWindowIconText(const QString &); + QString windowIconText() const; + void setWindowRole(const QString &); + QString windowRole() const; + void setWindowFilePath(const QString &filePath); + QString windowFilePath() const; + + void setWindowOpacity(qreal level); + qreal windowOpacity() const; + + bool isWindowModified() const; +#if QT_CONFIG(tooltip) + void setToolTip(const QString &); + QString toolTip() const; + void setToolTipDuration(int msec); + int toolTipDuration() const; +#endif +#if QT_CONFIG(statustip) + void setStatusTip(const QString &); + QString statusTip() const; +#endif +#if QT_CONFIG(whatsthis) + void setWhatsThis(const QString &); + QString whatsThis() const; +#endif +#if QT_CONFIG(accessibility) + QString accessibleName() const; + void setAccessibleName(const QString &name); + QString accessibleDescription() const; + void setAccessibleDescription(const QString &description); +#endif + + void setLayoutDirection(Qt::LayoutDirection direction); + Qt::LayoutDirection layoutDirection() const; + void unsetLayoutDirection(); + + void setLocale(const QLocale &locale); + QLocale locale() const; + void unsetLocale(); + + inline bool isRightToLeft() const { return layoutDirection() == Qt::RightToLeft; } + inline bool isLeftToRight() const { return layoutDirection() == Qt::LeftToRight; } + +public Q_SLOTS: + inline void setFocus() { setFocus(Qt::OtherFocusReason); } + +public: + bool isActiveWindow() const; + void activateWindow(); + void clearFocus(); + + void setFocus(Qt::FocusReason reason); + Qt::FocusPolicy focusPolicy() const; + void setFocusPolicy(Qt::FocusPolicy policy); + bool hasFocus() const; + static void setTabOrder(QWidget *, QWidget *); + static void setTabOrder(std::initializer_list widgets); + void setFocusProxy(QWidget *); + QWidget *focusProxy() const; + Qt::ContextMenuPolicy contextMenuPolicy() const; + void setContextMenuPolicy(Qt::ContextMenuPolicy policy); + + // Grab functions + void grabMouse(); +#ifndef QT_NO_CURSOR + void grabMouse(const QCursor &); +#endif + void releaseMouse(); + void grabKeyboard(); + void releaseKeyboard(); +#ifndef QT_NO_SHORTCUT + int grabShortcut(const QKeySequence &key, Qt::ShortcutContext context = Qt::WindowShortcut); + void releaseShortcut(int id); + void setShortcutEnabled(int id, bool enable = true); + void setShortcutAutoRepeat(int id, bool enable = true); +#endif + static QWidget *mouseGrabber(); + static QWidget *keyboardGrabber(); + + // Update/refresh functions + inline bool updatesEnabled() const; + void setUpdatesEnabled(bool enable); + +#if QT_CONFIG(graphicsview) + QGraphicsProxyWidget *graphicsProxyWidget() const; +#endif + +public Q_SLOTS: + void update(); + void repaint(); + +public: + inline void update(int x, int y, int w, int h); + void update(const QRect&); + void update(const QRegion&); + + void repaint(int x, int y, int w, int h); + void repaint(const QRect &); + void repaint(const QRegion &); + +public Q_SLOTS: + // Widget management functions + + virtual void setVisible(bool visible); + void setHidden(bool hidden); + void show(); + void hide(); + + void showMinimized(); + void showMaximized(); + void showFullScreen(); + void showNormal(); + + bool close(); + void raise(); + void lower(); + +public: + void stackUnder(QWidget*); + void move(int x, int y); + void move(const QPoint &); + void resize(int w, int h); + void resize(const QSize &); + inline void setGeometry(int x, int y, int w, int h); + void setGeometry(const QRect &); + QByteArray saveGeometry() const; + bool restoreGeometry(const QByteArray &geometry); + void adjustSize(); + bool isVisible() const; + bool isVisibleTo(const QWidget *) const; + inline bool isHidden() const; + + bool isMinimized() const; + bool isMaximized() const; + bool isFullScreen() const; + + Qt::WindowStates windowState() const; + void setWindowState(Qt::WindowStates state); + void overrideWindowState(Qt::WindowStates state); + + virtual QSize sizeHint() const; + virtual QSize minimumSizeHint() const; + + QSizePolicy sizePolicy() const; + void setSizePolicy(QSizePolicy); + inline void setSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical); + virtual int heightForWidth(int) const; + virtual bool hasHeightForWidth() const; + + QRegion visibleRegion() const; + + void setContentsMargins(int left, int top, int right, int bottom); + void setContentsMargins(const QMargins &margins); + QMargins contentsMargins() const; + + QRect contentsRect() const; + +public: + QLayout *layout() const; + void setLayout(QLayout *); + void updateGeometry(); + + void setParent(QWidget *parent); + void setParent(QWidget *parent, Qt::WindowFlags f); + + void scroll(int dx, int dy); + void scroll(int dx, int dy, const QRect&); + + // Misc. functions + + QWidget *focusWidget() const; + QWidget *nextInFocusChain() const; + QWidget *previousInFocusChain() const; + + // drag and drop + bool acceptDrops() const; + void setAcceptDrops(bool on); + +#ifndef QT_NO_ACTION + //actions + void addAction(QAction *action); + void addActions(const QList &actions); + void insertActions(QAction *before, const QList &actions); + void insertAction(QAction *before, QAction *action); + void removeAction(QAction *action); + QList actions() const; + + // convenience action factories + QAction *addAction(const QString &text); + QAction *addAction(const QIcon &icon, const QString &text); + QAction *addAction(const QString &text, const QObject *receiver, + const char *member, Qt::ConnectionType type = Qt::AutoConnection); + QAction *addAction(const QIcon &icon, const QString &text, const QObject *receiver, + const char *member, Qt::ConnectionType type = Qt::AutoConnection); + template > + QAction *addAction(const QString &text, Args&&...args) + { + QAction *result = addAction(text); + connect(result, &QAction::triggered, std::forward(args)...); + return result; + } + template > + QAction *addAction(const QIcon &icon, const QString &text, Args&&...args) + { + QAction *result = addAction(icon, text); + connect(result, &QAction::triggered, std::forward(args)...); + return result; + } + +#if QT_CONFIG(shortcut) + QAction *addAction(const QString &text, const QKeySequence &shortcut); + QAction *addAction(const QIcon &icon, const QString &text, const QKeySequence &shortcut); + QAction *addAction(const QString &text, const QKeySequence &shortcut, + const QObject *receiver, const char *member, + Qt::ConnectionType type = Qt::AutoConnection); + QAction *addAction(const QIcon &icon, const QString &text, const QKeySequence &shortcut, + const QObject *receiver, const char *member, + Qt::ConnectionType type = Qt::AutoConnection); + + template > + QAction *addAction(const QString &text, const QKeySequence &shortcut, Args&&...args) + { + QAction *result = addAction(text, shortcut); + connect(result, &QAction::triggered, std::forward(args)...); + return result; + } + template > + QAction *addAction(const QIcon &icon, const QString &text, const QKeySequence &shortcut, Args&&...args) + { + QAction *result = addAction(icon, text, shortcut); + connect(result, &QAction::triggered, std::forward(args)...); + return result; + } +#endif // QT_CONFIG(shortcut) +#endif // QT_NO_ACTION + + QWidget *parentWidget() const; + + void setWindowFlags(Qt::WindowFlags type); + inline Qt::WindowFlags windowFlags() const; + void setWindowFlag(Qt::WindowType, bool on = true); + void overrideWindowFlags(Qt::WindowFlags type); + + inline Qt::WindowType windowType() const; + + static QWidget *find(WId); + inline QWidget *childAt(int x, int y) const; + QWidget *childAt(const QPoint &p) const; + QWidget *childAt(const QPointF &p) const; + + void setAttribute(Qt::WidgetAttribute, bool on = true); + inline bool testAttribute(Qt::WidgetAttribute) const; + + QPaintEngine *paintEngine() const override; + + void ensurePolished() const; + + bool isAncestorOf(const QWidget *child) const; + +#ifdef QT_KEYPAD_NAVIGATION + bool hasEditFocus() const; + void setEditFocus(bool on); +#endif + + bool autoFillBackground() const; + void setAutoFillBackground(bool enabled); + + QBackingStore *backingStore() const; + + QWindow *windowHandle() const; + QScreen *screen() const; + void setScreen(QScreen *); + + static QWidget *createWindowContainer(QWindow *window, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()); + +Q_SIGNALS: + void windowTitleChanged(const QString &title); + void windowIconChanged(const QIcon &icon); + void windowIconTextChanged(const QString &iconText); + void customContextMenuRequested(const QPoint &pos); + +protected: + // Event handlers + bool event(QEvent *event) override; + virtual void mousePressEvent(QMouseEvent *event); + virtual void mouseReleaseEvent(QMouseEvent *event); + virtual void mouseDoubleClickEvent(QMouseEvent *event); + virtual void mouseMoveEvent(QMouseEvent *event); +#if QT_CONFIG(wheelevent) + virtual void wheelEvent(QWheelEvent *event); +#endif + virtual void keyPressEvent(QKeyEvent *event); + virtual void keyReleaseEvent(QKeyEvent *event); + virtual void focusInEvent(QFocusEvent *event); + virtual void focusOutEvent(QFocusEvent *event); + virtual void enterEvent(QEnterEvent *event); + virtual void leaveEvent(QEvent *event); + virtual void paintEvent(QPaintEvent *event); + virtual void moveEvent(QMoveEvent *event); + virtual void resizeEvent(QResizeEvent *event); + virtual void closeEvent(QCloseEvent *event); +#ifndef QT_NO_CONTEXTMENU + virtual void contextMenuEvent(QContextMenuEvent *event); +#endif +#if QT_CONFIG(tabletevent) + virtual void tabletEvent(QTabletEvent *event); +#endif +#ifndef QT_NO_ACTION + virtual void actionEvent(QActionEvent *event); +#endif + +#if QT_CONFIG(draganddrop) + virtual void dragEnterEvent(QDragEnterEvent *event); + virtual void dragMoveEvent(QDragMoveEvent *event); + virtual void dragLeaveEvent(QDragLeaveEvent *event); + virtual void dropEvent(QDropEvent *event); +#endif + + virtual void showEvent(QShowEvent *event); + virtual void hideEvent(QHideEvent *event); + + virtual bool nativeEvent(const QByteArray &eventType, void *message, qintptr *result); + + // Misc. protected functions + virtual void changeEvent(QEvent *); + + int metric(PaintDeviceMetric) const override; + void initPainter(QPainter *painter) const override; + QPaintDevice *redirected(QPoint *offset) const override; + QPainter *sharedPainter() const override; + + virtual void inputMethodEvent(QInputMethodEvent *); +public: + virtual QVariant inputMethodQuery(Qt::InputMethodQuery) const; + + Qt::InputMethodHints inputMethodHints() const; + void setInputMethodHints(Qt::InputMethodHints hints); + +protected Q_SLOTS: + void updateMicroFocus(Qt::InputMethodQuery query = Qt::ImQueryAll); +protected: + + void create(WId = 0, bool initializeWindow = true, + bool destroyOldWindow = true); + void destroy(bool destroyWindow = true, + bool destroySubWindows = true); + + friend class QDataWidgetMapperPrivate; // for access to focusNextPrevChild + virtual bool focusNextPrevChild(bool next); + inline bool focusNextChild() { return focusNextPrevChild(true); } + inline bool focusPreviousChild() { return focusNextPrevChild(false); } + +protected: + QWidget(QWidgetPrivate &d, QWidget* parent, Qt::WindowFlags f); +private: + void setBackingStore(QBackingStore *store); + + bool testAttribute_helper(Qt::WidgetAttribute) const; + + QLayout *takeLayout(); + + friend class QBackingStoreDevice; + friend class QWidgetRepaintManager; + friend class QApplication; + friend class QApplicationPrivate; + friend class QGuiApplication; + friend class QGuiApplicationPrivate; + friend class QBaseApplication; + friend class QPainter; + friend class QPainterPrivate; + friend class QPixmap; // for QPixmap::fill() + friend class QFontMetrics; + friend class QFontInfo; + friend class QLayout; + friend class QWidgetItem; + friend class QWidgetItemV2; + friend class QX11PaintEngine; + friend class QWin32PaintEngine; + friend class QShortcutPrivate; + friend class QWindowSurface; + friend class QGraphicsProxyWidget; + friend class QGraphicsProxyWidgetPrivate; + friend class QStyleSheetStyle; + friend struct QWidgetExceptionCleaner; + friend class QWidgetWindow; + friend class QAccessibleWidget; + friend class QAccessibleTable; + friend class QAccessibleTabButton; +#ifndef QT_NO_GESTURES + friend class QGestureManager; + friend class QWinNativePanGestureRecognizer; +#endif // QT_NO_GESTURES + friend class QWidgetEffectSourcePrivate; + + friend Q_WIDGETS_EXPORT QWidgetData *qt_qwidget_data(QWidget *widget); + friend Q_WIDGETS_EXPORT QWidgetPrivate *qt_widget_private(QWidget *widget); + +private: + Q_DISABLE_COPY(QWidget) + Q_PRIVATE_SLOT(d_func(), void _q_showIfNotHidden()) + Q_PRIVATE_SLOT(d_func(), QWindow *_q_closestWindowHandle()) + + QWidgetData *data; +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QWidget::RenderFlags) + +#ifndef Q_QDOC +template <> inline QWidget *qobject_cast(QObject *o) +{ + if (!o || !o->isWidgetType()) return nullptr; + return static_cast(o); +} +template <> inline const QWidget *qobject_cast(const QObject *o) +{ + if (!o || !o->isWidgetType()) return nullptr; + return static_cast(o); +} +#endif // !Q_QDOC + +inline QWidget *QWidget::childAt(int ax, int ay) const +{ return childAt(QPointF(ax, ay)); } + +inline Qt::WindowType QWidget::windowType() const +{ return static_cast((data->window_flags & Qt::WindowType_Mask).toInt()); } +inline Qt::WindowFlags QWidget::windowFlags() const +{ return data->window_flags; } + +#if QT_DEPRECATED_SINCE(6, 1) +inline bool QWidget::isTopLevel() const +{ return bool(windowType() & Qt::Window); } +#endif + +inline bool QWidget::isWindow() const +{ return bool(windowType() & Qt::Window); } + +inline bool QWidget::isEnabled() const +{ return !testAttribute(Qt::WA_Disabled); } + +inline bool QWidget::isModal() const +{ return data->window_modality != Qt::NonModal; } + +inline int QWidget::minimumWidth() const +{ return minimumSize().width(); } + +inline int QWidget::minimumHeight() const +{ return minimumSize().height(); } + +inline int QWidget::maximumWidth() const +{ return maximumSize().width(); } + +inline int QWidget::maximumHeight() const +{ return maximumSize().height(); } + +inline void QWidget::setMinimumSize(const QSize &s) +{ setMinimumSize(s.width(),s.height()); } + +inline void QWidget::setMaximumSize(const QSize &s) +{ setMaximumSize(s.width(),s.height()); } + +inline void QWidget::setSizeIncrement(const QSize &s) +{ setSizeIncrement(s.width(),s.height()); } + +inline void QWidget::setBaseSize(const QSize &s) +{ setBaseSize(s.width(),s.height()); } + +inline const QFont &QWidget::font() const +{ return data->fnt; } + +inline QFontMetrics QWidget::fontMetrics() const +{ return QFontMetrics(data->fnt); } + +inline QFontInfo QWidget::fontInfo() const +{ return QFontInfo(data->fnt); } + +inline void QWidget::setMouseTracking(bool enable) +{ setAttribute(Qt::WA_MouseTracking, enable); } + +inline bool QWidget::hasMouseTracking() const +{ return testAttribute(Qt::WA_MouseTracking); } + +inline bool QWidget::underMouse() const +{ return testAttribute(Qt::WA_UnderMouse); } + +inline void QWidget::setTabletTracking(bool enable) +{ setAttribute(Qt::WA_TabletTracking, enable); } + +inline bool QWidget::hasTabletTracking() const +{ return testAttribute(Qt::WA_TabletTracking); } + +inline bool QWidget::updatesEnabled() const +{ return !testAttribute(Qt::WA_UpdatesDisabled); } + +inline void QWidget::update(int ax, int ay, int aw, int ah) +{ update(QRect(ax, ay, aw, ah)); } + +inline bool QWidget::isVisible() const +{ return testAttribute(Qt::WA_WState_Visible); } + +inline bool QWidget::isHidden() const +{ return testAttribute(Qt::WA_WState_Hidden); } + +inline void QWidget::move(int ax, int ay) +{ move(QPoint(ax, ay)); } + +inline void QWidget::resize(int w, int h) +{ resize(QSize(w, h)); } + +inline void QWidget::setGeometry(int ax, int ay, int aw, int ah) +{ setGeometry(QRect(ax, ay, aw, ah)); } + +inline QRect QWidget::rect() const +{ return QRect(0,0,data->crect.width(),data->crect.height()); } + +inline const QRect &QWidget::geometry() const +{ return data->crect; } + +inline QSize QWidget::size() const +{ return data->crect.size(); } + +inline int QWidget::width() const +{ return data->crect.width(); } + +inline int QWidget::height() const +{ return data->crect.height(); } + +inline QWidget *QWidget::parentWidget() const +{ return static_cast(QObject::parent()); } + +inline void QWidget::setSizePolicy(QSizePolicy::Policy hor, QSizePolicy::Policy ver) +{ setSizePolicy(QSizePolicy(hor, ver)); } + +inline bool QWidget::testAttribute(Qt::WidgetAttribute attribute) const +{ + if (attribute < int(8*sizeof(uint))) + return data->widget_attributes & (1< +#include + +QT_REQUIRE_CONFIG(action); + +QT_BEGIN_NAMESPACE + +class QWidgetActionPrivate; + +class Q_WIDGETS_EXPORT QWidgetAction : public QAction +{ + Q_OBJECT + Q_DECLARE_PRIVATE(QWidgetAction) + +public: + explicit QWidgetAction(QObject *parent); + virtual ~QWidgetAction(); + + void setDefaultWidget(QWidget *w); + QWidget *defaultWidget() const; + + QWidget *requestWidget(QWidget *parent); + void releaseWidget(QWidget *widget); + +protected: + virtual bool event(QEvent *) override; + virtual bool eventFilter(QObject *, QEvent *) override; + virtual QWidget *createWidget(QWidget *parent); + virtual void deleteWidget(QWidget *widget); + QList createdWidgets() const; + +private: + Q_DISABLE_COPY(QWidgetAction) + friend class QToolBar; +}; + +QT_END_NAMESPACE + +#endif // QWIDGETACTION_H diff --git a/qt/6.8.1/msvc2022_64/include/QtWidgets/qwizard.h b/qt/6.8.1/msvc2022_64/include/QtWidgets/qwizard.h new file mode 100644 index 0000000000000000000000000000000000000000..7aa3063fd417545d4ab8c76871dc8aa1883169ef --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtWidgets/qwizard.h @@ -0,0 +1,227 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QWIZARD_H +#define QWIZARD_H + +#include +#include + +QT_REQUIRE_CONFIG(wizard); + +QT_BEGIN_NAMESPACE + +class QAbstractButton; +class QWizardPage; +class QWizardPrivate; + +class Q_WIDGETS_EXPORT QWizard : public QDialog +{ + Q_OBJECT + Q_PROPERTY(WizardStyle wizardStyle READ wizardStyle WRITE setWizardStyle) + Q_PROPERTY(WizardOptions options READ options WRITE setOptions) + Q_PROPERTY(Qt::TextFormat titleFormat READ titleFormat WRITE setTitleFormat) + Q_PROPERTY(Qt::TextFormat subTitleFormat READ subTitleFormat WRITE setSubTitleFormat) + Q_PROPERTY(int startId READ startId WRITE setStartId) + Q_PROPERTY(int currentId READ currentId WRITE setCurrentId NOTIFY currentIdChanged) + +public: + enum WizardButton { + BackButton, + NextButton, + CommitButton, + FinishButton, + CancelButton, + HelpButton, + CustomButton1, + CustomButton2, + CustomButton3, + Stretch, + + NoButton = -1, + NStandardButtons = 6, + NButtons = 9 + }; + + enum WizardPixmap { + WatermarkPixmap, + LogoPixmap, + BannerPixmap, + BackgroundPixmap, + NPixmaps + }; + + enum WizardStyle { + ClassicStyle, + ModernStyle, + MacStyle, + AeroStyle, + NStyles + }; + Q_ENUM(WizardStyle) + + enum WizardOption { + IndependentPages = 0x00000001, + IgnoreSubTitles = 0x00000002, + ExtendedWatermarkPixmap = 0x00000004, + NoDefaultButton = 0x00000008, + NoBackButtonOnStartPage = 0x00000010, + NoBackButtonOnLastPage = 0x00000020, + DisabledBackButtonOnLastPage = 0x00000040, + HaveNextButtonOnLastPage = 0x00000080, + HaveFinishButtonOnEarlyPages = 0x00000100, + NoCancelButton = 0x00000200, + CancelButtonOnLeft = 0x00000400, + HaveHelpButton = 0x00000800, + HelpButtonOnRight = 0x00001000, + HaveCustomButton1 = 0x00002000, + HaveCustomButton2 = 0x00004000, + HaveCustomButton3 = 0x00008000, + NoCancelButtonOnLastPage = 0x00010000 + }; + Q_ENUM(WizardOption) + + Q_DECLARE_FLAGS(WizardOptions, WizardOption) + Q_FLAG(WizardOptions) + + explicit QWizard(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()); + ~QWizard(); + + int addPage(QWizardPage *page); + void setPage(int id, QWizardPage *page); + void removePage(int id); + QWizardPage *page(int id) const; + bool hasVisitedPage(int id) const; + QList visitedIds() const; + QList pageIds() const; + void setStartId(int id); + int startId() const; + QWizardPage *currentPage() const; + int currentId() const; + + virtual bool validateCurrentPage(); + virtual int nextId() const; + + void setField(const QString &name, const QVariant &value); + QVariant field(const QString &name) const; + + void setWizardStyle(WizardStyle style); + WizardStyle wizardStyle() const; + + void setOption(WizardOption option, bool on = true); + bool testOption(WizardOption option) const; + void setOptions(WizardOptions options); + WizardOptions options() const; + + void setButtonText(WizardButton which, const QString &text); + QString buttonText(WizardButton which) const; + void setButtonLayout(const QList &layout); + void setButton(WizardButton which, QAbstractButton *button); + QAbstractButton *button(WizardButton which) const; + + void setTitleFormat(Qt::TextFormat format); + Qt::TextFormat titleFormat() const; + void setSubTitleFormat(Qt::TextFormat format); + Qt::TextFormat subTitleFormat() const; + void setPixmap(WizardPixmap which, const QPixmap &pixmap); + QPixmap pixmap(WizardPixmap which) const; + + void setSideWidget(QWidget *widget); + QWidget *sideWidget() const; + + void setDefaultProperty(const char *className, const char *property, + const char *changedSignal); + + void setVisible(bool visible) override; + QSize sizeHint() const override; + +Q_SIGNALS: + void currentIdChanged(int id); + void helpRequested(); + void customButtonClicked(int which); + void pageAdded(int id); + void pageRemoved(int id); + +public Q_SLOTS: + void back(); + void next(); + void setCurrentId(int id); + void restart(); + +protected: + bool event(QEvent *event) override; + void resizeEvent(QResizeEvent *event) override; + void paintEvent(QPaintEvent *event) override; +#if defined(Q_OS_WIN) || defined(Q_QDOC) + bool nativeEvent(const QByteArray &eventType, void *message, qintptr *result) override; +#endif + void done(int result) override; + virtual void initializePage(int id); + virtual void cleanupPage(int id); + +private: + Q_DISABLE_COPY(QWizard) + Q_DECLARE_PRIVATE(QWizard) + Q_PRIVATE_SLOT(d_func(), void _q_emitCustomButtonClicked()) + Q_PRIVATE_SLOT(d_func(), void _q_updateButtonStates()) + Q_PRIVATE_SLOT(d_func(), void _q_handleFieldObjectDestroyed(QObject *)) + + friend class QWizardPage; +}; + +Q_DECLARE_OPERATORS_FOR_FLAGS(QWizard::WizardOptions) + +class QWizardPagePrivate; + +class Q_WIDGETS_EXPORT QWizardPage : public QWidget +{ + Q_OBJECT + Q_PROPERTY(QString title READ title WRITE setTitle) + Q_PROPERTY(QString subTitle READ subTitle WRITE setSubTitle) + +public: + explicit QWizardPage(QWidget *parent = nullptr); + ~QWizardPage(); + + void setTitle(const QString &title); + QString title() const; + void setSubTitle(const QString &subTitle); + QString subTitle() const; + void setPixmap(QWizard::WizardPixmap which, const QPixmap &pixmap); + QPixmap pixmap(QWizard::WizardPixmap which) const; + void setFinalPage(bool finalPage); + bool isFinalPage() const; + void setCommitPage(bool commitPage); + bool isCommitPage() const; + void setButtonText(QWizard::WizardButton which, const QString &text); + QString buttonText(QWizard::WizardButton which) const; + + virtual void initializePage(); + virtual void cleanupPage(); + virtual bool validatePage(); + virtual bool isComplete() const; + virtual int nextId() const; + +Q_SIGNALS: + void completeChanged(); + +protected: + void setField(const QString &name, const QVariant &value); + QVariant field(const QString &name) const; + void registerField(const QString &name, QWidget *widget, const char *property = nullptr, + const char *changedSignal = nullptr); + QWizard *wizard() const; + +private: + Q_DISABLE_COPY(QWizardPage) + Q_DECLARE_PRIVATE(QWizardPage) + Q_PRIVATE_SLOT(d_func(), void _q_maybeEmitCompleteChanged()) + Q_PRIVATE_SLOT(d_func(), void _q_updateCachedCompleteState()) + + friend class QWizard; + friend class QWizardPrivate; +}; + +QT_END_NAMESPACE + +#endif // QWIZARD_H diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/6.8.1/QtXml/private/qdom_p.h b/qt/6.8.1/msvc2022_64/include/QtXml/6.8.1/QtXml/private/qdom_p.h new file mode 100644 index 0000000000000000000000000000000000000000..df0c70e668de9735f666bc093e728cd6071e636a --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/6.8.1/QtXml/private/qdom_p.h @@ -0,0 +1,496 @@ +// Copyright (C) 2019 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +#ifndef QDOM_P_H +#define QDOM_P_H + +#include "qdom.h" + +#include +#include +#include +#include +#include + +QT_REQUIRE_CONFIG(dom); +QT_BEGIN_NAMESPACE + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists for the convenience of +// qxml.cpp and qdom.cpp. This header file may change from version to version without +// notice, or even be removed. +// +// We mean it. +// + +/************************************************************** + * + * Private class declarations + * + **************************************************************/ + +class QDomImplementationPrivate +{ +public: + inline QDomImplementationPrivate() {} + + QDomImplementationPrivate *clone(); + QAtomicInt ref; + static QDomImplementation::InvalidDataPolicy invalidDataPolicy; +}; + +class QDomNodePrivate +{ +public: + QDomNodePrivate(QDomDocumentPrivate *, QDomNodePrivate *parent = nullptr); + QDomNodePrivate(QDomNodePrivate *n, bool deep); + virtual ~QDomNodePrivate(); + + QString nodeName() const { return name; } + QString nodeValue() const { return value; } + virtual void setNodeValue(const QString &v) { value = v; } + + QDomDocumentPrivate *ownerDocument(); + void setOwnerDocument(QDomDocumentPrivate *doc); + + virtual QDomNodePrivate *insertBefore(QDomNodePrivate *newChild, QDomNodePrivate *refChild); + virtual QDomNodePrivate *insertAfter(QDomNodePrivate *newChild, QDomNodePrivate *refChild); + virtual QDomNodePrivate *replaceChild(QDomNodePrivate *newChild, QDomNodePrivate *oldChild); + virtual QDomNodePrivate *removeChild(QDomNodePrivate *oldChild); + virtual QDomNodePrivate *appendChild(QDomNodePrivate *newChild); + + QDomNodePrivate *namedItem(const QString &name); + + virtual QDomNodePrivate *cloneNode(bool deep = true); + virtual void normalize(); + virtual void clear(); + + inline QDomNodePrivate *parent() const { return hasParent ? ownerNode : nullptr; } + inline void setParent(QDomNodePrivate *p) + { + ownerNode = p; + hasParent = true; + } + + void setNoParent() + { + ownerNode = hasParent ? (QDomNodePrivate *)ownerDocument() : nullptr; + hasParent = false; + } + + // Dynamic cast + bool isAttr() const { return nodeType() == QDomNode::AttributeNode; } + bool isCDATASection() const { return nodeType() == QDomNode::CDATASectionNode; } + bool isDocumentFragment() const { return nodeType() == QDomNode::DocumentFragmentNode; } + bool isDocument() const { return nodeType() == QDomNode::DocumentNode; } + bool isDocumentType() const { return nodeType() == QDomNode::DocumentTypeNode; } + bool isElement() const { return nodeType() == QDomNode::ElementNode; } + bool isEntityReference() const { return nodeType() == QDomNode::EntityReferenceNode; } + bool isText() const + { + const QDomNode::NodeType nt = nodeType(); + return (nt == QDomNode::TextNode) || (nt == QDomNode::CDATASectionNode); + } + bool isEntity() const { return nodeType() == QDomNode::EntityNode; } + bool isNotation() const { return nodeType() == QDomNode::NotationNode; } + bool isProcessingInstruction() const + { + return nodeType() == QDomNode::ProcessingInstructionNode; + } + bool isCharacterData() const + { + const QDomNode::NodeType nt = nodeType(); + return (nt == QDomNode::CharacterDataNode) || (nt == QDomNode::TextNode) + || (nt == QDomNode::CommentNode); + } + bool isComment() const { return nodeType() == QDomNode::CommentNode; } + + virtual QDomNode::NodeType nodeType() const { return QDomNode::BaseNode; } + + virtual void save(QTextStream &, int, int) const; + + void setLocation(int lineNumber, int columnNumber); + + // Variables + QAtomicInt ref; + QDomNodePrivate *prev; + QDomNodePrivate *next; + QDomNodePrivate *ownerNode; // either the node's parent or the node's owner document + QDomNodePrivate *first; + QDomNodePrivate *last; + + QString name; // this is the local name if prefix != null + QString value; + QString prefix; // set this only for ElementNode and AttributeNode + QString namespaceURI; // set this only for ElementNode and AttributeNode + bool createdWithDom1Interface : 1; + bool hasParent : 1; + + int lineNumber; + int columnNumber; +}; + +class QDomNodeListPrivate +{ +public: + QDomNodeListPrivate(QDomNodePrivate *); + QDomNodeListPrivate(QDomNodePrivate *, const QString &); + QDomNodeListPrivate(QDomNodePrivate *, const QString &, const QString &); + ~QDomNodeListPrivate(); + + bool operator==(const QDomNodeListPrivate &) const noexcept; + + void createList() const; + bool maybeCreateList() const; + QDomNodePrivate *item(int index); + int length() const; + + QAtomicInt ref; + /* + This list contains the children of this node. + */ + QDomNodePrivate *node_impl; + QString tagname; + QString nsURI; + mutable QList list; + mutable long timestamp; +}; + +class QDomNamedNodeMapPrivate +{ +public: + QDomNamedNodeMapPrivate(QDomNodePrivate *); + ~QDomNamedNodeMapPrivate(); + + QDomNodePrivate *namedItem(const QString &name) const; + QDomNodePrivate *namedItemNS(const QString &nsURI, const QString &localName) const; + QDomNodePrivate *setNamedItem(QDomNodePrivate *arg); + QDomNodePrivate *setNamedItemNS(QDomNodePrivate *arg); + QDomNodePrivate *removeNamedItem(const QString &name); + QDomNodePrivate *item(int index) const; + int length() const; + bool contains(const QString &name) const; + bool containsNS(const QString &nsURI, const QString &localName) const; + + /** + * Remove all children from the map. + */ + void clearMap(); + bool isReadOnly() { return readonly; } + void setReadOnly(bool r) { readonly = r; } + bool isAppendToParent() { return appendToParent; } + /** + * If true, then the node will redirect insert/remove calls + * to its parent by calling QDomNodePrivate::appendChild or removeChild. + * In addition the map won't increase or decrease the reference count + * of the nodes it contains. + * + * By default this value is false and the map will handle reference counting + * by itself. + */ + void setAppendToParent(bool b) { appendToParent = b; } + + /** + * Creates a copy of the map. It is a deep copy + * that means that all children are cloned. + */ + QDomNamedNodeMapPrivate *clone(QDomNodePrivate *parent); + + // Variables + QAtomicInt ref; + QMultiHash map; + QDomNodePrivate *parent; + bool readonly; + bool appendToParent; +}; + +class QDomDocumentTypePrivate : public QDomNodePrivate +{ +public: + QDomDocumentTypePrivate(QDomDocumentPrivate *, QDomNodePrivate *parent = nullptr); + QDomDocumentTypePrivate(QDomDocumentTypePrivate *n, bool deep); + ~QDomDocumentTypePrivate(); + void init(); + + // Reimplemented from QDomNodePrivate + QDomNodePrivate *cloneNode(bool deep = true) override; + QDomNodePrivate *insertBefore(QDomNodePrivate *newChild, QDomNodePrivate *refChild) override; + QDomNodePrivate *insertAfter(QDomNodePrivate *newChild, QDomNodePrivate *refChild) override; + QDomNodePrivate *replaceChild(QDomNodePrivate *newChild, QDomNodePrivate *oldChild) override; + QDomNodePrivate *removeChild(QDomNodePrivate *oldChild) override; + QDomNodePrivate *appendChild(QDomNodePrivate *newChild) override; + + QDomNode::NodeType nodeType() const override { return QDomNode::DocumentTypeNode; } + + void save(QTextStream &s, int, int) const override; + + // Variables + QDomNamedNodeMapPrivate *entities; + QDomNamedNodeMapPrivate *notations; + QString publicId; + QString systemId; + QString internalSubset; +}; + +class QDomDocumentFragmentPrivate : public QDomNodePrivate +{ +public: + QDomDocumentFragmentPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent = nullptr); + QDomDocumentFragmentPrivate(QDomNodePrivate *n, bool deep); + + // Reimplemented from QDomNodePrivate + virtual QDomNodePrivate *cloneNode(bool deep = true) override; + QDomNode::NodeType nodeType() const override { return QDomNode::DocumentFragmentNode; } +}; + +class QDomCharacterDataPrivate : public QDomNodePrivate +{ +public: + QDomCharacterDataPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &data); + QDomCharacterDataPrivate(QDomCharacterDataPrivate *n, bool deep); + + int dataLength() const; + QString substringData(unsigned long offset, unsigned long count) const; + void appendData(const QString &arg); + void insertData(unsigned long offset, const QString &arg); + void deleteData(unsigned long offset, unsigned long count); + void replaceData(unsigned long offset, unsigned long count, const QString &arg); + + // Reimplemented from QDomNodePrivate + QDomNode::NodeType nodeType() const override { return QDomNode::CharacterDataNode; } + QDomNodePrivate *cloneNode(bool deep = true) override; +}; + +class QDomTextPrivate : public QDomCharacterDataPrivate +{ +public: + QDomTextPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &val); + QDomTextPrivate(QDomTextPrivate *n, bool deep); + + QDomTextPrivate *splitText(int offset); + + // Reimplemented from QDomNodePrivate + QDomNodePrivate *cloneNode(bool deep = true) override; + QDomNode::NodeType nodeType() const override { return QDomNode::TextNode; } + virtual void save(QTextStream &s, int, int) const override; +}; + +class QDomAttrPrivate : public QDomNodePrivate +{ +public: + QDomAttrPrivate(QDomDocumentPrivate *, QDomNodePrivate *, const QString &name); + QDomAttrPrivate(QDomDocumentPrivate *, QDomNodePrivate *, const QString &nsURI, + const QString &qName); + QDomAttrPrivate(QDomAttrPrivate *n, bool deep); + + bool specified() const; + + // Reimplemented from QDomNodePrivate + void setNodeValue(const QString &v) override; + QDomNodePrivate *cloneNode(bool deep = true) override; + QDomNode::NodeType nodeType() const override { return QDomNode::AttributeNode; } + virtual void save(QTextStream &s, int, int) const override; + + // Variables + bool m_specified; +}; + +class QDomElementPrivate : public QDomNodePrivate +{ +public: + QDomElementPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &name); + QDomElementPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &nsURI, + const QString &qName); + QDomElementPrivate(QDomElementPrivate *n, bool deep); + ~QDomElementPrivate(); + + QString attribute(const QString &name, const QString &defValue) const; + QString attributeNS(const QString &nsURI, const QString &localName, + const QString &defValue) const; + void setAttribute(const QString &name, const QString &value); + void setAttributeNS(const QString &nsURI, const QString &qName, const QString &newValue); + void removeAttribute(const QString &name); + QDomAttrPrivate *attributeNode(const QString &name); + QDomAttrPrivate *attributeNodeNS(const QString &nsURI, const QString &localName); + QDomAttrPrivate *setAttributeNode(QDomAttrPrivate *newAttr); + QDomAttrPrivate *setAttributeNodeNS(QDomAttrPrivate *newAttr); + QDomAttrPrivate *removeAttributeNode(QDomAttrPrivate *oldAttr); + bool hasAttribute(const QString &name); + bool hasAttributeNS(const QString &nsURI, const QString &localName); + + QString text(); + + // Reimplemented from QDomNodePrivate + QDomNamedNodeMapPrivate *attributes() { return m_attr; } + bool hasAttributes() { return (m_attr->length() > 0); } + QDomNode::NodeType nodeType() const override { return QDomNode::ElementNode; } + QDomNodePrivate *cloneNode(bool deep = true) override; + virtual void save(QTextStream &s, int, int) const override; + + // Variables + QDomNamedNodeMapPrivate *m_attr; +}; + +class QDomCommentPrivate : public QDomCharacterDataPrivate +{ +public: + QDomCommentPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &val); + QDomCommentPrivate(QDomCommentPrivate *n, bool deep); + + // Reimplemented from QDomNodePrivate + QDomNodePrivate *cloneNode(bool deep = true) override; + QDomNode::NodeType nodeType() const override { return QDomNode::CommentNode; } + virtual void save(QTextStream &s, int, int) const override; +}; + +class QDomCDATASectionPrivate : public QDomTextPrivate +{ +public: + QDomCDATASectionPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &val); + QDomCDATASectionPrivate(QDomCDATASectionPrivate *n, bool deep); + + // Reimplemented from QDomNodePrivate + QDomNodePrivate *cloneNode(bool deep = true) override; + QDomNode::NodeType nodeType() const override { return QDomNode::CDATASectionNode; } + virtual void save(QTextStream &s, int, int) const override; +}; + +class QDomNotationPrivate : public QDomNodePrivate +{ +public: + QDomNotationPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &name, + const QString &pub, const QString &sys); + QDomNotationPrivate(QDomNotationPrivate *n, bool deep); + + // Reimplemented from QDomNodePrivate + QDomNodePrivate *cloneNode(bool deep = true) override; + QDomNode::NodeType nodeType() const override { return QDomNode::NotationNode; } + virtual void save(QTextStream &s, int, int) const override; + + // Variables + QString m_sys; + QString m_pub; +}; + +class QDomEntityPrivate : public QDomNodePrivate +{ +public: + QDomEntityPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &name, + const QString &pub, const QString &sys, const QString ¬ation); + QDomEntityPrivate(QDomEntityPrivate *n, bool deep); + + // Reimplemented from QDomNodePrivate + QDomNodePrivate *cloneNode(bool deep = true) override; + QDomNode::NodeType nodeType() const override { return QDomNode::EntityNode; } + virtual void save(QTextStream &s, int, int) const override; + + // Variables + QString m_sys; + QString m_pub; + QString m_notationName; +}; + +class QDomEntityReferencePrivate : public QDomNodePrivate +{ +public: + QDomEntityReferencePrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &name); + QDomEntityReferencePrivate(QDomNodePrivate *n, bool deep); + + // Reimplemented from QDomNodePrivate + QDomNodePrivate *cloneNode(bool deep = true) override; + QDomNode::NodeType nodeType() const override { return QDomNode::EntityReferenceNode; } + virtual void save(QTextStream &s, int, int) const override; +}; + +class QDomProcessingInstructionPrivate : public QDomNodePrivate +{ +public: + QDomProcessingInstructionPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, + const QString &target, const QString &data); + QDomProcessingInstructionPrivate(QDomProcessingInstructionPrivate *n, bool deep); + + // Reimplemented from QDomNodePrivate + QDomNodePrivate *cloneNode(bool deep = true) override; + QDomNode::NodeType nodeType() const override { return QDomNode::ProcessingInstructionNode; } + virtual void save(QTextStream &s, int, int) const override; +}; + +class QDomDocumentPrivate : public QDomNodePrivate +{ +public: + QDomDocumentPrivate(); + QDomDocumentPrivate(const QString &name); + QDomDocumentPrivate(QDomDocumentTypePrivate *dt); + QDomDocumentPrivate(QDomDocumentPrivate *n, bool deep); + ~QDomDocumentPrivate(); + + QDomDocument::ParseResult setContent(QXmlStreamReader *reader, + QDomDocument::ParseOptions options); + + // Attributes + QDomDocumentTypePrivate *doctype() { return type.data(); } + QDomImplementationPrivate *implementation() { return impl.data(); } + QDomElementPrivate *documentElement(); + + // Factories + QDomElementPrivate *createElement(const QString &tagName); + QDomElementPrivate *createElementNS(const QString &nsURI, const QString &qName); + QDomDocumentFragmentPrivate *createDocumentFragment(); + QDomTextPrivate *createTextNode(const QString &data); + QDomCommentPrivate *createComment(const QString &data); + QDomCDATASectionPrivate *createCDATASection(const QString &data); + QDomProcessingInstructionPrivate *createProcessingInstruction(const QString &target, + const QString &data); + QDomAttrPrivate *createAttribute(const QString &name); + QDomAttrPrivate *createAttributeNS(const QString &nsURI, const QString &qName); + QDomEntityReferencePrivate *createEntityReference(const QString &name); + + QDomNodePrivate *importNode(QDomNodePrivate *importedNode, bool deep); + + // Reimplemented from QDomNodePrivate + QDomNodePrivate *cloneNode(bool deep = true) override; + QDomNode::NodeType nodeType() const override { return QDomNode::DocumentNode; } + void clear() override; + + // Variables + QExplicitlySharedDataPointer impl; + QExplicitlySharedDataPointer type; + + void saveDocument(QTextStream &stream, const int indent, + QDomNode::EncodingPolicy encUsed) const; + + /* \internal + Counter for the QDomNodeListPrivate timestamps. + + This is a cache optimization, that might in some cases be effective. The + dilemma is that QDomNode::childNodes() returns a list, but the + implementation stores the children in a linked list. Hence, in order to + get the children out through childNodes(), a list must be populated each + time, which is O(N). + + DOM has the requirement of node references being live, see DOM Core + Level 3, 1.1.1 The DOM Structure Model, which means that changes to the + underlying documents must be reflected in node lists. + + This mechanism, nodeListTime, is a caching optimization that reduces the + amount of times the node list is rebuilt, by only doing so when the + document actually changes. However, a change to anywhere in any document + invalidate all lists, since no dependency tracking is done. + + It functions by that all modifying functions(insertBefore() and so on) + increment the count; each QDomNodeListPrivate copies nodeListTime on + construction, and compares its own value to nodeListTime in order to + determine whether it needs to rebuild. + + This is reentrant. The nodeListTime may overflow, but that's ok since we + check for equalness, not whether nodeListTime is smaller than the list's + stored timestamp. + */ + long nodeListTime; +}; + +QT_END_NAMESPACE + +#endif // QDOMHELPERS_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/6.8.1/QtXml/private/qdomhelpers_p.h b/qt/6.8.1/msvc2022_64/include/QtXml/6.8.1/QtXml/private/qdomhelpers_p.h new file mode 100644 index 0000000000000000000000000000000000000000..5b7a226878d749f97b9347aa669c8b8801de33a2 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/6.8.1/QtXml/private/qdomhelpers_p.h @@ -0,0 +1,100 @@ +// Copyright (C) 2021 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +#ifndef QDOMHELPERS_P_H +#define QDOMHELPERS_P_H + +#include +#include +#include + +QT_REQUIRE_CONFIG(dom); +QT_BEGIN_NAMESPACE + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists for the convenience of +// qxml.cpp and qdom.cpp. This header file may change from version to version without +// notice, or even be removed. +// +// We mean it. +// + +class QDomDocumentPrivate; +class QDomNodePrivate; +class QXmlStreamReader; +class QXmlStreamAttributes; + +/************************************************************** + * + * QDomBuilder + * + **************************************************************/ + +class QDomBuilder +{ +public: + QDomBuilder(QDomDocumentPrivate *d, QXmlStreamReader *r, QDomDocument::ParseOptions options); + ~QDomBuilder(); + + bool endDocument(); + bool startElement(const QString &nsURI, const QString &qName, const QXmlStreamAttributes &atts); + bool endElement(); + bool characters(const QString &characters, bool cdata = false); + bool processingInstruction(const QString &target, const QString &data); + bool skippedEntity(const QString &name); + bool startEntity(const QString &name); + bool endEntity(); + bool startDTD(const QString &name, const QString &publicId, const QString &systemId); + bool parseDTD(const QString &dtd); + bool comment(const QString &characters); + bool externalEntityDecl(const QString &name, const QString &publicId, const QString &systemId); + bool notationDecl(const QString &name, const QString &publicId, const QString &systemId); + bool unparsedEntityDecl(const QString &name, const QString &publicId, const QString &systemId, + const QString ¬ationName); + + void fatalError(const QString &message); + QDomDocument::ParseResult result() const { return parseResult; } + + bool preserveSpacingOnlyNodes() const + { return parseOptions & QDomDocument::ParseOption::PreserveSpacingOnlyNodes; } + +private: + QString dtdInternalSubset(const QString &dtd); + + QDomDocument::ParseResult parseResult; + QDomDocumentPrivate *doc; + QDomNodePrivate *node; + QXmlStreamReader *reader; + QString entityName; + QDomDocument::ParseOptions parseOptions; +}; + +/************************************************************** + * + * QDomParser + * + **************************************************************/ + +class QDomParser +{ + Q_DECLARE_TR_FUNCTIONS(QDomParser) +public: + QDomParser(QDomDocumentPrivate *d, QXmlStreamReader *r, QDomDocument::ParseOptions options); + + bool parse(); + QDomDocument::ParseResult result() const { return domBuilder.result(); } + +private: + bool parseProlog(); + bool parseBody(); + bool parseMarkupDecl(); + + QXmlStreamReader *reader; + QDomBuilder domBuilder; +}; + +QT_END_NAMESPACE + +#endif // QDOMHELPERS_P_H diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/6.8.1/QtXml/private/qtxml-config_p.h b/qt/6.8.1/msvc2022_64/include/QtXml/6.8.1/QtXml/private/qtxml-config_p.h new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomAttr b/qt/6.8.1/msvc2022_64/include/QtXml/QDomAttr new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomAttr @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomCDATASection b/qt/6.8.1/msvc2022_64/include/QtXml/QDomCDATASection new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomCDATASection @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomCharacterData b/qt/6.8.1/msvc2022_64/include/QtXml/QDomCharacterData new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomCharacterData @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomComment b/qt/6.8.1/msvc2022_64/include/QtXml/QDomComment new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomComment @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomDocument b/qt/6.8.1/msvc2022_64/include/QtXml/QDomDocument new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomDocument @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomDocumentFragment b/qt/6.8.1/msvc2022_64/include/QtXml/QDomDocumentFragment new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomDocumentFragment @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomDocumentType b/qt/6.8.1/msvc2022_64/include/QtXml/QDomDocumentType new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomDocumentType @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomElement b/qt/6.8.1/msvc2022_64/include/QtXml/QDomElement new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomElement @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomEntity b/qt/6.8.1/msvc2022_64/include/QtXml/QDomEntity new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomEntity @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomEntityReference b/qt/6.8.1/msvc2022_64/include/QtXml/QDomEntityReference new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomEntityReference @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomImplementation b/qt/6.8.1/msvc2022_64/include/QtXml/QDomImplementation new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomImplementation @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomNamedNodeMap b/qt/6.8.1/msvc2022_64/include/QtXml/QDomNamedNodeMap new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomNamedNodeMap @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomNode b/qt/6.8.1/msvc2022_64/include/QtXml/QDomNode new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomNode @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomNodeList b/qt/6.8.1/msvc2022_64/include/QtXml/QDomNodeList new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomNodeList @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomNotation b/qt/6.8.1/msvc2022_64/include/QtXml/QDomNotation new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomNotation @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomProcessingInstruction b/qt/6.8.1/msvc2022_64/include/QtXml/QDomProcessingInstruction new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomProcessingInstruction @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QDomText b/qt/6.8.1/msvc2022_64/include/QtXml/QDomText new file mode 100644 index 0000000000000000000000000000000000000000..94ab28883034063ad8146430f0b234752b30f09c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QDomText @@ -0,0 +1 @@ +#include "qdom.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QtXml b/qt/6.8.1/msvc2022_64/include/QtXml/QtXml new file mode 100644 index 0000000000000000000000000000000000000000..f2ac05033ff0e8c30e66197d52077f4401cfb4a1 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QtXml @@ -0,0 +1,7 @@ +#ifndef QT_QTXML_MODULE_H +#define QT_QTXML_MODULE_H +#include +#include "qtxmlglobal.h" +#include "qdom.h" +#include "qtxmlversion.h" +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QtXmlDepends b/qt/6.8.1/msvc2022_64/include/QtXml/QtXmlDepends new file mode 100644 index 0000000000000000000000000000000000000000..06e1d53a96e445517f6b3edb7555a9402f7a3ffd --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QtXmlDepends @@ -0,0 +1,4 @@ +/* This file was generated by cmake with the info from Xml target. */ +#ifdef __cplusplus /* create empty PCH in C mode */ +# include +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/QtXmlVersion b/qt/6.8.1/msvc2022_64/include/QtXml/QtXmlVersion new file mode 100644 index 0000000000000000000000000000000000000000..ae352356b54de83ae7b83a506f59461bc789d31c --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/QtXmlVersion @@ -0,0 +1 @@ +#include "qtxmlversion.h" // IWYU pragma: export diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/qdom.h b/qt/6.8.1/msvc2022_64/include/QtXml/qdom.h new file mode 100644 index 0000000000000000000000000000000000000000..71c0bf95dd4f53004a6ec6a4fcb4967776d3b4fc --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/qdom.h @@ -0,0 +1,672 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QDOM_H +#define QDOM_H + +#include +#include + +#if QT_CONFIG(dom) + +class tst_QDom; + +QT_BEGIN_NAMESPACE + +class QIODevice; +class QTextStream; + +class QDomDocumentPrivate; +class QDomDocumentTypePrivate; +class QDomDocumentFragmentPrivate; +class QDomNodePrivate; +class QDomNodeListPrivate; +class QDomImplementationPrivate; +class QDomElementPrivate; +class QDomNotationPrivate; +class QDomEntityPrivate; +class QDomEntityReferencePrivate; +class QDomProcessingInstructionPrivate; +class QDomAttrPrivate; +class QDomCharacterDataPrivate; +class QDomTextPrivate; +class QDomCommentPrivate; +class QDomCDATASectionPrivate; +class QDomNamedNodeMapPrivate; +class QDomImplementationPrivate; + +class QDomNodeList; +class QDomElement; +class QDomText; +class QDomComment; +class QDomCDATASection; +class QDomProcessingInstruction; +class QDomAttr; +class QDomEntityReference; +class QDomDocument; +class QDomNamedNodeMap; +class QDomDocument; +class QDomDocumentFragment; +class QDomDocumentType; +class QDomImplementation; +class QDomNode; +class QDomEntity; +class QDomNotation; +class QDomCharacterData; +class QXmlStreamReader; + +class Q_XML_EXPORT QDomImplementation +{ +public: + QDomImplementation(); + QDomImplementation(const QDomImplementation &implementation); + ~QDomImplementation(); + QDomImplementation& operator=(const QDomImplementation &other); + bool operator==(const QDomImplementation &other) const; + bool operator!=(const QDomImplementation &other) const; + + // functions + bool hasFeature(const QString& feature, const QString& version) const; + QDomDocumentType createDocumentType(const QString& qName, const QString& publicId, const QString& systemId); + QDomDocument createDocument(const QString& nsURI, const QString& qName, const QDomDocumentType& doctype); + + enum InvalidDataPolicy { AcceptInvalidChars = 0, DropInvalidChars, ReturnNullNode }; + static InvalidDataPolicy invalidDataPolicy(); + static void setInvalidDataPolicy(InvalidDataPolicy policy); + + // Qt extension + bool isNull(); + +private: + QDomImplementationPrivate* impl; + QDomImplementation(QDomImplementationPrivate*); + + friend class QDomDocument; +}; + +class Q_XML_EXPORT QDomNode +{ +public: + enum NodeType { + ElementNode = 1, + AttributeNode = 2, + TextNode = 3, + CDATASectionNode = 4, + EntityReferenceNode = 5, + EntityNode = 6, + ProcessingInstructionNode = 7, + CommentNode = 8, + DocumentNode = 9, + DocumentTypeNode = 10, + DocumentFragmentNode = 11, + NotationNode = 12, + BaseNode = 21,// this is not in the standard + CharacterDataNode = 22 // this is not in the standard + }; + + enum EncodingPolicy + { + EncodingFromDocument = 1, + EncodingFromTextStream = 2 + }; + + QDomNode(); + QDomNode(const QDomNode &node); + QDomNode& operator=(const QDomNode &other); + bool operator==(const QDomNode &other) const; + bool operator!=(const QDomNode &other) const; + ~QDomNode(); + + // DOM functions + QDomNode insertBefore(const QDomNode& newChild, const QDomNode& refChild); + QDomNode insertAfter(const QDomNode& newChild, const QDomNode& refChild); + QDomNode replaceChild(const QDomNode& newChild, const QDomNode& oldChild); + QDomNode removeChild(const QDomNode& oldChild); + QDomNode appendChild(const QDomNode& newChild); + bool hasChildNodes() const; + QDomNode cloneNode(bool deep = true) const; + void normalize(); + bool isSupported(const QString& feature, const QString& version) const; + + // DOM read-only attributes + QString nodeName() const; + NodeType nodeType() const; + QDomNode parentNode() const; + QDomNodeList childNodes() const; + QDomNode firstChild() const; + QDomNode lastChild() const; + QDomNode previousSibling() const; + QDomNode nextSibling() const; + QDomNamedNodeMap attributes() const; + QDomDocument ownerDocument() const; + QString namespaceURI() const; + QString localName() const; + bool hasAttributes() const; + + // DOM attributes + QString nodeValue() const; + void setNodeValue(const QString &value); + QString prefix() const; + void setPrefix(const QString& pre); + + // Qt extensions + bool isAttr() const; + bool isCDATASection() const; + bool isDocumentFragment() const; + bool isDocument() const; + bool isDocumentType() const; + bool isElement() const; + bool isEntityReference() const; + bool isText() const; + bool isEntity() const; + bool isNotation() const; + bool isProcessingInstruction() const; + bool isCharacterData() const; + bool isComment() const; + + /** + * Shortcut to avoid dealing with QDomNodeList + * all the time. + */ + QDomNode namedItem(const QString& name) const; + + bool isNull() const; + void clear(); + + QDomAttr toAttr() const; + QDomCDATASection toCDATASection() const; + QDomDocumentFragment toDocumentFragment() const; + QDomDocument toDocument() const; + QDomDocumentType toDocumentType() const; + QDomElement toElement() const; + QDomEntityReference toEntityReference() const; + QDomText toText() const; + QDomEntity toEntity() const; + QDomNotation toNotation() const; + QDomProcessingInstruction toProcessingInstruction() const; + QDomCharacterData toCharacterData() const; + QDomComment toComment() const; + + void save(QTextStream&, int, EncodingPolicy=QDomNode::EncodingFromDocument) const; + + QDomElement firstChildElement(const QString &tagName = QString(), const QString &namespaceURI = QString()) const; + QDomElement lastChildElement(const QString &tagName = QString(), const QString &namespaceURI = QString()) const; + QDomElement previousSiblingElement(const QString &tagName = QString(), const QString &namespaceURI = QString()) const; + QDomElement nextSiblingElement(const QString &taName = QString(), const QString &namespaceURI = QString()) const; + + int lineNumber() const; + int columnNumber() const; + +protected: + QDomNodePrivate* impl; + QDomNode(QDomNodePrivate*); + +private: + friend class ::tst_QDom; + friend class QDomDocument; + friend class QDomDocumentType; + friend class QDomNodeList; + friend class QDomNamedNodeMap; +}; + +class Q_XML_EXPORT QDomNodeList +{ +public: + QDomNodeList(); + QDomNodeList(const QDomNodeList &nodeList); + QDomNodeList& operator=(const QDomNodeList &other); + bool operator==(const QDomNodeList &other) const; + bool operator!=(const QDomNodeList &other) const; + ~QDomNodeList(); + + // DOM functions + QDomNode item(int index) const; + inline QDomNode at(int index) const { return item(index); } // Qt API consistency + + // DOM read only attributes + int length() const; + inline int count() const { return length(); } // Qt API consitancy + inline int size() const { return length(); } // Qt API consistency + inline bool isEmpty() const { return length() == 0; } // Qt API consistency + +private: + QDomNodeListPrivate* impl; + QDomNodeList(QDomNodeListPrivate*); + + friend class QDomNode; + friend class QDomElement; + friend class QDomDocument; +}; + +class Q_XML_EXPORT QDomDocumentType : public QDomNode +{ +public: + QDomDocumentType(); + QDomDocumentType(const QDomDocumentType &documentType); + QDomDocumentType& operator=(const QDomDocumentType &other); + + // DOM read only attributes + QString name() const; + QDomNamedNodeMap entities() const; + QDomNamedNodeMap notations() const; + QString publicId() const; + QString systemId() const; + QString internalSubset() const; + + // Overridden from QDomNode + inline QDomNode::NodeType nodeType() const { return DocumentTypeNode; } + +private: + QDomDocumentType(QDomDocumentTypePrivate*); + + friend class QDomImplementation; + friend class QDomDocument; + friend class QDomNode; +}; + +class Q_XML_EXPORT QDomDocument : public QDomNode +{ +public: + enum class ParseOption { + Default = 0x00, + UseNamespaceProcessing = 0x01, + PreserveSpacingOnlyNodes = 0x02, + }; + Q_DECLARE_FLAGS(ParseOptions, ParseOption) + + struct ParseResult + { + QString errorMessage; + qsizetype errorLine = 0; + qsizetype errorColumn = 0; + + explicit operator bool() const noexcept { return errorMessage.isEmpty(); } + }; + + QDomDocument(); + explicit QDomDocument(const QString& name); + explicit QDomDocument(const QDomDocumentType& doctype); + QDomDocument(const QDomDocument &document); + QDomDocument& operator=(const QDomDocument &other); + ~QDomDocument(); + + // DOM functions + QDomElement createElement(const QString& tagName); + QDomDocumentFragment createDocumentFragment(); + QDomText createTextNode(const QString& data); + QDomComment createComment(const QString& data); + QDomCDATASection createCDATASection(const QString& data); + QDomProcessingInstruction createProcessingInstruction(const QString& target, const QString& data); + QDomAttr createAttribute(const QString& name); + QDomEntityReference createEntityReference(const QString& name); + QDomNodeList elementsByTagName(const QString& tagname) const; + QDomNode importNode(const QDomNode& importedNode, bool deep); + QDomElement createElementNS(const QString& nsURI, const QString& qName); + QDomAttr createAttributeNS(const QString& nsURI, const QString& qName); + QDomNodeList elementsByTagNameNS(const QString& nsURI, const QString& localName); + QDomElement elementById(const QString& elementId); + + // DOM read only attributes + QDomDocumentType doctype() const; + QDomImplementation implementation() const; + QDomElement documentElement() const; + + // Overridden from QDomNode + inline QDomNode::NodeType nodeType() const { return DocumentNode; } + + // Qt extensions +#if QT_DEPRECATED_SINCE(6, 8) + QT_DEPRECATED_VERSION_X_6_8("Use the overload taking ParseOptions instead.") + bool setContent(const QByteArray &text, bool namespaceProcessing, QString *errorMsg = nullptr, int *errorLine = nullptr, int *errorColumn = nullptr); + QT_DEPRECATED_VERSION_X_6_8("Use the overload taking ParseOptions instead.") + bool setContent(const QString &text, bool namespaceProcessing, QString *errorMsg = nullptr, int *errorLine = nullptr, int *errorColumn = nullptr); + QT_DEPRECATED_VERSION_X_6_8("Use the overload taking ParseOptions instead.") + bool setContent(QIODevice *dev, bool namespaceProcessing, QString *errorMsg = nullptr, int *errorLine = nullptr, int *errorColumn = nullptr); + QT_DEPRECATED_VERSION_X_6_8("Use the overload returning ParseResult instead.") + bool setContent(const QByteArray &text, QString *errorMsg, int *errorLine = nullptr, int *errorColumn = nullptr); + QT_DEPRECATED_VERSION_X_6_8("Use the overload returning ParseResult instead.") + bool setContent(const QString &text, QString *errorMsg, int *errorLine = nullptr, int *errorColumn = nullptr); + QT_DEPRECATED_VERSION_X_6_8("Use the overload returning ParseResult instead.") + bool setContent(QIODevice *dev, QString *errorMsg, int *errorLine = nullptr, int *errorColumn = nullptr); + QT_DEPRECATED_VERSION_X_6_8("Use the overload taking ParseOptions instead.") + bool setContent(QXmlStreamReader *reader, bool namespaceProcessing, QString *errorMsg = nullptr, + int *errorLine = nullptr, int *errorColumn = nullptr); +#endif // QT_DEPRECATED_SINCE(6, 8) + + Q_WEAK_OVERLOAD + ParseResult setContent(const QByteArray &data, ParseOptions options = ParseOption::Default) + { return setContentImpl(data, options); } + ParseResult setContent(QAnyStringView data, ParseOptions options = ParseOption::Default); + ParseResult setContent(QIODevice *device, ParseOptions options = ParseOption::Default); + ParseResult setContent(QXmlStreamReader *reader, ParseOptions options = ParseOption::Default); + + // Qt extensions + QString toString(int indent = 1) const; + QByteArray toByteArray(int indent = 1) const; + +private: + ParseResult setContentImpl(const QByteArray &data, ParseOptions options); + + QDomDocument(QDomDocumentPrivate*); + + friend class QDomNode; +}; + +class Q_XML_EXPORT QDomNamedNodeMap +{ +public: + QDomNamedNodeMap(); + QDomNamedNodeMap(const QDomNamedNodeMap &namedNodeMap); + QDomNamedNodeMap& operator=(const QDomNamedNodeMap &other); + bool operator==(const QDomNamedNodeMap &other) const; + bool operator!=(const QDomNamedNodeMap &other) const; + ~QDomNamedNodeMap(); + + // DOM functions + QDomNode namedItem(const QString& name) const; + QDomNode setNamedItem(const QDomNode& newNode); + QDomNode removeNamedItem(const QString& name); + QDomNode item(int index) const; + QDomNode namedItemNS(const QString& nsURI, const QString& localName) const; + QDomNode setNamedItemNS(const QDomNode& newNode); + QDomNode removeNamedItemNS(const QString& nsURI, const QString& localName); + + // DOM read only attributes + int length() const; + int count() const { return length(); } // Qt API consitancy + inline int size() const { return length(); } // Qt API consistency + inline bool isEmpty() const { return length() == 0; } // Qt API consistency + + // Qt extension + bool contains(const QString& name) const; + +private: + QDomNamedNodeMapPrivate* impl; + QDomNamedNodeMap(QDomNamedNodeMapPrivate*); + + friend class QDomNode; + friend class QDomDocumentType; + friend class QDomElement; +}; + +class Q_XML_EXPORT QDomDocumentFragment : public QDomNode +{ +public: + QDomDocumentFragment(); + QDomDocumentFragment(const QDomDocumentFragment &documentFragment); + QDomDocumentFragment& operator=(const QDomDocumentFragment &other); + + // Overridden from QDomNode + inline QDomNode::NodeType nodeType() const { return DocumentFragmentNode; } + +private: + QDomDocumentFragment(QDomDocumentFragmentPrivate*); + + friend class QDomDocument; + friend class QDomNode; +}; + +class Q_XML_EXPORT QDomCharacterData : public QDomNode +{ +public: + QDomCharacterData(); + QDomCharacterData(const QDomCharacterData &characterData); + QDomCharacterData& operator=(const QDomCharacterData &other); + + // DOM functions + QString substringData(unsigned long offset, unsigned long count); + void appendData(const QString& arg); + void insertData(unsigned long offset, const QString& arg); + void deleteData(unsigned long offset, unsigned long count); + void replaceData(unsigned long offset, unsigned long count, const QString& arg); + + // DOM read only attributes + int length() const; + + // DOM attributes + QString data() const; + void setData(const QString &data); + + // Overridden from QDomNode + QDomNode::NodeType nodeType() const; + +private: + QDomCharacterData(QDomCharacterDataPrivate*); + + friend class QDomDocument; + friend class QDomText; + friend class QDomComment; + friend class QDomNode; +}; + +class Q_XML_EXPORT QDomAttr : public QDomNode +{ +public: + QDomAttr(); + QDomAttr(const QDomAttr &attr); + QDomAttr& operator=(const QDomAttr &other); + + // DOM read only attributes + QString name() const; + bool specified() const; + QDomElement ownerElement() const; + + // DOM attributes + QString value() const; + void setValue(const QString &value); + + // Overridden from QDomNode + inline QDomNode::NodeType nodeType() const { return AttributeNode; } + +private: + QDomAttr(QDomAttrPrivate*); + + friend class QDomDocument; + friend class QDomElement; + friend class QDomNode; +}; + +class Q_XML_EXPORT QDomElement : public QDomNode +{ +public: + QDomElement(); + QDomElement(const QDomElement &element); + QDomElement& operator=(const QDomElement &other); + + // DOM functions + QString attribute(const QString& name, const QString& defValue = QString() ) const; + void setAttribute(const QString& name, const QString& value); + void setAttribute(const QString& name, qlonglong value); + void setAttribute(const QString& name, qulonglong value); + inline void setAttribute(const QString& name, int value) + { setAttribute(name, qlonglong(value)); } + inline void setAttribute(const QString& name, uint value) + { setAttribute(name, qulonglong(value)); } + void setAttribute(const QString& name, float value); + void setAttribute(const QString& name, double value); + void removeAttribute(const QString& name); + QDomAttr attributeNode(const QString& name); + QDomAttr setAttributeNode(const QDomAttr& newAttr); + QDomAttr removeAttributeNode(const QDomAttr& oldAttr); + QDomNodeList elementsByTagName(const QString& tagname) const; + bool hasAttribute(const QString& name) const; + + QString attributeNS(const QString& nsURI, const QString& localName, const QString& defValue = QString()) const; + void setAttributeNS(const QString& nsURI, const QString& qName, const QString& value); + inline void setAttributeNS(const QString& nsURI, const QString& qName, int value) + { setAttributeNS(nsURI, qName, qlonglong(value)); } + inline void setAttributeNS(const QString& nsURI, const QString& qName, uint value) + { setAttributeNS(nsURI, qName, qulonglong(value)); } + void setAttributeNS(const QString& nsURI, const QString& qName, qlonglong value); + void setAttributeNS(const QString& nsURI, const QString& qName, qulonglong value); + void setAttributeNS(const QString& nsURI, const QString& qName, double value); + void removeAttributeNS(const QString& nsURI, const QString& localName); + QDomAttr attributeNodeNS(const QString& nsURI, const QString& localName); + QDomAttr setAttributeNodeNS(const QDomAttr& newAttr); + QDomNodeList elementsByTagNameNS(const QString& nsURI, const QString& localName) const; + bool hasAttributeNS(const QString& nsURI, const QString& localName) const; + + // DOM read only attributes + QString tagName() const; + void setTagName(const QString& name); // Qt extension + + // Overridden from QDomNode + QDomNamedNodeMap attributes() const; + inline QDomNode::NodeType nodeType() const { return ElementNode; } + + QString text() const; + +private: + QDomElement(QDomElementPrivate*); + + friend class QDomDocument; + friend class QDomNode; + friend class QDomAttr; +}; + +class Q_XML_EXPORT QDomText : public QDomCharacterData +{ +public: + QDomText(); + QDomText(const QDomText &text); + QDomText& operator=(const QDomText &other); + + // DOM functions + QDomText splitText(int offset); + + // Overridden from QDomCharacterData + inline QDomNode::NodeType nodeType() const { return TextNode; } + +private: + QDomText(QDomTextPrivate*); + + friend class QDomCDATASection; + friend class QDomDocument; + friend class QDomNode; +}; + +class Q_XML_EXPORT QDomComment : public QDomCharacterData +{ +public: + QDomComment(); + QDomComment(const QDomComment &comment); + QDomComment& operator=(const QDomComment &other); + + // Overridden from QDomCharacterData + inline QDomNode::NodeType nodeType() const { return CommentNode; } + +private: + QDomComment(QDomCommentPrivate*); + + friend class QDomDocument; + friend class QDomNode; +}; + +class Q_XML_EXPORT QDomCDATASection : public QDomText +{ +public: + QDomCDATASection(); + QDomCDATASection(const QDomCDATASection &cdataSection); + QDomCDATASection& operator=(const QDomCDATASection &other); + + // Overridden from QDomText + inline QDomNode::NodeType nodeType() const { return CDATASectionNode; } + +private: + QDomCDATASection(QDomCDATASectionPrivate*); + + friend class QDomDocument; + friend class QDomNode; +}; + +class Q_XML_EXPORT QDomNotation : public QDomNode +{ +public: + QDomNotation(); + QDomNotation(const QDomNotation ¬ation); + QDomNotation& operator=(const QDomNotation &other); + + // DOM read only attributes + QString publicId() const; + QString systemId() const; + + // Overridden from QDomNode + inline QDomNode::NodeType nodeType() const { return NotationNode; } + +private: + QDomNotation(QDomNotationPrivate*); + + friend class QDomDocument; + friend class QDomNode; +}; + +class Q_XML_EXPORT QDomEntity : public QDomNode +{ +public: + QDomEntity(); + QDomEntity(const QDomEntity &entity); + QDomEntity& operator=(const QDomEntity &other); + + // DOM read only attributes + QString publicId() const; + QString systemId() const; + QString notationName() const; + + // Overridden from QDomNode + inline QDomNode::NodeType nodeType() const { return EntityNode; } + +private: + QDomEntity(QDomEntityPrivate*); + + friend class QDomNode; +}; + +class Q_XML_EXPORT QDomEntityReference : public QDomNode +{ +public: + QDomEntityReference(); + QDomEntityReference(const QDomEntityReference &entityReference); + QDomEntityReference& operator=(const QDomEntityReference &other); + + // Overridden from QDomNode + inline QDomNode::NodeType nodeType() const { return EntityReferenceNode; } + +private: + QDomEntityReference(QDomEntityReferencePrivate*); + + friend class QDomDocument; + friend class QDomNode; +}; + +class Q_XML_EXPORT QDomProcessingInstruction : public QDomNode +{ +public: + QDomProcessingInstruction(); + QDomProcessingInstruction(const QDomProcessingInstruction &processingInstruction); + QDomProcessingInstruction& operator=(const QDomProcessingInstruction &other); + + // DOM read only attributes + QString target() const; + + // DOM attributes + QString data() const; + void setData(const QString &data); + + // Overridden from QDomNode + inline QDomNode::NodeType nodeType() const { return ProcessingInstructionNode; } + +private: + QDomProcessingInstruction(QDomProcessingInstructionPrivate*); + + friend class QDomDocument; + friend class QDomNode; +}; + + +Q_XML_EXPORT QTextStream& operator<<(QTextStream& stream, const QDomNode& node); + +QT_END_NAMESPACE + +#endif // feature dom + +#endif // QDOM_H diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/qtxml-config.h b/qt/6.8.1/msvc2022_64/include/QtXml/qtxml-config.h new file mode 100644 index 0000000000000000000000000000000000000000..30454b88fff77b85533b48a992b7bb0158a1b8d5 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/qtxml-config.h @@ -0,0 +1,2 @@ +#define QT_FEATURE_dom 1 + diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/qtxmlexports.h b/qt/6.8.1/msvc2022_64/include/QtXml/qtxmlexports.h new file mode 100644 index 0000000000000000000000000000000000000000..58934e0592e456edbad0b96259bd97c6233e93d5 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/qtxmlexports.h @@ -0,0 +1,50 @@ +// Copyright (C) 2022 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTXMLEXPORTS_H +#define QTXMLEXPORTS_H + +#include +#include // Q_XML_EXPORT +#include // QT_IF_DEPRECATED_SINCE + +#if defined(QT_SHARED) || !defined(QT_STATIC) +# if defined(QT_BUILD_XML_LIB) +# define Q_XML_EXPORT Q_DECL_EXPORT +# else +# define Q_XML_EXPORT Q_DECL_IMPORT +# endif +#else +# define Q_XML_EXPORT +#endif + +#if !defined(QT_BUILD_XML_LIB) && !defined(QT_STATIC) +/* outside library -> inline decl + defi */ +/* static builds treat everything as part of the library, so they never inline */ +# define QT_XML_INLINE_SINCE(major, minor) inline +# define QT_XML_INLINE_IMPL_SINCE(major, minor) 1 +#elif defined(QT_XML_BUILD_REMOVED_API) +/* inside library, inside removed_api.cpp: + * keep deprecated API -> non-inline decl; + * remove deprecated API -> inline decl; + * definition is always available */ +# define QT_XML_INLINE_SINCE(major, minor) \ + QT_IF_DEPRECATED_SINCE(major, minor, inline, /* not inline */) +# define QT_XML_INLINE_IMPL_SINCE(major, minor) 1 +#else +/* inside library, outside removed_api.cpp: + * keep deprecated API -> non-inline decl, no defi; + * remove deprecated API -> inline decl, defi */ +# define QT_XML_INLINE_SINCE(major, minor) \ + QT_IF_DEPRECATED_SINCE(major, minor, inline, /* not inline */) +# define QT_XML_INLINE_IMPL_SINCE(major, minor) \ + QT_IF_DEPRECATED_SINCE(major, minor, 1, 0) +#endif + +#ifdef QT_XML_BUILD_REMOVED_API +# define QT_XML_REMOVED_SINCE(major, minor) QT_DEPRECATED_SINCE(major, minor) +#else +# define QT_XML_REMOVED_SINCE(major, minor) 0 +#endif + +#endif // QTXMLEXPORTS_H diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/qtxmlglobal.h b/qt/6.8.1/msvc2022_64/include/QtXml/qtxmlglobal.h new file mode 100644 index 0000000000000000000000000000000000000000..683765421faab20908086265d547b5c1918f55ea --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/qtxmlglobal.h @@ -0,0 +1,11 @@ +// Copyright (C) 2016 Intel Corporation. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QTXMLGLOBAL_H +#define QTXMLGLOBAL_H + +#include +#include +#include + +#endif // QTXMLGLOBAL_H diff --git a/qt/6.8.1/msvc2022_64/include/QtXml/qtxmlversion.h b/qt/6.8.1/msvc2022_64/include/QtXml/qtxmlversion.h new file mode 100644 index 0000000000000000000000000000000000000000..b86dcdd6d18c9277cc4e228c6f89806c3e042da2 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtXml/qtxmlversion.h @@ -0,0 +1,9 @@ +/* This file was generated by syncqt. */ +#ifndef QT_QTXML_VERSION_H +#define QT_QTXML_VERSION_H + +#define QTXML_VERSION_STR "6.8.1" + +#define QTXML_VERSION 0x060801 + +#endif // QT_QTXML_VERSION_H diff --git a/qt/6.8.1/msvc2022_64/include/QtZlib/QtZlibDepends b/qt/6.8.1/msvc2022_64/include/QtZlib/QtZlibDepends new file mode 100644 index 0000000000000000000000000000000000000000..074f630c8a48ce98b5b5f590977b4099a22cc059 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtZlib/QtZlibDepends @@ -0,0 +1,3 @@ +/* This file was generated by cmake with the info from ZlibPrivate target. */ +#ifdef __cplusplus /* create empty PCH in C mode */ +#endif diff --git a/qt/6.8.1/msvc2022_64/include/QtZlib/zconf.h b/qt/6.8.1/msvc2022_64/include/QtZlib/zconf.h new file mode 100644 index 0000000000000000000000000000000000000000..0c15f66a908c73302f33ff39419792141f798475 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtZlib/zconf.h @@ -0,0 +1,547 @@ +/* zconf.h -- configuration of the zlib compression library + * Copyright (C) 1995-2024 Jean-loup Gailly, Mark Adler + * For conditions of distribution and use, see copyright notice in zlib.h + */ + +/* @(#) $Id$ */ + +#ifndef ZCONF_H +#define ZCONF_H + +/* Since Qt Core must export these symbols, define Z_PREFIX to avoid clashes system zlib */ +#define Z_PREFIX + +/* + * If you *really* need a unique prefix for all types and library functions, + * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it. + * Even better than compiling with -DZ_PREFIX would be to use configure to set + * this permanently in zconf.h using "./configure --zprefix". + */ +#ifdef Z_PREFIX /* may be set to #if 1 by ./configure */ +# define Z_PREFIX_SET + +/* all linked symbols and init macros */ +# define _dist_code z__dist_code +# define _length_code z__length_code +# define _tr_align z__tr_align +# define _tr_flush_bits z__tr_flush_bits +# define _tr_flush_block z__tr_flush_block +# define _tr_init z__tr_init +# define _tr_stored_block z__tr_stored_block +# define _tr_tally z__tr_tally +# define adler32 z_adler32 +# define adler32_combine z_adler32_combine +# define adler32_combine64 z_adler32_combine64 +# define adler32_z z_adler32_z +# ifndef Z_SOLO +# define compress z_compress +# define compress2 z_compress2 +# define compressBound z_compressBound +# endif +# define crc32 z_crc32 +# define crc32_combine z_crc32_combine +# define crc32_combine64 z_crc32_combine64 +# define crc32_combine_gen z_crc32_combine_gen +# define crc32_combine_gen64 z_crc32_combine_gen64 +# define crc32_combine_op z_crc32_combine_op +# define crc32_z z_crc32_z +# define deflate z_deflate +# define deflateBound z_deflateBound +# define deflateCopy z_deflateCopy +# define deflateEnd z_deflateEnd +# define deflateGetDictionary z_deflateGetDictionary +# define deflateInit z_deflateInit +# define deflateInit2 z_deflateInit2 +# define deflateInit2_ z_deflateInit2_ +# define deflateInit_ z_deflateInit_ +# define deflateParams z_deflateParams +# define deflatePending z_deflatePending +# define deflatePrime z_deflatePrime +# define deflateReset z_deflateReset +# define deflateResetKeep z_deflateResetKeep +# define deflateSetDictionary z_deflateSetDictionary +# define deflateSetHeader z_deflateSetHeader +# define deflateTune z_deflateTune +# define deflate_copyright z_deflate_copyright +# define get_crc_table z_get_crc_table +# ifndef Z_SOLO +# define gz_error z_gz_error +# define gz_intmax z_gz_intmax +# define gz_strwinerror z_gz_strwinerror +# define gzbuffer z_gzbuffer +# define gzclearerr z_gzclearerr +# define gzclose z_gzclose +# define gzclose_r z_gzclose_r +# define gzclose_w z_gzclose_w +# define gzdirect z_gzdirect +# define gzdopen z_gzdopen +# define gzeof z_gzeof +# define gzerror z_gzerror +# define gzflush z_gzflush +# define gzfread z_gzfread +# define gzfwrite z_gzfwrite +# define gzgetc z_gzgetc +# define gzgetc_ z_gzgetc_ +# define gzgets z_gzgets +# define gzoffset z_gzoffset +# define gzoffset64 z_gzoffset64 +# define gzopen z_gzopen +# define gzopen64 z_gzopen64 +# ifdef _WIN32 +# define gzopen_w z_gzopen_w +# endif +# define gzprintf z_gzprintf +# define gzputc z_gzputc +# define gzputs z_gzputs +# define gzread z_gzread +# define gzrewind z_gzrewind +# define gzseek z_gzseek +# define gzseek64 z_gzseek64 +# define gzsetparams z_gzsetparams +# define gztell z_gztell +# define gztell64 z_gztell64 +# define gzungetc z_gzungetc +# define gzvprintf z_gzvprintf +# define gzwrite z_gzwrite +# endif +# define inflate z_inflate +# define inflateBack z_inflateBack +# define inflateBackEnd z_inflateBackEnd +# define inflateBackInit z_inflateBackInit +# define inflateBackInit_ z_inflateBackInit_ +# define inflateCodesUsed z_inflateCodesUsed +# define inflateCopy z_inflateCopy +# define inflateEnd z_inflateEnd +# define inflateGetDictionary z_inflateGetDictionary +# define inflateGetHeader z_inflateGetHeader +# define inflateInit z_inflateInit +# define inflateInit2 z_inflateInit2 +# define inflateInit2_ z_inflateInit2_ +# define inflateInit_ z_inflateInit_ +# define inflateMark z_inflateMark +# define inflatePrime z_inflatePrime +# define inflateReset z_inflateReset +# define inflateReset2 z_inflateReset2 +# define inflateResetKeep z_inflateResetKeep +# define inflateSetDictionary z_inflateSetDictionary +# define inflateSync z_inflateSync +# define inflateSyncPoint z_inflateSyncPoint +# define inflateUndermine z_inflateUndermine +# define inflateValidate z_inflateValidate +# define inflate_copyright z_inflate_copyright +# define inflate_fast z_inflate_fast +# define inflate_table z_inflate_table +# ifndef Z_SOLO +# define uncompress z_uncompress +# define uncompress2 z_uncompress2 +# endif +# define zError z_zError +# ifndef Z_SOLO +# define zcalloc z_zcalloc +# define zcfree z_zcfree +# endif +# define zlibCompileFlags z_zlibCompileFlags +# define zlibVersion z_zlibVersion +# define z_errmsg z_z_errmsg + +/* all zlib typedefs in zlib.h and zconf.h */ +# define Byte z_Byte +# define Bytef z_Bytef +# define alloc_func z_alloc_func +# define charf z_charf +# define free_func z_free_func +# ifndef Z_SOLO +# define gzFile z_gzFile +# endif +# define gz_header z_gz_header +# define gz_headerp z_gz_headerp +# define in_func z_in_func +# define intf z_intf +# define out_func z_out_func +# define uInt z_uInt +# define uIntf z_uIntf +# define uLong z_uLong +# define uLongf z_uLongf +# define voidp z_voidp +# define voidpc z_voidpc +# define voidpf z_voidpf + +/* all zlib structs in zlib.h and zconf.h */ +# define gz_header_s z_gz_header_s +# define internal_state z_internal_state + +#endif + +#if defined(__MSDOS__) && !defined(MSDOS) +# define MSDOS +#endif +#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2) +# define OS2 +#endif +#if defined(_WINDOWS) && !defined(WINDOWS) +# define WINDOWS +#endif +#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__) +# ifndef WIN32 +# define WIN32 +# endif +#endif +#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32) +# if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__) +# ifndef SYS16BIT +# define SYS16BIT +# endif +# endif +#endif + +/* + * Compile with -DMAXSEG_64K if the alloc function cannot allocate more + * than 64k bytes at a time (needed on systems with 16-bit int). + */ +#ifdef SYS16BIT +# define MAXSEG_64K +#endif +#ifdef MSDOS +# define UNALIGNED_OK +#endif + +#ifdef __STDC_VERSION__ +# ifndef STDC +# define STDC +# endif +# if __STDC_VERSION__ >= 199901L +# ifndef STDC99 +# define STDC99 +# endif +# endif +#endif +#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus)) +# define STDC +#endif +#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__)) +# define STDC +#endif +#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32)) +# define STDC +#endif +#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__)) +# define STDC +#endif + +#if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */ +# define STDC +#endif + +#ifndef STDC +# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */ +# define const /* note: need a more gentle solution here */ +# endif +#endif + +#if defined(ZLIB_CONST) && !defined(z_const) +# define z_const const +#else +# define z_const +#endif + +#ifdef Z_SOLO +# ifdef _WIN64 + typedef unsigned long long z_size_t; +# else + typedef unsigned long z_size_t; +# endif +#else +# define z_longlong long long +# if defined(NO_SIZE_T) + typedef unsigned NO_SIZE_T z_size_t; +# elif defined(STDC) +# include + typedef size_t z_size_t; +# else + typedef unsigned long z_size_t; +# endif +# undef z_longlong +#endif + +/* Maximum value for memLevel in deflateInit2 */ +#ifndef MAX_MEM_LEVEL +# ifdef MAXSEG_64K +# define MAX_MEM_LEVEL 8 +# else +# define MAX_MEM_LEVEL 9 +# endif +#endif + +/* Maximum value for windowBits in deflateInit2 and inflateInit2. + * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files + * created by gzip. (Files created by minigzip can still be extracted by + * gzip.) + */ +#ifndef MAX_WBITS +# define MAX_WBITS 15 /* 32K LZ77 window */ +#endif + +/* The memory requirements for deflate are (in bytes): + (1 << (windowBits+2)) + (1 << (memLevel+9)) + that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values) + plus a few kilobytes for small objects. For example, if you want to reduce + the default memory requirements from 256K to 128K, compile with + make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7" + Of course this will generally degrade compression (there's no free lunch). + + The memory requirements for inflate are (in bytes) 1 << windowBits + that is, 32K for windowBits=15 (default value) plus about 7 kilobytes + for small objects. +*/ + + /* Type declarations */ + +#ifndef OF /* function prototypes */ +# ifdef STDC +# define OF(args) args +# else +# define OF(args) () +# endif +#endif + +/* The following definitions for FAR are needed only for MSDOS mixed + * model programming (small or medium model with some far allocations). + * This was tested only with MSC; for other MSDOS compilers you may have + * to define NO_MEMCPY in zutil.h. If you don't need the mixed model, + * just define FAR to be empty. + */ +#ifdef SYS16BIT +# if defined(M_I86SM) || defined(M_I86MM) + /* MSC small or medium model */ +# define SMALL_MEDIUM +# ifdef _MSC_VER +# define FAR _far +# else +# define FAR far +# endif +# endif +# if (defined(__SMALL__) || defined(__MEDIUM__)) + /* Turbo C small or medium model */ +# define SMALL_MEDIUM +# ifdef __BORLANDC__ +# define FAR _far +# else +# define FAR far +# endif +# endif +#endif + +#if defined(WINDOWS) || defined(WIN32) + /* If building or using zlib as a DLL, define ZLIB_DLL. + * This is not mandatory, but it offers a little performance increase. + */ +# ifdef ZLIB_DLL +# if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500)) +# ifdef ZLIB_INTERNAL +# define ZEXTERN extern __declspec(dllexport) +# else +# define ZEXTERN extern __declspec(dllimport) +# endif +# endif +# endif /* ZLIB_DLL */ + /* If building or using zlib with the WINAPI/WINAPIV calling convention, + * define ZLIB_WINAPI. + * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI. + */ +# ifdef ZLIB_WINAPI +# ifdef FAR +# undef FAR +# endif +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif +# include + /* No need for _export, use ZLIB.DEF instead. */ + /* For complete Windows compatibility, use WINAPI, not __stdcall. */ +# define ZEXPORT WINAPI +# ifdef WIN32 +# define ZEXPORTVA WINAPIV +# else +# define ZEXPORTVA FAR CDECL +# endif +# endif +#endif + +#if defined (__BEOS__) +# ifdef ZLIB_DLL +# ifdef ZLIB_INTERNAL +# define ZEXPORT __declspec(dllexport) +# define ZEXPORTVA __declspec(dllexport) +# else +# define ZEXPORT __declspec(dllimport) +# define ZEXPORTVA __declspec(dllimport) +# endif +# endif +#endif + +#ifndef ZEXTERN +# define ZEXTERN extern +#endif +#ifndef ZEXPORT +# define ZEXPORT +#endif +#ifndef ZEXPORTVA +# define ZEXPORTVA +#endif + +#ifndef FAR +# define FAR +#endif + +#if !defined(__MACTYPES__) +typedef unsigned char Byte; /* 8 bits */ +#endif +typedef unsigned int uInt; /* 16 bits or more */ +typedef unsigned long uLong; /* 32 bits or more */ + +#ifdef SMALL_MEDIUM + /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */ +# define Bytef Byte FAR +#else + typedef Byte FAR Bytef; +#endif +typedef char FAR charf; +typedef int FAR intf; +typedef uInt FAR uIntf; +typedef uLong FAR uLongf; + +#ifdef STDC + typedef void const *voidpc; + typedef void FAR *voidpf; + typedef void *voidp; +#else + typedef Byte const *voidpc; + typedef Byte FAR *voidpf; + typedef Byte *voidp; +#endif + +#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC) +# include +# if (UINT_MAX == 0xffffffffUL) +# define Z_U4 unsigned +# elif (ULONG_MAX == 0xffffffffUL) +# define Z_U4 unsigned long +# elif (USHRT_MAX == 0xffffffffUL) +# define Z_U4 unsigned short +# endif +#endif + +#ifdef Z_U4 + typedef Z_U4 z_crc_t; +#else + typedef unsigned long z_crc_t; +#endif + +#if defined(HAVE_UNISTD_H) || !defined(WIN32) +# define Z_HAVE_UNISTD_H +#endif + +#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */ +# define Z_HAVE_STDARG_H +#endif + +#ifdef STDC +# ifndef Z_SOLO +# include /* for off_t */ +# endif +#endif + +#if defined(STDC) || defined(Z_HAVE_STDARG_H) +# ifndef Z_SOLO +# include /* for va_list */ +# endif +#endif + +#ifdef _WIN32 +# ifndef Z_SOLO +# include /* for wchar_t */ +# endif +#endif + +/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and + * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even + * though the former does not conform to the LFS document), but considering + * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as + * equivalently requesting no 64-bit operations + */ +#if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 +# undef _LARGEFILE64_SOURCE +#endif + +#ifndef Z_HAVE_UNISTD_H +# ifdef __WATCOMC__ +# define Z_HAVE_UNISTD_H +# endif +#endif +#ifndef Z_HAVE_UNISTD_H +# if defined(_LARGEFILE64_SOURCE) && !defined(_WIN32) +# define Z_HAVE_UNISTD_H +# endif +#endif +#ifndef Z_SOLO +# if defined(Z_HAVE_UNISTD_H) +# include /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ +# ifdef VMS +# include /* for off_t */ +# endif +# ifndef z_off_t +# define z_off_t off_t +# endif +# endif +#endif + +#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 +# define Z_LFS64 +#endif + +#if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64) +# define Z_LARGE64 +#endif + +#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64) +# define Z_WANT64 +#endif + +#if !defined(SEEK_SET) && !defined(Z_SOLO) +# define SEEK_SET 0 /* Seek from beginning of file. */ +# define SEEK_CUR 1 /* Seek from current position. */ +# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ +#endif + +#ifndef z_off_t +# define z_off_t long +#endif + +#if !defined(_WIN32) && defined(Z_LARGE64) +# define z_off64_t off64_t +#else +# if defined(_WIN32) && !defined(__GNUC__) +# define z_off64_t __int64 +# else +# define z_off64_t z_off_t +# endif +#endif + +/* MVS linker does not support external names larger than 8 bytes */ +#if defined(__MVS__) + #pragma map(deflateInit_,"DEIN") + #pragma map(deflateInit2_,"DEIN2") + #pragma map(deflateEnd,"DEEND") + #pragma map(deflateBound,"DEBND") + #pragma map(inflateInit_,"ININ") + #pragma map(inflateInit2_,"ININ2") + #pragma map(inflateEnd,"INEND") + #pragma map(inflateSync,"INSY") + #pragma map(inflateSetDictionary,"INSEDI") + #pragma map(compressBound,"CMBND") + #pragma map(inflate_table,"INTABL") + #pragma map(inflate_fast,"INFA") + #pragma map(inflate_copyright,"INCOPY") +#endif + +#endif /* ZCONF_H */ diff --git a/qt/6.8.1/msvc2022_64/include/QtZlib/zlib.h b/qt/6.8.1/msvc2022_64/include/QtZlib/zlib.h new file mode 100644 index 0000000000000000000000000000000000000000..13db33db9775b0c4800d9db6750224b2b95f48f9 --- /dev/null +++ b/qt/6.8.1/msvc2022_64/include/QtZlib/zlib.h @@ -0,0 +1,1942 @@ +/* zlib.h -- interface of the 'zlib' general purpose compression library + version 1.3.1, January 22nd, 2024 + + Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + + + The data format used by the zlib library is described by RFCs (Request for + Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 + (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). +*/ + +#ifndef ZLIB_H +#define ZLIB_H + +#include "zconf.h" + +#include +#undef ZEXTERN +#define ZEXTERN Q_CORE_EXPORT + +#ifdef __cplusplus +extern "C" { +#endif + +#define ZLIB_VERSION "1.3.1 (Qt)" +#define ZLIB_VERNUM 0x1310 +#define ZLIB_VER_MAJOR 1 +#define ZLIB_VER_MINOR 3 +#define ZLIB_VER_REVISION 1 +#define ZLIB_VER_SUBREVISION 0 + +/* + The 'zlib' compression library provides in-memory compression and + decompression functions, including integrity checks of the uncompressed data. + This version of the library supports only one compression method (deflation) + but other algorithms will be added later and will have the same stream + interface. + + Compression can be done in a single step if the buffers are large enough, + or can be done by repeated calls of the compression function. In the latter + case, the application must provide more input and/or consume the output + (providing more output space) before each call. + + The compressed data format used by default by the in-memory functions is + the zlib format, which is a zlib wrapper documented in RFC 1950, wrapped + around a deflate stream, which is itself documented in RFC 1951. + + The library also supports reading and writing files in gzip (.gz) format + with an interface similar to that of stdio using the functions that start + with "gz". The gzip format is different from the zlib format. gzip is a + gzip wrapper, documented in RFC 1952, wrapped around a deflate stream. + + This library can optionally read and write gzip and raw deflate streams in + memory as well. + + The zlib format was designed to be compact and fast for use in memory + and on communications channels. The gzip format was designed for single- + file compression on file systems, has a larger header than zlib to maintain + directory information, and uses a different, slower check method than zlib. + + The library does not install any signal handler. The decoder checks + the consistency of the compressed data, so the library should never crash + even in the case of corrupted input. +*/ + +typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size); +typedef void (*free_func)(voidpf opaque, voidpf address); + +struct internal_state; + +typedef struct z_stream_s { + z_const Bytef *next_in; /* next input byte */ + uInt avail_in; /* number of bytes available at next_in */ + uLong total_in; /* total number of input bytes read so far */ + + Bytef *next_out; /* next output byte will go here */ + uInt avail_out; /* remaining free space at next_out */ + uLong total_out; /* total number of bytes output so far */ + + z_const char *msg; /* last error message, NULL if no error */ + struct internal_state FAR *state; /* not visible by applications */ + + alloc_func zalloc; /* used to allocate the internal state */ + free_func zfree; /* used to free the internal state */ + voidpf opaque; /* private data object passed to zalloc and zfree */ + + int data_type; /* best guess about the data type: binary or text + for deflate, or the decoding state for inflate */ + uLong adler; /* Adler-32 or CRC-32 value of the uncompressed data */ + uLong reserved; /* reserved for future use */ +} z_stream; + +typedef z_stream FAR *z_streamp; + +/* + gzip header information passed to and from zlib routines. See RFC 1952 + for more details on the meanings of these fields. +*/ +typedef struct gz_header_s { + int text; /* true if compressed data believed to be text */ + uLong time; /* modification time */ + int xflags; /* extra flags (not used when writing a gzip file) */ + int os; /* operating system */ + Bytef *extra; /* pointer to extra field or Z_NULL if none */ + uInt extra_len; /* extra field length (valid if extra != Z_NULL) */ + uInt extra_max; /* space at extra (only when reading header) */ + Bytef *name; /* pointer to zero-terminated file name or Z_NULL */ + uInt name_max; /* space at name (only when reading header) */ + Bytef *comment; /* pointer to zero-terminated comment or Z_NULL */ + uInt comm_max; /* space at comment (only when reading header) */ + int hcrc; /* true if there was or will be a header crc */ + int done; /* true when done reading gzip header (not used + when writing a gzip file) */ +} gz_header; + +typedef gz_header FAR *gz_headerp; + +/* + The application must update next_in and avail_in when avail_in has dropped + to zero. It must update next_out and avail_out when avail_out has dropped + to zero. The application must initialize zalloc, zfree and opaque before + calling the init function. All other fields are set by the compression + library and must not be updated by the application. + + The opaque value provided by the application will be passed as the first + parameter for calls of zalloc and zfree. This can be useful for custom + memory management. The compression library attaches no meaning to the + opaque value. + + zalloc must return Z_NULL if there is not enough memory for the object. + If zlib is used in a multi-threaded application, zalloc and zfree must be + thread safe. In that case, zlib is thread-safe. When zalloc and zfree are + Z_NULL on entry to the initialization function, they are set to internal + routines that use the standard library functions malloc() and free(). + + On 16-bit systems, the functions zalloc and zfree must be able to allocate + exactly 65536 bytes, but will not be required to allocate more than this if + the symbol MAXSEG_64K is defined (see zconf.h). WARNING: On MSDOS, pointers + returned by zalloc for objects of exactly 65536 bytes *must* have their + offset normalized to zero. The default allocation function provided by this + library ensures this (see zutil.c). To reduce memory requirements and avoid + any allocation of 64K objects, at the expense of compression ratio, compile + the library with -DMAX_WBITS=14 (see zconf.h). + + The fields total_in and total_out can be used for statistics or progress + reports. After compression, total_in holds the total size of the + uncompressed data and may be saved for use by the decompressor (particularly + if the decompressor wants to decompress everything in a single step). +*/ + + /* constants */ + +#define Z_NO_FLUSH 0 +#define Z_PARTIAL_FLUSH 1 +#define Z_SYNC_FLUSH 2 +#define Z_FULL_FLUSH 3 +#define Z_FINISH 4 +#define Z_BLOCK 5 +#define Z_TREES 6 +/* Allowed flush values; see deflate() and inflate() below for details */ + +#define Z_OK 0 +#define Z_STREAM_END 1 +#define Z_NEED_DICT 2 +#define Z_ERRNO (-1) +#define Z_STREAM_ERROR (-2) +#define Z_DATA_ERROR (-3) +#define Z_MEM_ERROR (-4) +#define Z_BUF_ERROR (-5) +#define Z_VERSION_ERROR (-6) +/* Return codes for the compression/decompression functions. Negative values + * are errors, positive values are used for special but normal events. + */ + +#define Z_NO_COMPRESSION 0 +#define Z_BEST_SPEED 1 +#define Z_BEST_COMPRESSION 9 +#define Z_DEFAULT_COMPRESSION (-1) +/* compression levels */ + +#define Z_FILTERED 1 +#define Z_HUFFMAN_ONLY 2 +#define Z_RLE 3 +#define Z_FIXED 4 +#define Z_DEFAULT_STRATEGY 0 +/* compression strategy; see deflateInit2() below for details */ + +#define Z_BINARY 0 +#define Z_TEXT 1 +#define Z_ASCII Z_TEXT /* for compatibility with 1.2.2 and earlier */ +#define Z_UNKNOWN 2 +/* Possible values of the data_type field for deflate() */ + +#define Z_DEFLATED 8 +/* The deflate compression method (the only one supported in this version) */ + +#define Z_NULL 0 /* for initializing zalloc, zfree, opaque */ + +#define zlib_version zlibVersion() +/* for compatibility with versions < 1.0.2 */ + + + /* basic functions */ + +ZEXTERN const char * ZEXPORT zlibVersion(void); +/* The application can compare zlibVersion and ZLIB_VERSION for consistency. + If the first character differs, the library code actually used is not + compatible with the zlib.h header file used by the application. This check + is automatically made by deflateInit and inflateInit. + */ + +/* +ZEXTERN int ZEXPORT deflateInit(z_streamp strm, int level); + + Initializes the internal stream state for compression. The fields + zalloc, zfree and opaque must be initialized before by the caller. If + zalloc and zfree are set to Z_NULL, deflateInit updates them to use default + allocation functions. total_in, total_out, adler, and msg are initialized. + + The compression level must be Z_DEFAULT_COMPRESSION, or between 0 and 9: + 1 gives best speed, 9 gives best compression, 0 gives no compression at all + (the input data is simply copied a block at a time). Z_DEFAULT_COMPRESSION + requests a default compromise between speed and compression (currently + equivalent to level 6). + + deflateInit returns Z_OK if success, Z_MEM_ERROR if there was not enough + memory, Z_STREAM_ERROR if level is not a valid compression level, or + Z_VERSION_ERROR if the zlib library version (zlib_version) is incompatible + with the version assumed by the caller (ZLIB_VERSION). msg is set to null + if there is no error message. deflateInit does not perform any compression: + this will be done by deflate(). +*/ + + +ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush); +/* + deflate compresses as much data as possible, and stops when the input + buffer becomes empty or the output buffer becomes full. It may introduce + some output latency (reading input without producing any output) except when + forced to flush. + + The detailed semantics are as follows. deflate performs one or both of the + following actions: + + - Compress more input starting at next_in and update next_in and avail_in + accordingly. If not all input can be processed (because there is not + enough room in the output buffer), next_in and avail_in are updated and + processing will resume at this point for the next call of deflate(). + + - Generate more output starting at next_out and update next_out and avail_out + accordingly. This action is forced if the parameter flush is non zero. + Forcing flush frequently degrades the compression ratio, so this parameter + should be set only when necessary. Some output may be provided even if + flush is zero. + + Before the call of deflate(), the application should ensure that at least + one of the actions is possible, by providing more input and/or consuming more + output, and updating avail_in or avail_out accordingly; avail_out should + never be zero before the call. The application can consume the compressed + output when it wants, for example when the output buffer is full (avail_out + == 0), or after each call of deflate(). If deflate returns Z_OK and with + zero avail_out, it must be called again after making room in the output + buffer because there might be more output pending. See deflatePending(), + which can be used if desired to determine whether or not there is more output + in that case. + + Normally the parameter flush is set to Z_NO_FLUSH, which allows deflate to + decide how much data to accumulate before producing output, in order to + maximize compression. + + If the parameter flush is set to Z_SYNC_FLUSH, all pending output is + flushed to the output buffer and the output is aligned on a byte boundary, so + that the decompressor can get all input data available so far. (In + particular avail_in is zero after the call if enough output space has been + provided before the call.) Flushing may degrade compression for some + compression algorithms and so it should be used only when necessary. This + completes the current deflate block and follows it with an empty stored block + that is three bits plus filler bits to the next byte, followed by four bytes + (00 00 ff ff). + + If flush is set to Z_PARTIAL_FLUSH, all pending output is flushed to the + output buffer, but the output is not aligned to a byte boundary. All of the + input data so far will be available to the decompressor, as for Z_SYNC_FLUSH. + This completes the current deflate block and follows it with an empty fixed + codes block that is 10 bits long. This assures that enough bytes are output + in order for the decompressor to finish the block before the empty fixed + codes block. + + If flush is set to Z_BLOCK, a deflate block is completed and emitted, as + for Z_SYNC_FLUSH, but the output is not aligned on a byte boundary, and up to + seven bits of the current block are held to be written as the next byte after + the next deflate block is completed. In this case, the decompressor may not + be provided enough bits at this point in order to complete decompression of + the data provided so far to the compressor. It may need to wait for the next + block to be emitted. This is for advanced applications that need to control + the emission of deflate blocks. + + If flush is set to Z_FULL_FLUSH, all output is flushed as with + Z_SYNC_FLUSH, and the compression state is reset so that decompression can + restart from this point if previous compressed data has been damaged or if + random access is desired. Using Z_FULL_FLUSH too often can seriously degrade + compression. + + If deflate returns with avail_out == 0, this function must be called again + with the same value of the flush parameter and more output space (updated + avail_out), until the flush is complete (deflate returns with non-zero + avail_out). In the case of a Z_FULL_FLUSH or Z_SYNC_FLUSH, make sure that + avail_out is greater than six when the flush marker begins, in order to avoid + repeated flush markers upon calling deflate() again when avail_out == 0. + + If the parameter flush is set to Z_FINISH, pending input is processed, + pending output is flushed and deflate returns with Z_STREAM_END if there was + enough output space. If deflate returns with Z_OK or Z_BUF_ERROR, this + function must be called again with Z_FINISH and more output space (updated + avail_out) but no more input data, until it returns with Z_STREAM_END or an + error. After deflate has returned Z_STREAM_END, the only possible operations + on the stream are deflateReset or deflateEnd. + + Z_FINISH can be used in the first deflate call after deflateInit if all the + compression is to be done in a single step. In order to complete in one + call, avail_out must be at least the value returned by deflateBound (see + below). Then deflate is guaranteed to return Z_STREAM_END. If not enough + output space is provided, deflate will not return Z_STREAM_END, and it must + be called again as described above. + + deflate() sets strm->adler to the Adler-32 checksum of all input read + so far (that is, total_in bytes). If a gzip stream is being generated, then + strm->adler will be the CRC-32 checksum of the input read so far. (See + deflateInit2 below.) + + deflate() may update strm->data_type if it can make a good guess about + the input data type (Z_BINARY or Z_TEXT). If in doubt, the data is + considered binary. This field is only for information purposes and does not + affect the compression algorithm in any manner. + + deflate() returns Z_OK if some progress has been made (more input + processed or more output produced), Z_STREAM_END if all input has been + consumed and all output has been produced (only when flush is set to + Z_FINISH), Z_STREAM_ERROR if the stream state was inconsistent (for example + if next_in or next_out was Z_NULL or the state was inadvertently written over + by the application), or Z_BUF_ERROR if no progress is possible (for example + avail_in or avail_out was zero). Note that Z_BUF_ERROR is not fatal, and + deflate() can be called again with more input and more output space to + continue compressing. +*/ + + +ZEXTERN int ZEXPORT deflateEnd(z_streamp strm); +/* + All dynamically allocated data structures for this stream are freed. + This function discards any unprocessed input and does not flush any pending + output. + + deflateEnd returns Z_OK if success, Z_STREAM_ERROR if the + stream state was inconsistent, Z_DATA_ERROR if the stream was freed + prematurely (some input or output was discarded). In the error case, msg + may be set but then points to a static string (which must not be + deallocated). +*/ + + +/* +ZEXTERN int ZEXPORT inflateInit(z_streamp strm); + + Initializes the internal stream state for decompression. The fields + next_in, avail_in, zalloc, zfree and opaque must be initialized before by + the caller. In the current version of inflate, the provided input is not + read or consumed. The allocation of a sliding window will be deferred to + the first call of inflate (if the decompression does not complete on the + first call). If zalloc and zfree are set to Z_NULL, inflateInit updates + them to use default allocation functions. total_in, total_out, adler, and + msg are initialized. + + inflateInit returns Z_OK if success, Z_MEM_ERROR if there was not enough + memory, Z_VERSION_ERROR if the zlib library version is incompatible with the + version assumed by the caller, or Z_STREAM_ERROR if the parameters are + invalid, such as a null pointer to the structure. msg is set to null if + there is no error message. inflateInit does not perform any decompression. + Actual decompression will be done by inflate(). So next_in, and avail_in, + next_out, and avail_out are unused and unchanged. The current + implementation of inflateInit() does not process any header information -- + that is deferred until inflate() is called. +*/ + + +ZEXTERN int ZEXPORT inflate(z_streamp strm, int flush); +/* + inflate decompresses as much data as possible, and stops when the input + buffer becomes empty or the output buffer becomes full. It may introduce + some output latency (reading input without producing any output) except when + forced to flush. + + The detailed semantics are as follows. inflate performs one or both of the + following actions: + + - Decompress more input starting at next_in and update next_in and avail_in + accordingly. If not all input can be processed (because there is not + enough room in the output buffer), then next_in and avail_in are updated + accordingly, and processing will resume at this point for the next call of + inflate(). + + - Generate more output starting at next_out and update next_out and avail_out + accordingly. inflate() provides as much output as possible, until there is + no more input data or no more space in the output buffer (see below about + the flush parameter). + + Before the call of inflate(), the application should ensure that at least + one of the actions is possible, by providing more input and/or consuming more + output, and updating the next_* and avail_* values accordingly. If the + caller of inflate() does not provide both available input and available + output space, it is possible that there will be no progress made. The + application can consume the uncompressed output when it wants, for example + when the output buffer is full (avail_out == 0), or after each call of + inflate(). If inflate returns Z_OK and with zero avail_out, it must be + called again after making room in the output buffer because there might be + more output pending. + + The flush parameter of inflate() can be Z_NO_FLUSH, Z_SYNC_FLUSH, Z_FINISH, + Z_BLOCK, or Z_TREES. Z_SYNC_FLUSH requests that inflate() flush as much + output as possible to the output buffer. Z_BLOCK requests that inflate() + stop if and when it gets to the next deflate block boundary. When decoding + the zlib or gzip format, this will cause inflate() to return immediately + after the header and before the first block. When doing a raw inflate, + inflate() will go ahead and process the first block, and will return when it + gets to the end of that block, or when it runs out of data. + + The Z_BLOCK option assists in appending to or combining deflate streams. + To assist in this, on return inflate() always sets strm->data_type to the + number of unused bits in the last byte taken from strm->next_in, plus 64 if + inflate() is currently decoding the last block in the deflate stream, plus + 128 if inflate() returned immediately after decoding an end-of-block code or + decoding the complete header up to just before the first byte of the deflate + stream. The end-of-block will not be indicated until all of the uncompressed + data from that block has been written to strm->next_out. The number of + unused bits may in general be greater than seven, except when bit 7 of + data_type is set, in which case the number of unused bits will be less than + eight. data_type is set as noted here every time inflate() returns for all + flush options, and so can be used to determine the amount of currently + consumed input in bits. + + The Z_TREES option behaves as Z_BLOCK does, but it also returns when the + end of each deflate block header is reached, before any actual data in that + block is decoded. This allows the caller to determine the length of the + deflate block header for later use in random access within a deflate block. + 256 is added to the value of strm->data_type when inflate() returns + immediately after reaching the end of the deflate block header. + + inflate() should normally be called until it returns Z_STREAM_END or an + error. However if all decompression is to be performed in a single step (a + single call of inflate), the parameter flush should be set to Z_FINISH. In + this case all pending input is processed and all pending output is flushed; + avail_out must be large enough to hold all of the uncompressed data for the + operation to complete. (The size of the uncompressed data may have been + saved by the compressor for this purpose.) The use of Z_FINISH is not + required to perform an inflation in one step. However it may be used to + inform inflate that a faster approach can be used for the single inflate() + call. Z_FINISH also informs inflate to not maintain a sliding window if the + stream completes, which reduces inflate's memory footprint. If the stream + does not complete, either because not all of the stream is provided or not + enough output space is provided, then a sliding window will be allocated and + inflate() can be called again to continue the operation as if Z_NO_FLUSH had + been used. + + In this implementation, inflate() always flushes as much output as + possible to the output buffer, and always uses the faster approach on the + first call. So the effects of the flush parameter in this implementation are + on the return value of inflate() as noted below, when inflate() returns early + when Z_BLOCK or Z_TREES is used, and when inflate() avoids the allocation of + memory for a sliding window when Z_FINISH is used. + + If a preset dictionary is needed after this call (see inflateSetDictionary + below), inflate sets strm->adler to the Adler-32 checksum of the dictionary + chosen by the compressor and returns Z_NEED_DICT; otherwise it sets + strm->adler to the Adler-32 checksum of all output produced so far (that is, + total_out bytes) and returns Z_OK, Z_STREAM_END or an error code as described + below. At the end of the stream, inflate() checks that its computed Adler-32 + checksum is equal to that saved by the compressor and returns Z_STREAM_END + only if the checksum is correct. + + inflate() can decompress and check either zlib-wrapped or gzip-wrapped + deflate data. The header type is detected automatically, if requested when + initializing with inflateInit2(). Any information contained in the gzip + header is not retained unless inflateGetHeader() is used. When processing + gzip-wrapped deflate data, strm->adler32 is set to the CRC-32 of the output + produced so far. The CRC-32 is checked against the gzip trailer, as is the + uncompressed length, modulo 2^32. + + inflate() returns Z_OK if some progress has been made (more input processed + or more output produced), Z_STREAM_END if the end of the compressed data has + been reached and all uncompressed output has been produced, Z_NEED_DICT if a + preset dictionary is needed at this point, Z_DATA_ERROR if the input data was + corrupted (input stream not conforming to the zlib format or incorrect check + value, in which case strm->msg points to a string with a more specific + error), Z_STREAM_ERROR if the stream structure was inconsistent (for example + next_in or next_out was Z_NULL, or the state was inadvertently written over + by the application), Z_MEM_ERROR if there was not enough memory, Z_BUF_ERROR + if no progress was possible or if there was not enough room in the output + buffer when Z_FINISH is used. Note that Z_BUF_ERROR is not fatal, and + inflate() can be called again with more input and more output space to + continue decompressing. If Z_DATA_ERROR is returned, the application may + then call inflateSync() to look for a good compression block if a partial + recovery of the data is to be attempted. +*/ + + +ZEXTERN int ZEXPORT inflateEnd(z_streamp strm); +/* + All dynamically allocated data structures for this stream are freed. + This function discards any unprocessed input and does not flush any pending + output. + + inflateEnd returns Z_OK if success, or Z_STREAM_ERROR if the stream state + was inconsistent. +*/ + + + /* Advanced functions */ + +/* + The following functions are needed only in some special applications. +*/ + +/* +ZEXTERN int ZEXPORT deflateInit2(z_streamp strm, + int level, + int method, + int windowBits, + int memLevel, + int strategy); + + This is another version of deflateInit with more compression options. The + fields zalloc, zfree and opaque must be initialized before by the caller. + + The method parameter is the compression method. It must be Z_DEFLATED in + this version of the library. + + The windowBits parameter is the base two logarithm of the window size + (the size of the history buffer). It should be in the range 8..15 for this + version of the library. Larger values of this parameter result in better + compression at the expense of memory usage. The default value is 15 if + deflateInit is used instead. + + For the current implementation of deflate(), a windowBits value of 8 (a + window size of 256 bytes) is not supported. As a result, a request for 8 + will result in 9 (a 512-byte window). In that case, providing 8 to + inflateInit2() will result in an error when the zlib header with 9 is + checked against the initialization of inflate(). The remedy is to not use 8 + with deflateInit2() with this initialization, or at least in that case use 9 + with inflateInit2(). + + windowBits can also be -8..-15 for raw deflate. In this case, -windowBits + determines the window size. deflate() will then generate raw deflate data + with no zlib header or trailer, and will not compute a check value. + + windowBits can also be greater than 15 for optional gzip encoding. Add + 16 to windowBits to write a simple gzip header and trailer around the + compressed data instead of a zlib wrapper. The gzip header will have no + file name, no extra data, no comment, no modification time (set to zero), no + header crc, and the operating system will be set to the appropriate value, + if the operating system was determined at compile time. If a gzip stream is + being written, strm->adler is a CRC-32 instead of an Adler-32. + + For raw deflate or gzip encoding, a request for a 256-byte window is + rejected as invalid, since only the zlib header provides a means of + transmitting the window size to the decompressor. + + The memLevel parameter specifies how much memory should be allocated + for the internal compression state. memLevel=1 uses minimum memory but is + slow and reduces compression ratio; memLevel=9 uses maximum memory for + optimal speed. The default value is 8. See zconf.h for total memory usage + as a function of windowBits and memLevel. + + The strategy parameter is used to tune the compression algorithm. Use the + value Z_DEFAULT_STRATEGY for normal data, Z_FILTERED for data produced by a + filter (or predictor), Z_HUFFMAN_ONLY to force Huffman encoding only (no + string match), or Z_RLE to limit match distances to one (run-length + encoding). Filtered data consists mostly of small values with a somewhat + random distribution. In this case, the compression algorithm is tuned to + compress them better. The effect of Z_FILTERED is to force more Huffman + coding and less string matching; it is somewhat intermediate between + Z_DEFAULT_STRATEGY and Z_HUFFMAN_ONLY. Z_RLE is designed to be almost as + fast as Z_HUFFMAN_ONLY, but give better compression for PNG image data. The + strategy parameter only affects the compression ratio but not the + correctness of the compressed output even if it is not set appropriately. + Z_FIXED prevents the use of dynamic Huffman codes, allowing for a simpler + decoder for special applications. + + deflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough + memory, Z_STREAM_ERROR if any parameter is invalid (such as an invalid + method), or Z_VERSION_ERROR if the zlib library version (zlib_version) is + incompatible with the version assumed by the caller (ZLIB_VERSION). msg is + set to null if there is no error message. deflateInit2 does not perform any + compression: this will be done by deflate(). +*/ + +ZEXTERN int ZEXPORT deflateSetDictionary(z_streamp strm, + const Bytef *dictionary, + uInt dictLength); +/* + Initializes the compression dictionary from the given byte sequence + without producing any compressed output. When using the zlib format, this + function must be called immediately after deflateInit, deflateInit2 or + deflateReset, and before any call of deflate. When doing raw deflate, this + function must be called either before any call of deflate, or immediately + after the completion of a deflate block, i.e. after all input has been + consumed and all output has been delivered when using any of the flush + options Z_BLOCK, Z_PARTIAL_FLUSH, Z_SYNC_FLUSH, or Z_FULL_FLUSH. The + compressor and decompressor must use exactly the same dictionary (see + inflateSetDictionary). + + The dictionary should consist of strings (byte sequences) that are likely + to be encountered later in the data to be compressed, with the most commonly + used strings preferably put towards the end of the dictionary. Using a + dictionary is most useful when the data to be compressed is short and can be + predicted with good accuracy; the data can then be compressed better than + with the default empty dictionary. + + Depending on the size of the compression data structures selected by + deflateInit or deflateInit2, a part of the dictionary may in effect be + discarded, for example if the dictionary is larger than the window size + provided in deflateInit or deflateInit2. Thus the strings most likely to be + useful should be put at the end of the dictionary, not at the front. In + addition, the current implementation of deflate will use at most the window + size minus 262 bytes of the provided dictionary. + + Upon return of this function, strm->adler is set to the Adler-32 value + of the dictionary; the decompressor may later use this value to determine + which dictionary has been used by the compressor. (The Adler-32 value + applies to the whole dictionary even if only a subset of the dictionary is + actually used by the compressor.) If a raw deflate was requested, then the + Adler-32 value is not computed and strm->adler is not set. + + deflateSetDictionary returns Z_OK if success, or Z_STREAM_ERROR if a + parameter is invalid (e.g. dictionary being Z_NULL) or the stream state is + inconsistent (for example if deflate has already been called for this stream + or if not at a block boundary for raw deflate). deflateSetDictionary does + not perform any compression: this will be done by deflate(). +*/ + +ZEXTERN int ZEXPORT deflateGetDictionary(z_streamp strm, + Bytef *dictionary, + uInt *dictLength); +/* + Returns the sliding dictionary being maintained by deflate. dictLength is + set to the number of bytes in the dictionary, and that many bytes are copied + to dictionary. dictionary must have enough space, where 32768 bytes is + always enough. If deflateGetDictionary() is called with dictionary equal to + Z_NULL, then only the dictionary length is returned, and nothing is copied. + Similarly, if dictLength is Z_NULL, then it is not set. + + deflateGetDictionary() may return a length less than the window size, even + when more than the window size in input has been provided. It may return up + to 258 bytes less in that case, due to how zlib's implementation of deflate + manages the sliding window and lookahead for matches, where matches can be + up to 258 bytes long. If the application needs the last window-size bytes of + input, then that would need to be saved by the application outside of zlib. + + deflateGetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the + stream state is inconsistent. +*/ + +ZEXTERN int ZEXPORT deflateCopy(z_streamp dest, + z_streamp source); +/* + Sets the destination stream as a complete copy of the source stream. + + This function can be useful when several compression strategies will be + tried, for example when there are several ways of pre-processing the input + data with a filter. The streams that will be discarded should then be freed + by calling deflateEnd. Note that deflateCopy duplicates the internal + compression state which can be quite large, so this strategy is slow and can + consume lots of memory. + + deflateCopy returns Z_OK if success, Z_MEM_ERROR if there was not + enough memory, Z_STREAM_ERROR if the source stream state was inconsistent + (such as zalloc being Z_NULL). msg is left unchanged in both source and + destination. +*/ + +ZEXTERN int ZEXPORT deflateReset(z_streamp strm); +/* + This function is equivalent to deflateEnd followed by deflateInit, but + does not free and reallocate the internal compression state. The stream + will leave the compression level and any other attributes that may have been + set unchanged. total_in, total_out, adler, and msg are initialized. + + deflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source + stream state was inconsistent (such as zalloc or state being Z_NULL). +*/ + +ZEXTERN int ZEXPORT deflateParams(z_streamp strm, + int level, + int strategy); +/* + Dynamically update the compression level and compression strategy. The + interpretation of level and strategy is as in deflateInit2(). This can be + used to switch between compression and straight copy of the input data, or + to switch to a different kind of input data requiring a different strategy. + If the compression approach (which is a function of the level) or the + strategy is changed, and if there have been any deflate() calls since the + state was initialized or reset, then the input available so far is + compressed with the old level and strategy using deflate(strm, Z_BLOCK). + There are three approaches for the compression levels 0, 1..3, and 4..9 + respectively. The new level and strategy will take effect at the next call + of deflate(). + + If a deflate(strm, Z_BLOCK) is performed by deflateParams(), and it does + not have enough output space to complete, then the parameter change will not + take effect. In this case, deflateParams() can be called again with the + same parameters and more output space to try again. + + In order to assure a change in the parameters on the first try, the + deflate stream should be flushed using deflate() with Z_BLOCK or other flush + request until strm.avail_out is not zero, before calling deflateParams(). + Then no more input data should be provided before the deflateParams() call. + If this is done, the old level and strategy will be applied to the data + compressed before deflateParams(), and the new level and strategy will be + applied to the data compressed after deflateParams(). + + deflateParams returns Z_OK on success, Z_STREAM_ERROR if the source stream + state was inconsistent or if a parameter was invalid, or Z_BUF_ERROR if + there was not enough output space to complete the compression of the + available input data before a change in the strategy or approach. Note that + in the case of a Z_BUF_ERROR, the parameters are not changed. A return + value of Z_BUF_ERROR is not fatal, in which case deflateParams() can be + retried with more output space. +*/ + +ZEXTERN int ZEXPORT deflateTune(z_streamp strm, + int good_length, + int max_lazy, + int nice_length, + int max_chain); +/* + Fine tune deflate's internal compression parameters. This should only be + used by someone who understands the algorithm used by zlib's deflate for + searching for the best matching string, and even then only by the most + fanatic optimizer trying to squeeze out the last compressed bit for their + specific input data. Read the deflate.c source code for the meaning of the + max_lazy, good_length, nice_length, and max_chain parameters. + + deflateTune() can be called after deflateInit() or deflateInit2(), and + returns Z_OK on success, or Z_STREAM_ERROR for an invalid deflate stream. + */ + +ZEXTERN uLong ZEXPORT deflateBound(z_streamp strm, + uLong sourceLen); +/* + deflateBound() returns an upper bound on the compressed size after + deflation of sourceLen bytes. It must be called after deflateInit() or + deflateInit2(), and after deflateSetHeader(), if used. This would be used + to allocate an output buffer for deflation in a single pass, and so would be + called before deflate(). If that first deflate() call is provided the + sourceLen input bytes, an output buffer allocated to the size returned by + deflateBound(), and the flush value Z_FINISH, then deflate() is guaranteed + to return Z_STREAM_END. Note that it is possible for the compressed size to + be larger than the value returned by deflateBound() if flush options other + than Z_FINISH or Z_NO_FLUSH are used. +*/ + +ZEXTERN int ZEXPORT deflatePending(z_streamp strm, + unsigned *pending, + int *bits); +/* + deflatePending() returns the number of bytes and bits of output that have + been generated, but not yet provided in the available output. The bytes not + provided would be due to the available output space having being consumed. + The number of bits of output not provided are between 0 and 7, where they + await more bits to join them in order to fill out a full byte. If pending + or bits are Z_NULL, then those values are not set. + + deflatePending returns Z_OK if success, or Z_STREAM_ERROR if the source + stream state was inconsistent. + */ + +ZEXTERN int ZEXPORT deflatePrime(z_streamp strm, + int bits, + int value); +/* + deflatePrime() inserts bits in the deflate output stream. The intent + is that this function is used to start off the deflate output with the bits + leftover from a previous deflate stream when appending to it. As such, this + function can only be used for raw deflate, and must be used before the first + deflate() call after a deflateInit2() or deflateReset(). bits must be less + than or equal to 16, and that many of the least significant bits of value + will be inserted in the output. + + deflatePrime returns Z_OK if success, Z_BUF_ERROR if there was not enough + room in the internal buffer to insert the bits, or Z_STREAM_ERROR if the + source stream state was inconsistent. +*/ + +ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm, + gz_headerp head); +/* + deflateSetHeader() provides gzip header information for when a gzip + stream is requested by deflateInit2(). deflateSetHeader() may be called + after deflateInit2() or deflateReset() and before the first call of + deflate(). The text, time, os, extra field, name, and comment information + in the provided gz_header structure are written to the gzip header (xflag is + ignored -- the extra flags are set according to the compression level). The + caller must assure that, if not Z_NULL, name and comment are terminated with + a zero byte, and that if extra is not Z_NULL, that extra_len bytes are + available there. If hcrc is true, a gzip header crc is included. Note that + the current versions of the command-line version of gzip (up through version + 1.3.x) do not support header crc's, and will report that it is a "multi-part + gzip file" and give up. + + If deflateSetHeader is not used, the default gzip header has text false, + the time set to zero, and os set to the current operating system, with no + extra, name, or comment fields. The gzip header is returned to the default + state by deflateReset(). + + deflateSetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source + stream state was inconsistent. +*/ + +/* +ZEXTERN int ZEXPORT inflateInit2(z_streamp strm, + int windowBits); + + This is another version of inflateInit with an extra parameter. The + fields next_in, avail_in, zalloc, zfree and opaque must be initialized + before by the caller. + + The windowBits parameter is the base two logarithm of the maximum window + size (the size of the history buffer). It should be in the range 8..15 for + this version of the library. The default value is 15 if inflateInit is used + instead. windowBits must be greater than or equal to the windowBits value + provided to deflateInit2() while compressing, or it must be equal to 15 if + deflateInit2() was not used. If a compressed stream with a larger window + size is given as input, inflate() will return with the error code + Z_DATA_ERROR instead of trying to allocate a larger window. + + windowBits can also be zero to request that inflate use the window size in + the zlib header of the compressed stream. + + windowBits can also be -8..-15 for raw inflate. In this case, -windowBits + determines the window size. inflate() will then process raw deflate data, + not looking for a zlib or gzip header, not generating a check value, and not + looking for any check values for comparison at the end of the stream. This + is for use with other formats that use the deflate compressed data format + such as zip. Those formats provide their own check values. If a custom + format is developed using the raw deflate format for compressed data, it is + recommended that a check value such as an Adler-32 or a CRC-32 be applied to + the uncompressed data as is done in the zlib, gzip, and zip formats. For + most applications, the zlib format should be used as is. Note that comments + above on the use in deflateInit2() applies to the magnitude of windowBits. + + windowBits can also be greater than 15 for optional gzip decoding. Add + 32 to windowBits to enable zlib and gzip decoding with automatic header + detection, or add 16 to decode only the gzip format (the zlib format will + return a Z_DATA_ERROR). If a gzip stream is being decoded, strm->adler is a + CRC-32 instead of an Adler-32. Unlike the gunzip utility and gzread() (see + below), inflate() will *not* automatically decode concatenated gzip members. + inflate() will return Z_STREAM_END at the end of the gzip member. The state + would need to be reset to continue decoding a subsequent gzip member. This + *must* be done if there is more data after a gzip member, in order for the + decompression to be compliant with the gzip standard (RFC 1952). + + inflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough + memory, Z_VERSION_ERROR if the zlib library version is incompatible with the + version assumed by the caller, or Z_STREAM_ERROR if the parameters are + invalid, such as a null pointer to the structure. msg is set to null if + there is no error message. inflateInit2 does not perform any decompression + apart from possibly reading the zlib header if present: actual decompression + will be done by inflate(). (So next_in and avail_in may be modified, but + next_out and avail_out are unused and unchanged.) The current implementation + of inflateInit2() does not process any header information -- that is + deferred until inflate() is called. +*/ + +ZEXTERN int ZEXPORT inflateSetDictionary(z_streamp strm, + const Bytef *dictionary, + uInt dictLength); +/* + Initializes the decompression dictionary from the given uncompressed byte + sequence. This function must be called immediately after a call of inflate, + if that call returned Z_NEED_DICT. The dictionary chosen by the compressor + can be determined from the Adler-32 value returned by that call of inflate. + The compressor and decompressor must use exactly the same dictionary (see + deflateSetDictionary). For raw inflate, this function can be called at any + time to set the dictionary. If the provided dictionary is smaller than the + window and there is already data in the window, then the provided dictionary + will amend what's there. The application must insure that the dictionary + that was used for compression is provided. + + inflateSetDictionary returns Z_OK if success, Z_STREAM_ERROR if a + parameter is invalid (e.g. dictionary being Z_NULL) or the stream state is + inconsistent, Z_DATA_ERROR if the given dictionary doesn't match the + expected one (incorrect Adler-32 value). inflateSetDictionary does not + perform any decompression: this will be done by subsequent calls of + inflate(). +*/ + +ZEXTERN int ZEXPORT inflateGetDictionary(z_streamp strm, + Bytef *dictionary, + uInt *dictLength); +/* + Returns the sliding dictionary being maintained by inflate. dictLength is + set to the number of bytes in the dictionary, and that many bytes are copied + to dictionary. dictionary must have enough space, where 32768 bytes is + always enough. If inflateGetDictionary() is called with dictionary equal to + Z_NULL, then only the dictionary length is returned, and nothing is copied. + Similarly, if dictLength is Z_NULL, then it is not set. + + inflateGetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the + stream state is inconsistent. +*/ + +ZEXTERN int ZEXPORT inflateSync(z_streamp strm); +/* + Skips invalid compressed data until a possible full flush point (see above + for the description of deflate with Z_FULL_FLUSH) can be found, or until all + available input is skipped. No output is provided. + + inflateSync searches for a 00 00 FF FF pattern in the compressed data. + All full flush points have this pattern, but not all occurrences of this + pattern are full flush points. + + inflateSync returns Z_OK if a possible full flush point has been found, + Z_BUF_ERROR if no more input was provided, Z_DATA_ERROR if no flush point + has been found, or Z_STREAM_ERROR if the stream structure was inconsistent. + In the success case, the application may save the current value of total_in + which indicates where valid compressed data was found. In the error case, + the application may repeatedly call inflateSync, providing more input each + time, until success or end of the input data. +*/ + +ZEXTERN int ZEXPORT inflateCopy(z_streamp dest, + z_streamp source); +/* + Sets the destination stream as a complete copy of the source stream. + + This function can be useful when randomly accessing a large stream. The + first pass through the stream can periodically record the inflate state, + allowing restarting inflate at those points when randomly accessing the + stream. + + inflateCopy returns Z_OK if success, Z_MEM_ERROR if there was not + enough memory, Z_STREAM_ERROR if the source stream state was inconsistent + (such as zalloc being Z_NULL). msg is left unchanged in both source and + destination. +*/ + +ZEXTERN int ZEXPORT inflateReset(z_streamp strm); +/* + This function is equivalent to inflateEnd followed by inflateInit, + but does not free and reallocate the internal decompression state. The + stream will keep attributes that may have been set by inflateInit2. + total_in, total_out, adler, and msg are initialized. + + inflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source + stream state was inconsistent (such as zalloc or state being Z_NULL). +*/ + +ZEXTERN int ZEXPORT inflateReset2(z_streamp strm, + int windowBits); +/* + This function is the same as inflateReset, but it also permits changing + the wrap and window size requests. The windowBits parameter is interpreted + the same as it is for inflateInit2. If the window size is changed, then the + memory allocated for the window is freed, and the window will be reallocated + by inflate() if needed. + + inflateReset2 returns Z_OK if success, or Z_STREAM_ERROR if the source + stream state was inconsistent (such as zalloc or state being Z_NULL), or if + the windowBits parameter is invalid. +*/ + +ZEXTERN int ZEXPORT inflatePrime(z_streamp strm, + int bits, + int value); +/* + This function inserts bits in the inflate input stream. The intent is + that this function is used to start inflating at a bit position in the + middle of a byte. The provided bits will be used before any bytes are used + from next_in. This function should only be used with raw inflate, and + should be used before the first inflate() call after inflateInit2() or + inflateReset(). bits must be less than or equal to 16, and that many of the + least significant bits of value will be inserted in the input. + + If bits is negative, then the input stream bit buffer is emptied. Then + inflatePrime() can be called again to put bits in the buffer. This is used + to clear out bits leftover after feeding inflate a block description prior + to feeding inflate codes. + + inflatePrime returns Z_OK if success, or Z_STREAM_ERROR if the source + stream state was inconsistent. +*/ + +ZEXTERN long ZEXPORT inflateMark(z_streamp strm); +/* + This function returns two values, one in the lower 16 bits of the return + value, and the other in the remaining upper bits, obtained by shifting the + return value down 16 bits. If the upper value is -1 and the lower value is + zero, then inflate() is currently decoding information outside of a block. + If the upper value is -1 and the lower value is non-zero, then inflate is in + the middle of a stored block, with the lower value equaling the number of + bytes from the input remaining to copy. If the upper value is not -1, then + it is the number of bits back from the current bit position in the input of + the code (literal or length/distance pair) currently being processed. In + that case the lower value is the number of bytes already emitted for that + code. + + A code is being processed if inflate is waiting for more input to complete + decoding of the code, or if it has completed decoding but is waiting for + more output space to write the literal or match data. + + inflateMark() is used to mark locations in the input data for random + access, which may be at bit positions, and to note those cases where the + output of a code may span boundaries of random access blocks. The current + location in the input stream can be determined from avail_in and data_type + as noted in the description for the Z_BLOCK flush parameter for inflate. + + inflateMark returns the value noted above, or -65536 if the provided + source stream state was inconsistent. +*/ + +ZEXTERN int ZEXPORT inflateGetHeader(z_streamp strm, + gz_headerp head); +/* + inflateGetHeader() requests that gzip header information be stored in the + provided gz_header structure. inflateGetHeader() may be called after + inflateInit2() or inflateReset(), and before the first call of inflate(). + As inflate() processes the gzip stream, head->done is zero until the header + is completed, at which time head->done is set to one. If a zlib stream is + being decoded, then head->done is set to -1 to indicate that there will be + no gzip header information forthcoming. Note that Z_BLOCK or Z_TREES can be + used to force inflate() to return immediately after header processing is + complete and before any actual data is decompressed. + + The text, time, xflags, and os fields are filled in with the gzip header + contents. hcrc is set to true if there is a header CRC. (The header CRC + was valid if done is set to one.) If extra is not Z_NULL, then extra_max + contains the maximum number of bytes to write to extra. Once done is true, + extra_len contains the actual extra field length, and extra contains the + extra field, or that field truncated if extra_max is less than extra_len. + If name is not Z_NULL, then up to name_max characters are written there, + terminated with a zero unless the length is greater than name_max. If + comment is not Z_NULL, then up to comm_max characters are written there, + terminated with a zero unless the length is greater than comm_max. When any + of extra, name, or comment are not Z_NULL and the respective field is not + present in the header, then that field is set to Z_NULL to signal its + absence. This allows the use of deflateSetHeader() with the returned + structure to duplicate the header. However if those fields are set to + allocated memory, then the application will need to save those pointers + elsewhere so that they can be eventually freed. + + If inflateGetHeader is not used, then the header information is simply + discarded. The header is always checked for validity, including the header + CRC if present. inflateReset() will reset the process to discard the header + information. The application would need to call inflateGetHeader() again to + retrieve the header from the next gzip stream. + + inflateGetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source + stream state was inconsistent. +*/ + +/* +ZEXTERN int ZEXPORT inflateBackInit(z_streamp strm, int windowBits, + unsigned char FAR *window); + + Initialize the internal stream state for decompression using inflateBack() + calls. The fields zalloc, zfree and opaque in strm must be initialized + before the call. If zalloc and zfree are Z_NULL, then the default library- + derived memory allocation routines are used. windowBits is the base two + logarithm of the window size, in the range 8..15. window is a caller + supplied buffer of that size. Except for special applications where it is + assured that deflate was used with small window sizes, windowBits must be 15 + and a 32K byte window must be supplied to be able to decompress general + deflate streams. + + See inflateBack() for the usage of these routines. + + inflateBackInit will return Z_OK on success, Z_STREAM_ERROR if any of + the parameters are invalid, Z_MEM_ERROR if the internal state could not be + allocated, or Z_VERSION_ERROR if the version of the library does not match + the version of the header file. +*/ + +typedef unsigned (*in_func)(void FAR *, + z_const unsigned char FAR * FAR *); +typedef int (*out_func)(void FAR *, unsigned char FAR *, unsigned); + +ZEXTERN int ZEXPORT inflateBack(z_streamp strm, + in_func in, void FAR *in_desc, + out_func out, void FAR *out_desc); +/* + inflateBack() does a raw inflate with a single call using a call-back + interface for input and output. This is potentially more efficient than + inflate() for file i/o applications, in that it avoids copying between the + output and the sliding window by simply making the window itself the output + buffer. inflate() can be faster on modern CPUs when used with large + buffers. inflateBack() trusts the application to not change the output + buffer passed by the output function, at least until inflateBack() returns. + + inflateBackInit() must be called first to allocate the internal state + and to initialize the state with the user-provided window buffer. + inflateBack() may then be used multiple times to inflate a complete, raw + deflate stream with each call. inflateBackEnd() is then called to free the + allocated state. + + A raw deflate stream is one with no zlib or gzip header or trailer. + This routine would normally be used in a utility that reads zip or gzip + files and writes out uncompressed files. The utility would decode the + header and process the trailer on its own, hence this routine expects only + the raw deflate stream to decompress. This is different from the default + behavior of inflate(), which expects a zlib header and trailer around the + deflate stream. + + inflateBack() uses two subroutines supplied by the caller that are then + called by inflateBack() for input and output. inflateBack() calls those + routines until it reads a complete deflate stream and writes out all of the + uncompressed data, or until it encounters an error. The function's + parameters and return types are defined above in the in_func and out_func + typedefs. inflateBack() will call in(in_desc, &buf) which should return the + number of bytes of provided input, and a pointer to that input in buf. If + there is no input available, in() must return zero -- buf is ignored in that + case -- and inflateBack() will return a buffer error. inflateBack() will + call out(out_desc, buf, len) to write the uncompressed data buf[0..len-1]. + out() should return zero on success, or non-zero on failure. If out() + returns non-zero, inflateBack() will return with an error. Neither in() nor + out() are permitted to change the contents of the window provided to + inflateBackInit(), which is also the buffer that out() uses to write from. + The length written by out() will be at most the window size. Any non-zero + amount of input may be provided by in(). + + For convenience, inflateBack() can be provided input on the first call by + setting strm->next_in and strm->avail_in. If that input is exhausted, then + in() will be called. Therefore strm->next_in must be initialized before + calling inflateBack(). If strm->next_in is Z_NULL, then in() will be called + immediately for input. If strm->next_in is not Z_NULL, then strm->avail_in + must also be initialized, and then if strm->avail_in is not zero, input will + initially be taken from strm->next_in[0 .. strm->avail_in - 1]. + + The in_desc and out_desc parameters of inflateBack() is passed as the + first parameter of in() and out() respectively when they are called. These + descriptors can be optionally used to pass any information that the caller- + supplied in() and out() functions need to do their job. + + On return, inflateBack() will set strm->next_in and strm->avail_in to + pass back any unused input that was provided by the last in() call. The + return values of inflateBack() can be Z_STREAM_END on success, Z_BUF_ERROR + if in() or out() returned an error, Z_DATA_ERROR if there was a format error + in the deflate stream (in which case strm->msg is set to indicate the nature + of the error), or Z_STREAM_ERROR if the stream was not properly initialized. + In the case of Z_BUF_ERROR, an input or output error can be distinguished + using strm->next_in which will be Z_NULL only if in() returned an error. If + strm->next_in is not Z_NULL, then the Z_BUF_ERROR was due to out() returning + non-zero. (in() will always be called before out(), so strm->next_in is + assured to be defined if out() returns non-zero.) Note that inflateBack() + cannot return Z_OK. +*/ + +ZEXTERN int ZEXPORT inflateBackEnd(z_streamp strm); +/* + All memory allocated by inflateBackInit() is freed. + + inflateBackEnd() returns Z_OK on success, or Z_STREAM_ERROR if the stream + state was inconsistent. +*/ + +ZEXTERN uLong ZEXPORT zlibCompileFlags(void); +/* Return flags indicating compile-time options. + + Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other: + 1.0: size of uInt + 3.2: size of uLong + 5.4: size of voidpf (pointer) + 7.6: size of z_off_t + + Compiler, assembler, and debug options: + 8: ZLIB_DEBUG + 9: ASMV or ASMINF -- use ASM code + 10: ZLIB_WINAPI -- exported functions use the WINAPI calling convention + 11: 0 (reserved) + + One-time table building (smaller code, but not thread-safe if true): + 12: BUILDFIXED -- build static block decoding tables when needed + 13: DYNAMIC_CRC_TABLE -- build CRC calculation tables when needed + 14,15: 0 (reserved) + + Library content (indicates missing functionality): + 16: NO_GZCOMPRESS -- gz* functions cannot compress (to avoid linking + deflate code when not needed) + 17: NO_GZIP -- deflate can't write gzip streams, and inflate can't detect + and decode gzip streams (to avoid linking crc code) + 18-19: 0 (reserved) + + Operation variations (changes in library functionality): + 20: PKZIP_BUG_WORKAROUND -- slightly more permissive inflate + 21: FASTEST -- deflate algorithm with only one, lowest compression level + 22,23: 0 (reserved) + + The sprintf variant used by gzprintf (zero is best): + 24: 0 = vs*, 1 = s* -- 1 means limited to 20 arguments after the format + 25: 0 = *nprintf, 1 = *printf -- 1 means gzprintf() not secure! + 26: 0 = returns value, 1 = void -- 1 means inferred string length returned + + Remainder: + 27-31: 0 (reserved) + */ + +#ifndef Z_SOLO + + /* utility functions */ + +/* + The following utility functions are implemented on top of the basic + stream-oriented functions. To simplify the interface, some default options + are assumed (compression level and memory usage, standard memory allocation + functions). The source code of these utility functions can be modified if + you need special options. +*/ + +ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen, + const Bytef *source, uLong sourceLen); +/* + Compresses the source buffer into the destination buffer. sourceLen is + the byte length of the source buffer. Upon entry, destLen is the total size + of the destination buffer, which must be at least the value returned by + compressBound(sourceLen). Upon exit, destLen is the actual size of the + compressed data. compress() is equivalent to compress2() with a level + parameter of Z_DEFAULT_COMPRESSION. + + compress returns Z_OK if success, Z_MEM_ERROR if there was not + enough memory, Z_BUF_ERROR if there was not enough room in the output + buffer. +*/ + +ZEXTERN int ZEXPORT compress2(Bytef *dest, uLongf *destLen, + const Bytef *source, uLong sourceLen, + int level); +/* + Compresses the source buffer into the destination buffer. The level + parameter has the same meaning as in deflateInit. sourceLen is the byte + length of the source buffer. Upon entry, destLen is the total size of the + destination buffer, which must be at least the value returned by + compressBound(sourceLen). Upon exit, destLen is the actual size of the + compressed data. + + compress2 returns Z_OK if success, Z_MEM_ERROR if there was not enough + memory, Z_BUF_ERROR if there was not enough room in the output buffer, + Z_STREAM_ERROR if the level parameter is invalid. +*/ + +ZEXTERN uLong ZEXPORT compressBound(uLong sourceLen); +/* + compressBound() returns an upper bound on the compressed size after + compress() or compress2() on sourceLen bytes. It would be used before a + compress() or compress2() call to allocate the destination buffer. +*/ + +ZEXTERN int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, + const Bytef *source, uLong sourceLen); +/* + Decompresses the source buffer into the destination buffer. sourceLen is + the byte length of the source buffer. Upon entry, destLen is the total size + of the destination buffer, which must be large enough to hold the entire + uncompressed data. (The size of the uncompressed data must have been saved + previously by the compressor and transmitted to the decompressor by some + mechanism outside the scope of this compression library.) Upon exit, destLen + is the actual size of the uncompressed data. + + uncompress returns Z_OK if success, Z_MEM_ERROR if there was not + enough memory, Z_BUF_ERROR if there was not enough room in the output + buffer, or Z_DATA_ERROR if the input data was corrupted or incomplete. In + the case where there is not enough room, uncompress() will fill the output + buffer with the uncompressed data up to that point. +*/ + +ZEXTERN int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, + const Bytef *source, uLong *sourceLen); +/* + Same as uncompress, except that sourceLen is a pointer, where the + length of the source is *sourceLen. On return, *sourceLen is the number of + source bytes consumed. +*/ + + /* gzip file access functions */ + +/* + This library supports reading and writing files in gzip (.gz) format with + an interface similar to that of stdio, using the functions that start with + "gz". The gzip format is different from the zlib format. gzip is a gzip + wrapper, documented in RFC 1952, wrapped around a deflate stream. +*/ + +typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */ + +/* +ZEXTERN gzFile ZEXPORT gzopen(const char *path, const char *mode); + + Open the gzip (.gz) file at path for reading and decompressing, or + compressing and writing. The mode parameter is as in fopen ("rb" or "wb") + but can also include a compression level ("wb9") or a strategy: 'f' for + filtered data as in "wb6f", 'h' for Huffman-only compression as in "wb1h", + 'R' for run-length encoding as in "wb1R", or 'F' for fixed code compression + as in "wb9F". (See the description of deflateInit2 for more information + about the strategy parameter.) 'T' will request transparent writing or + appending with no compression and not using the gzip format. + + "a" can be used instead of "w" to request that the gzip stream that will + be written be appended to the file. "+" will result in an error, since + reading and writing to the same gzip file is not supported. The addition of + "x" when writing will create the file exclusively, which fails if the file + already exists. On systems that support it, the addition of "e" when + reading or writing will set the flag to close the file on an execve() call. + + These functions, as well as gzip, will read and decode a sequence of gzip + streams in a file. The append function of gzopen() can be used to create + such a file. (Also see gzflush() for another way to do this.) When + appending, gzopen does not test whether the file begins with a gzip stream, + nor does it look for the end of the gzip streams to begin appending. gzopen + will simply append a gzip stream to the existing file. + + gzopen can be used to read a file which is not in gzip format; in this + case gzread will directly read from the file without decompression. When + reading, this will be detected automatically by looking for the magic two- + byte gzip header. + + gzopen returns NULL if the file could not be opened, if there was + insufficient memory to allocate the gzFile state, or if an invalid mode was + specified (an 'r', 'w', or 'a' was not provided, or '+' was provided). + errno can be checked to determine if the reason gzopen failed was that the + file could not be opened. +*/ + +ZEXTERN gzFile ZEXPORT gzdopen(int fd, const char *mode); +/* + Associate a gzFile with the file descriptor fd. File descriptors are + obtained from calls like open, dup, creat, pipe or fileno (if the file has + been previously opened with fopen). The mode parameter is as in gzopen. + + The next call of gzclose on the returned gzFile will also close the file + descriptor fd, just like fclose(fdopen(fd, mode)) closes the file descriptor + fd. If you want to keep fd open, use fd = dup(fd_keep); gz = gzdopen(fd, + mode);. The duplicated descriptor should be saved to avoid a leak, since + gzdopen does not close fd if it fails. If you are using fileno() to get the + file descriptor from a FILE *, then you will have to use dup() to avoid + double-close()ing the file descriptor. Both gzclose() and fclose() will + close the associated file descriptor, so they need to have different file + descriptors. + + gzdopen returns NULL if there was insufficient memory to allocate the + gzFile state, if an invalid mode was specified (an 'r', 'w', or 'a' was not + provided, or '+' was provided), or if fd is -1. The file descriptor is not + used until the next gz* read, write, seek, or close operation, so gzdopen + will not detect if fd is invalid (unless fd is -1). +*/ + +ZEXTERN int ZEXPORT gzbuffer(gzFile file, unsigned size); +/* + Set the internal buffer size used by this library's functions for file to + size. The default buffer size is 8192 bytes. This function must be called + after gzopen() or gzdopen(), and before any other calls that read or write + the file. The buffer memory allocation is always deferred to the first read + or write. Three times that size in buffer space is allocated. A larger + buffer size of, for example, 64K or 128K bytes will noticeably increase the + speed of decompression (reading). + + The new buffer size also affects the maximum length for gzprintf(). + + gzbuffer() returns 0 on success, or -1 on failure, such as being called + too late. +*/ + +ZEXTERN int ZEXPORT gzsetparams(gzFile file, int level, int strategy); +/* + Dynamically update the compression level and strategy for file. See the + description of deflateInit2 for the meaning of these parameters. Previously + provided data is flushed before applying the parameter changes. + + gzsetparams returns Z_OK if success, Z_STREAM_ERROR if the file was not + opened for writing, Z_ERRNO if there is an error writing the flushed data, + or Z_MEM_ERROR if there is a memory allocation error. +*/ + +ZEXTERN int ZEXPORT gzread(gzFile file, voidp buf, unsigned len); +/* + Read and decompress up to len uncompressed bytes from file into buf. If + the input file is not in gzip format, gzread copies the given number of + bytes into the buffer directly from the file. + + After reaching the end of a gzip stream in the input, gzread will continue + to read, looking for another gzip stream. Any number of gzip streams may be + concatenated in the input file, and will all be decompressed by gzread(). + If something other than a gzip stream is encountered after a gzip stream, + that remaining trailing garbage is ignored (and no error is returned). + + gzread can be used to read a gzip file that is being concurrently written. + Upon reaching the end of the input, gzread will return with the available + data. If the error code returned by gzerror is Z_OK or Z_BUF_ERROR, then + gzclearerr can be used to clear the end of file indicator in order to permit + gzread to be tried again. Z_OK indicates that a gzip stream was completed + on the last gzread. Z_BUF_ERROR indicates that the input file ended in the + middle of a gzip stream. Note that gzread does not return -1 in the event + of an incomplete gzip stream. This error is deferred until gzclose(), which + will return Z_BUF_ERROR if the last gzread ended in the middle of a gzip + stream. Alternatively, gzerror can be used before gzclose to detect this + case. + + gzread returns the number of uncompressed bytes actually read, less than + len for end of file, or -1 for error. If len is too large to fit in an int, + then nothing is read, -1 is returned, and the error state is set to + Z_STREAM_ERROR. +*/ + +ZEXTERN z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems, + gzFile file); +/* + Read and decompress up to nitems items of size size from file into buf, + otherwise operating as gzread() does. This duplicates the interface of + stdio's fread(), with size_t request and return types. If the library + defines size_t, then z_size_t is identical to size_t. If not, then z_size_t + is an unsigned integer type that can contain a pointer. + + gzfread() returns the number of full items read of size size, or zero if + the end of the file was reached and a full item could not be read, or if + there was an error. gzerror() must be consulted if zero is returned in + order to determine if there was an error. If the multiplication of size and + nitems overflows, i.e. the product does not fit in a z_size_t, then nothing + is read, zero is returned, and the error state is set to Z_STREAM_ERROR. + + In the event that the end of file is reached and only a partial item is + available at the end, i.e. the remaining uncompressed data length is not a + multiple of size, then the final partial item is nevertheless read into buf + and the end-of-file flag is set. The length of the partial item read is not + provided, but could be inferred from the result of gztell(). This behavior + is the same as the behavior of fread() implementations in common libraries, + but it prevents the direct use of gzfread() to read a concurrently written + file, resetting and retrying on end-of-file, when size is not 1. +*/ + +ZEXTERN int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len); +/* + Compress and write the len uncompressed bytes at buf to file. gzwrite + returns the number of uncompressed bytes written or 0 in case of error. +*/ + +ZEXTERN z_size_t ZEXPORT gzfwrite(voidpc buf, z_size_t size, + z_size_t nitems, gzFile file); +/* + Compress and write nitems items of size size from buf to file, duplicating + the interface of stdio's fwrite(), with size_t request and return types. If + the library defines size_t, then z_size_t is identical to size_t. If not, + then z_size_t is an unsigned integer type that can contain a pointer. + + gzfwrite() returns the number of full items written of size size, or zero + if there was an error. If the multiplication of size and nitems overflows, + i.e. the product does not fit in a z_size_t, then nothing is written, zero + is returned, and the error state is set to Z_STREAM_ERROR. +*/ + +ZEXTERN int ZEXPORTVA gzprintf(gzFile file, const char *format, ...); +/* + Convert, format, compress, and write the arguments (...) to file under + control of the string format, as in fprintf. gzprintf returns the number of + uncompressed bytes actually written, or a negative zlib error code in case + of error. The number of uncompressed bytes written is limited to 8191, or + one less than the buffer size given to gzbuffer(). The caller should assure + that this limit is not exceeded. If it is exceeded, then gzprintf() will + return an error (0) with nothing written. In this case, there may also be a + buffer overflow with unpredictable consequences, which is possible only if + zlib was compiled with the insecure functions sprintf() or vsprintf(), + because the secure snprintf() or vsnprintf() functions were not available. + This can be determined using zlibCompileFlags(). +*/ + +ZEXTERN int ZEXPORT gzputs(gzFile file, const char *s); +/* + Compress and write the given null-terminated string s to file, excluding + the terminating null character. + + gzputs returns the number of characters written, or -1 in case of error. +*/ + +ZEXTERN char * ZEXPORT gzgets(gzFile file, char *buf, int len); +/* + Read and decompress bytes from file into buf, until len-1 characters are + read, or until a newline character is read and transferred to buf, or an + end-of-file condition is encountered. If any characters are read or if len + is one, the string is terminated with a null character. If no characters + are read due to an end-of-file or len is less than one, then the buffer is + left untouched. + + gzgets returns buf which is a null-terminated string, or it returns NULL + for end-of-file or in case of error. If there was an error, the contents at + buf are indeterminate. +*/ + +ZEXTERN int ZEXPORT gzputc(gzFile file, int c); +/* + Compress and write c, converted to an unsigned char, into file. gzputc + returns the value that was written, or -1 in case of error. +*/ + +ZEXTERN int ZEXPORT gzgetc(gzFile file); +/* + Read and decompress one byte from file. gzgetc returns this byte or -1 + in case of end of file or error. This is implemented as a macro for speed. + As such, it does not do all of the checking the other functions do. I.e. + it does not check to see if file is NULL, nor whether the structure file + points to has been clobbered or not. +*/ + +ZEXTERN int ZEXPORT gzungetc(int c, gzFile file); +/* + Push c back onto the stream for file to be read as the first character on + the next read. At least one character of push-back is always allowed. + gzungetc() returns the character pushed, or -1 on failure. gzungetc() will + fail if c is -1, and may fail if a character has been pushed but not read + yet. If gzungetc is used immediately after gzopen or gzdopen, at least the + output buffer size of pushed characters is allowed. (See gzbuffer above.) + The pushed character will be discarded if the stream is repositioned with + gzseek() or gzrewind(). +*/ + +ZEXTERN int ZEXPORT gzflush(gzFile file, int flush); +/* + Flush all pending output to file. The parameter flush is as in the + deflate() function. The return value is the zlib error number (see function + gzerror below). gzflush is only permitted when writing. + + If the flush parameter is Z_FINISH, the remaining data is written and the + gzip stream is completed in the output. If gzwrite() is called again, a new + gzip stream will be started in the output. gzread() is able to read such + concatenated gzip streams. + + gzflush should be called only when strictly necessary because it will + degrade compression if called too often. +*/ + +/* +ZEXTERN z_off_t ZEXPORT gzseek(gzFile file, + z_off_t offset, int whence); + + Set the starting position to offset relative to whence for the next gzread + or gzwrite on file. The offset represents a number of bytes in the + uncompressed data stream. The whence parameter is defined as in lseek(2); + the value SEEK_END is not supported. + + If the file is opened for reading, this function is emulated but can be + extremely slow. If the file is opened for writing, only forward seeks are + supported; gzseek then compresses a sequence of zeroes up to the new + starting position. + + gzseek returns the resulting offset location as measured in bytes from + the beginning of the uncompressed stream, or -1 in case of error, in + particular if the file is opened for writing and the new starting position + would be before the current position. +*/ + +ZEXTERN int ZEXPORT gzrewind(gzFile file); +/* + Rewind file. This function is supported only for reading. + + gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET). +*/ + +/* +ZEXTERN z_off_t ZEXPORT gztell(gzFile file); + + Return the starting position for the next gzread or gzwrite on file. + This position represents a number of bytes in the uncompressed data stream, + and is zero when starting, even if appending or reading a gzip stream from + the middle of a file using gzdopen(). + + gztell(file) is equivalent to gzseek(file, 0L, SEEK_CUR) +*/ + +/* +ZEXTERN z_off_t ZEXPORT gzoffset(gzFile file); + + Return the current compressed (actual) read or write offset of file. This + offset includes the count of bytes that precede the gzip stream, for example + when appending or when using gzdopen() for reading. When reading, the + offset does not include as yet unused buffered input. This information can + be used for a progress indicator. On error, gzoffset() returns -1. +*/ + +ZEXTERN int ZEXPORT gzeof(gzFile file); +/* + Return true (1) if the end-of-file indicator for file has been set while + reading, false (0) otherwise. Note that the end-of-file indicator is set + only if the read tried to go past the end of the input, but came up short. + Therefore, just like feof(), gzeof() may return false even if there is no + more data to read, in the event that the last read request was for the exact + number of bytes remaining in the input file. This will happen if the input + file size is an exact multiple of the buffer size. + + If gzeof() returns true, then the read functions will return no more data, + unless the end-of-file indicator is reset by gzclearerr() and the input file + has grown since the previous end of file was detected. +*/ + +ZEXTERN int ZEXPORT gzdirect(gzFile file); +/* + Return true (1) if file is being copied directly while reading, or false + (0) if file is a gzip stream being decompressed. + + If the input file is empty, gzdirect() will return true, since the input + does not contain a gzip stream. + + If gzdirect() is used immediately after gzopen() or gzdopen() it will + cause buffers to be allocated to allow reading the file to determine if it + is a gzip file. Therefore if gzbuffer() is used, it should be called before + gzdirect(). + + When writing, gzdirect() returns true (1) if transparent writing was + requested ("wT" for the gzopen() mode), or false (0) otherwise. (Note: + gzdirect() is not needed when writing. Transparent writing must be + explicitly requested, so the application already knows the answer. When + linking statically, using gzdirect() will include all of the zlib code for + gzip file reading and decompression, which may not be desired.) +*/ + +ZEXTERN int ZEXPORT gzclose(gzFile file); +/* + Flush all pending output for file, if necessary, close file and + deallocate the (de)compression state. Note that once file is closed, you + cannot call gzerror with file, since its structures have been deallocated. + gzclose must not be called more than once on the same file, just as free + must not be called more than once on the same allocation. + + gzclose will return Z_STREAM_ERROR if file is not valid, Z_ERRNO on a + file operation error, Z_MEM_ERROR if out of memory, Z_BUF_ERROR if the + last read ended in the middle of a gzip stream, or Z_OK on success. +*/ + +ZEXTERN int ZEXPORT gzclose_r(gzFile file); +ZEXTERN int ZEXPORT gzclose_w(gzFile file); +/* + Same as gzclose(), but gzclose_r() is only for use when reading, and + gzclose_w() is only for use when writing or appending. The advantage to + using these instead of gzclose() is that they avoid linking in zlib + compression or decompression code that is not used when only reading or only + writing respectively. If gzclose() is used, then both compression and + decompression code will be included the application when linking to a static + zlib library. +*/ + +ZEXTERN const char * ZEXPORT gzerror(gzFile file, int *errnum); +/* + Return the error message for the last error which occurred on file. + errnum is set to zlib error number. If an error occurred in the file system + and not in the compression library, errnum is set to Z_ERRNO and the + application may consult errno to get the exact error code. + + The application must not modify the returned string. Future calls to + this function may invalidate the previously returned string. If file is + closed, then the string previously returned by gzerror will no longer be + available. + + gzerror() should be used to distinguish errors from end-of-file for those + functions above that do not distinguish those cases in their return values. +*/ + +ZEXTERN void ZEXPORT gzclearerr(gzFile file); +/* + Clear the error and end-of-file flags for file. This is analogous to the + clearerr() function in stdio. This is useful for continuing to read a gzip + file that is being written concurrently. +*/ + +#endif /* !Z_SOLO */ + + /* checksum functions */ + +/* + These functions are not related to compression but are exported + anyway because they might be useful in applications using the compression + library. +*/ + +ZEXTERN uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len); +/* + Update a running Adler-32 checksum with the bytes buf[0..len-1] and + return the updated checksum. An Adler-32 value is in the range of a 32-bit + unsigned integer. If buf is Z_NULL, this function returns the required + initial value for the checksum. + + An Adler-32 checksum is almost as reliable as a CRC-32 but can be computed + much faster. + + Usage example: + + uLong adler = adler32(0L, Z_NULL, 0); + + while (read_buffer(buffer, length) != EOF) { + adler = adler32(adler, buffer, length); + } + if (adler != original_adler) error(); +*/ + +ZEXTERN uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf, + z_size_t len); +/* + Same as adler32(), but with a size_t length. +*/ + +/* +ZEXTERN uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2, + z_off_t len2); + + Combine two Adler-32 checksums into one. For two sequences of bytes, seq1 + and seq2 with lengths len1 and len2, Adler-32 checksums were calculated for + each, adler1 and adler2. adler32_combine() returns the Adler-32 checksum of + seq1 and seq2 concatenated, requiring only adler1, adler2, and len2. Note + that the z_off_t type (like off_t) is a signed integer. If len2 is + negative, the result has no meaning or utility. +*/ + +ZEXTERN uLong ZEXPORT crc32(uLong crc, const Bytef *buf, uInt len); +/* + Update a running CRC-32 with the bytes buf[0..len-1] and return the + updated CRC-32. A CRC-32 value is in the range of a 32-bit unsigned integer. + If buf is Z_NULL, this function returns the required initial value for the + crc. Pre- and post-conditioning (one's complement) is performed within this + function so it shouldn't be done by the application. + + Usage example: + + uLong crc = crc32(0L, Z_NULL, 0); + + while (read_buffer(buffer, length) != EOF) { + crc = crc32(crc, buffer, length); + } + if (crc != original_crc) error(); +*/ + +ZEXTERN uLong ZEXPORT crc32_z(uLong crc, const Bytef *buf, + z_size_t len); +/* + Same as crc32(), but with a size_t length. +*/ + +/* +ZEXTERN uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2); + + Combine two CRC-32 check values into one. For two sequences of bytes, + seq1 and seq2 with lengths len1 and len2, CRC-32 check values were + calculated for each, crc1 and crc2. crc32_combine() returns the CRC-32 + check value of seq1 and seq2 concatenated, requiring only crc1, crc2, and + len2. len2 must be non-negative. +*/ + +/* +ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t len2); + + Return the operator corresponding to length len2, to be used with + crc32_combine_op(). len2 must be non-negative. +*/ + +ZEXTERN uLong ZEXPORT crc32_combine_op(uLong crc1, uLong crc2, uLong op); +/* + Give the same result as crc32_combine(), using op in place of len2. op is + is generated from len2 by crc32_combine_gen(). This will be faster than + crc32_combine() if the generated op is used more than once. +*/ + + + /* various hacks, don't look :) */ + +/* deflateInit and inflateInit are macros to allow checking the zlib version + * and the compiler's view of z_stream: + */ +ZEXTERN int ZEXPORT deflateInit_(z_streamp strm, int level, + const char *version, int stream_size); +ZEXTERN int ZEXPORT inflateInit_(z_streamp strm, + const char *version, int stream_size); +ZEXTERN int ZEXPORT deflateInit2_(z_streamp strm, int level, int method, + int windowBits, int memLevel, + int strategy, const char *version, + int stream_size); +ZEXTERN int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, + const char *version, int stream_size); +ZEXTERN int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, + unsigned char FAR *window, + const char *version, + int stream_size); +#ifdef Z_PREFIX_SET +# define z_deflateInit(strm, level) \ + deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream)) +# define z_inflateInit(strm) \ + inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream)) +# define z_deflateInit2(strm, level, method, windowBits, memLevel, strategy) \ + deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\ + (strategy), ZLIB_VERSION, (int)sizeof(z_stream)) +# define z_inflateInit2(strm, windowBits) \ + inflateInit2_((strm), (windowBits), ZLIB_VERSION, \ + (int)sizeof(z_stream)) +# define z_inflateBackInit(strm, windowBits, window) \ + inflateBackInit_((strm), (windowBits), (window), \ + ZLIB_VERSION, (int)sizeof(z_stream)) +#else +# define deflateInit(strm, level) \ + deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream)) +# define inflateInit(strm) \ + inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream)) +# define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \ + deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\ + (strategy), ZLIB_VERSION, (int)sizeof(z_stream)) +# define inflateInit2(strm, windowBits) \ + inflateInit2_((strm), (windowBits), ZLIB_VERSION, \ + (int)sizeof(z_stream)) +# define inflateBackInit(strm, windowBits, window) \ + inflateBackInit_((strm), (windowBits), (window), \ + ZLIB_VERSION, (int)sizeof(z_stream)) +#endif + +#ifndef Z_SOLO + +/* gzgetc() macro and its supporting function and exposed data structure. Note + * that the real internal state is much larger than the exposed structure. + * This abbreviated structure exposes just enough for the gzgetc() macro. The + * user should not mess with these exposed elements, since their names or + * behavior could change in the future, perhaps even capriciously. They can + * only be used by the gzgetc() macro. You have been warned. + */ +struct gzFile_s { + unsigned have; + unsigned char *next; + z_off64_t pos; +}; +ZEXTERN int ZEXPORT gzgetc_(gzFile file); /* backward compatibility */ +#ifdef Z_PREFIX_SET +# undef z_gzgetc +# define z_gzgetc(g) \ + ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : (gzgetc)(g)) +#else +# define gzgetc(g) \ + ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : (gzgetc)(g)) +#endif + +/* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or + * change the regular functions to 64 bits if _FILE_OFFSET_BITS is 64 (if + * both are true, the application gets the *64 functions, and the regular + * functions are changed to 64 bits) -- in case these are set on systems + * without large file support, _LFS64_LARGEFILE must also be true + */ +#ifdef Z_LARGE64 + ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *); + ZEXTERN z_off64_t ZEXPORT gzseek64(gzFile, z_off64_t, int); + ZEXTERN z_off64_t ZEXPORT gztell64(gzFile); + ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile); + ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off64_t); + ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off64_t); + ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off64_t); +#endif + +#if !defined(ZLIB_INTERNAL) && defined(Z_WANT64) +# ifdef Z_PREFIX_SET +# define z_gzopen z_gzopen64 +# define z_gzseek z_gzseek64 +# define z_gztell z_gztell64 +# define z_gzoffset z_gzoffset64 +# define z_adler32_combine z_adler32_combine64 +# define z_crc32_combine z_crc32_combine64 +# define z_crc32_combine_gen z_crc32_combine_gen64 +# else +# define gzopen gzopen64 +# define gzseek gzseek64 +# define gztell gztell64 +# define gzoffset gzoffset64 +# define adler32_combine adler32_combine64 +# define crc32_combine crc32_combine64 +# define crc32_combine_gen crc32_combine_gen64 +# endif +# ifndef Z_LARGE64 + ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *); + ZEXTERN z_off_t ZEXPORT gzseek64(gzFile, z_off_t, int); + ZEXTERN z_off_t ZEXPORT gztell64(gzFile); + ZEXTERN z_off_t ZEXPORT gzoffset64(gzFile); + ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off_t); + ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off_t); + ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off_t); +# endif +#else + ZEXTERN gzFile ZEXPORT gzopen(const char *, const char *); + ZEXTERN z_off_t ZEXPORT gzseek(gzFile, z_off_t, int); + ZEXTERN z_off_t ZEXPORT gztell(gzFile); + ZEXTERN z_off_t ZEXPORT gzoffset(gzFile); + ZEXTERN uLong ZEXPORT adler32_combine(uLong, uLong, z_off_t); + ZEXTERN uLong ZEXPORT crc32_combine(uLong, uLong, z_off_t); + ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t); +#endif + +#else /* Z_SOLO */ + + ZEXTERN uLong ZEXPORT adler32_combine(uLong, uLong, z_off_t); + ZEXTERN uLong ZEXPORT crc32_combine(uLong, uLong, z_off_t); + ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t); + +#endif /* !Z_SOLO */ + +/* undocumented functions */ +ZEXTERN const char * ZEXPORT zError(int); +ZEXTERN int ZEXPORT inflateSyncPoint(z_streamp); +ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table(void); +ZEXTERN int ZEXPORT inflateUndermine(z_streamp, int); +ZEXTERN int ZEXPORT inflateValidate(z_streamp, int); +ZEXTERN unsigned long ZEXPORT inflateCodesUsed(z_streamp); +ZEXTERN int ZEXPORT inflateResetKeep(z_streamp); +ZEXTERN int ZEXPORT deflateResetKeep(z_streamp); +#if defined(_WIN32) && !defined(Z_SOLO) +ZEXTERN gzFile ZEXPORT gzopen_w(const wchar_t *path, + const char *mode); +#endif +#if defined(STDC) || defined(Z_HAVE_STDARG_H) +# ifndef Z_SOLO +ZEXTERN int ZEXPORTVA gzvprintf(gzFile file, + const char *format, + va_list va); +# endif +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* ZLIB_H */