Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified class_generator/schema/__resources-mappings.json.gz
Binary file not shown.
49 changes: 49 additions & 0 deletions ocp_resources/file_restore_operator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Generated using https://github.com/RedHatQE/openshift-python-wrapper/blob/main/class_generator/README.md


from typing import Any

from ocp_resources.resource import NamespacedResource


class FileRestoreOperator(NamespacedResource):
"""
FileRestoreOperator is the Schema for the filerestoreoperators API
"""

api_group: str = NamespacedResource.ApiGroup.FILERESTORE_KUBEVIRT_IO

def __init__(
self,
image_pull_policy: str | None = None,
tls_security_profile: dict[str, Any] | None = None,
**kwargs: Any,
Comment thread
myakove marked this conversation as resolved.
) -> None:
r"""
Args:
image_pull_policy (str): ImagePullPolicy describes a policy for if/when to pull container
images

tls_security_profile (dict[str, Any]): TLSSecurityProfile configures TLS settings for metrics server

"""
super().__init__(**kwargs)

self.image_pull_policy = image_pull_policy
self.tls_security_profile = tls_security_profile

def to_dict(self) -> None:

super().to_dict()

if not self.kind_dict and not self.yaml_file:
self.res["spec"] = {}
_spec = self.res["spec"]

if self.image_pull_policy is not None:
_spec["imagePullPolicy"] = self.image_pull_policy

if self.tls_security_profile is not None:
_spec["tlsSecurityProfile"] = self.tls_security_profile

# End of generated code
1 change: 1 addition & 0 deletions ocp_resources/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ class ApiGroup:
EVENTS_K8S_IO: str = "events.k8s.io"
EXPORT_KUBEVIRT_IO: str = "export.kubevirt.io"
FENCE_AGENTS_REMEDIATION_MEDIK8S_IO: str = "fence-agents-remediation.medik8s.io"
FILERESTORE_KUBEVIRT_IO: str = "filerestore.kubevirt.io"
Comment thread
OhadRevah marked this conversation as resolved.
FORKLIFT_KONVEYOR_IO: str = "forklift.konveyor.io"
FRRK8S_METALLB_IO = "frrk8s.metallb.io"
GATEWAY_NETWORKING_K8S_IO: str = "gateway.networking.k8s.io"
Expand Down