Class: CDK8sPlus25::K8S::KubeFlowSchemaListV1Beta2Props
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- CDK8sPlus25::K8S::KubeFlowSchemaListV1Beta2Props
- Defined in:
- k8_s/kube_flow_schema_list_v1_beta2_props.rb
Overview
FlowSchemaList is a list of FlowSchema objects.
Instance Attribute Summary collapse
-
#items ⇒ Array<CDK8sPlus25::K8S::KubeFlowSchemaV1Beta2Props>
readonly
itemsis a list of FlowSchemas. -
#metadata ⇒ CDK8sPlus25::K8S::ListMeta?
readonly
metadatais the standard list metadata.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(items:, metadata: nil) ⇒ KubeFlowSchemaListV1Beta2Props
constructor
A new instance of KubeFlowSchemaListV1Beta2Props.
- #to_jsii ⇒ Object
Constructor Details
#initialize(items:, metadata: nil) ⇒ KubeFlowSchemaListV1Beta2Props
Returns a new instance of KubeFlowSchemaListV1Beta2Props.
9 10 11 12 13 14 |
# File 'k8_s/kube_flow_schema_list_v1_beta2_props.rb', line 9 def initialize(items:, metadata: nil) @items = items.is_a?(Array) ? items.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::CDK8sPlus25::K8S::KubeFlowSchemaV1Beta2Props.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : items Jsii::Type.check_type(@items, "eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImNkazhzLXBsdXMtMjUuazhzLkt1YmVGbG93U2NoZW1hVjFCZXRhMlByb3BzIn0sImtpbmQiOiJhcnJheSJ9fQ==", "items") @metadata = .is_a?(Hash) ? ::CDK8sPlus25::K8S::ListMeta.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@metadata, "eyJmcW4iOiJjZGs4cy1wbHVzLTI1Lms4cy5MaXN0TWV0YSJ9", "metadata") unless @metadata.nil? end |
Instance Attribute Details
#items ⇒ Array<CDK8sPlus25::K8S::KubeFlowSchemaV1Beta2Props> (readonly)
items is a list of FlowSchemas.
19 20 21 |
# File 'k8_s/kube_flow_schema_list_v1_beta2_props.rb', line 19 def items @items end |
#metadata ⇒ CDK8sPlus25::K8S::ListMeta? (readonly)
metadata is the standard list metadata.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
25 26 27 |
# File 'k8_s/kube_flow_schema_list_v1_beta2_props.rb', line 25 def @metadata end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'k8_s/kube_flow_schema_list_v1_beta2_props.rb', line 27 def self.jsii_properties { :items => "items", :metadata => "metadata", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'k8_s/kube_flow_schema_list_v1_beta2_props.rb', line 34 def to_jsii result = {} result.merge!({ "items" => @items, "metadata" => @metadata, }) result.compact end |