Class: CDK8sPlus25::K8S::KubeFlowSchemaListV1Beta2Props

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
k8_s/kube_flow_schema_list_v1_beta2_props.rb

Overview

FlowSchemaList is a list of FlowSchema objects.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items:, metadata: nil) ⇒ KubeFlowSchemaListV1Beta2Props

Returns a new instance of KubeFlowSchemaListV1Beta2Props.

Parameters:



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

#itemsArray<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

#metadataCDK8sPlus25::K8S::ListMeta? (readonly)

Returns:



25
26
27
# File 'k8_s/kube_flow_schema_list_v1_beta2_props.rb', line 25

def 
  @metadata
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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