| 1 | package Google::Cloud::Securitycenter::V2::Kubernetes::Types; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Type::Library -base; | ||
| 7 | use Type::Utils -all; | ||
| 8 | use Types::Standard -types; | ||
| 9 | |||
| 10 | declare 'Kubernetes', | ||
| 11 | as InstanceOf['Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes']; | ||
| 12 | |||
| 13 | coerce 'Kubernetes', | ||
| 14 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedKubernetes', | ||
| 17 | as ArrayRef[Kubernetes()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedKubernetes', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringKubernetes', | ||
| 23 | as HashRef[Kubernetes()]; | ||
| 24 | |||
| 25 | declare 'Pod', | ||
| 26 | as InstanceOf['Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Pod']; | ||
| 27 | |||
| 28 | coerce 'Pod', | ||
| 29 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Pod'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedPod', | ||
| 32 | as ArrayRef[Pod()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedPod', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Pod'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringPod', | ||
| 38 | as HashRef[Pod()]; | ||
| 39 | |||
| 40 | declare 'Node', | ||
| 41 | as InstanceOf['Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Node']; | ||
| 42 | |||
| 43 | coerce 'Node', | ||
| 44 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Node'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedNode', | ||
| 47 | as ArrayRef[Node()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedNode', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Node'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringNode', | ||
| 53 | as HashRef[Node()]; | ||
| 54 | |||
| 55 | declare 'NodePool', | ||
| 56 | as InstanceOf['Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::NodePool']; | ||
| 57 | |||
| 58 | coerce 'NodePool', | ||
| 59 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::NodePool'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedNodePool', | ||
| 62 | as ArrayRef[NodePool()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedNodePool', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::NodePool'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringNodePool', | ||
| 68 | as HashRef[NodePool()]; | ||
| 69 | |||
| 70 | declare 'Role', | ||
| 71 | as InstanceOf['Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Role']; | ||
| 72 | |||
| 73 | coerce 'Role', | ||
| 74 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Role'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedRole', | ||
| 77 | as ArrayRef[Role()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedRole', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Role'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringRole', | ||
| 83 | as HashRef[Role()]; | ||
| 84 | |||
| 85 | declare 'Kind', | ||
| 86 | as (Int | Str); | ||
| 87 | |||
| 88 | declare 'Binding', | ||
| 89 | as InstanceOf['Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Binding']; | ||
| 90 | |||
| 91 | coerce 'Binding', | ||
| 92 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Binding'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedBinding', | ||
| 95 | as ArrayRef[Binding()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedBinding', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Binding'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringBinding', | ||
| 101 | as HashRef[Binding()]; | ||
| 102 | |||
| 103 | declare 'Subject', | ||
| 104 | as InstanceOf['Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Subject']; | ||
| 105 | |||
| 106 | coerce 'Subject', | ||
| 107 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Subject'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedSubject', | ||
| 110 | as ArrayRef[Subject()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedSubject', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Subject'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringSubject', | ||
| 116 | as HashRef[Subject()]; | ||
| 117 | |||
| 118 | declare 'AuthType', | ||
| 119 | as (Int | Str); | ||
| 120 | |||
| 121 | declare 'AccessReview', | ||
| 122 | as InstanceOf['Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::AccessReview']; | ||
| 123 | |||
| 124 | coerce 'AccessReview', | ||
| 125 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::AccessReview'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedAccessReview', | ||
| 128 | as ArrayRef[AccessReview()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedAccessReview', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::AccessReview'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringAccessReview', | ||
| 134 | as HashRef[AccessReview()]; | ||
| 135 | |||
| 136 | declare 'Object', | ||
| 137 | as InstanceOf['Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Object']; | ||
| 138 | |||
| 139 | coerce 'Object', | ||
| 140 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Object'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedObject', | ||
| 143 | as ArrayRef[Object()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedObject', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Kubernetes::Kubernetes::Object'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringObject', | ||
| 149 | as HashRef[Object()]; | ||
| 150 | |||
| 151 | 1; | ||
| 152 | |||
| 153 | __END__ |