Skip to content
Merged
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
1 change: 1 addition & 0 deletions ocp_resources/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ class ApiGroup:
QUOTA_OPENSHIFT_IO: str = "quota.openshift.io"
RBAC_AUTHORIZATION_K8S_IO: str = "rbac.authorization.k8s.io"
REMEDIATION_MEDIK8S_IO: str = "remediation.medik8s.io"
RHTAS_REDHAT_COM: str = "rhtas.redhat.com"
RIPSAW_CLOUDBULLDOZER_IO: str = "ripsaw.cloudbulldozer.io"
ROUTE_OPENSHIFT_IO: str = "route.openshift.io"
SAMPLES_OPERATOR_OPENSHIFT_IO: str = "samples.operator.openshift.io"
Expand Down
76 changes: 76 additions & 0 deletions ocp_resources/securesign.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Generated using https://github.com/RedHatQE/openshift-python-wrapper/blob/main/scripts/resource/README.md


from typing import Any

from ocp_resources.resource import NamespacedResource


class Securesign(NamespacedResource):
"""
Securesign is the Schema for the securesigns API
"""

api_group: str = NamespacedResource.ApiGroup.RHTAS_REDHAT_COM

def __init__(
self,
ctlog: dict[str, Any] | None = None,
fulcio: dict[str, Any] | None = None,
rekor: dict[str, Any] | None = None,
trillian: dict[str, Any] | None = None,
tsa: dict[str, Any] | None = None,
tuf: dict[str, Any] | None = None,
**kwargs: Any,
) -> None:
r"""
Args:
ctlog (dict[str, Any]): CTlogSpec defines the desired state of CTlog component

fulcio (dict[str, Any]): FulcioSpec defines the desired state of Fulcio

rekor (dict[str, Any]): RekorSpec defines the desired state of Rekor

trillian (dict[str, Any]): TrillianSpec defines the desired state of Trillian

tsa (dict[str, Any]): TimestampAuthoritySpec defines the desired state of TimestampAuthority

tuf (dict[str, Any]): TufSpec defines the desired state of Tuf

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

self.ctlog = ctlog
self.fulcio = fulcio
self.rekor = rekor
self.trillian = trillian
self.tsa = tsa
self.tuf = tuf

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.ctlog is not None:
_spec["ctlog"] = self.ctlog

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

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

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

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

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

# End of generated code