| 1 | package Google::Cloud::Binaryauthorization::V1::Resources::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 'Policy', | ||
| 11 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Resources::Policy']; | ||
| 12 | |||
| 13 | coerce 'Policy', | ||
| 14 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Resources::Policy'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedPolicy', | ||
| 17 | as ArrayRef[Policy()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedPolicy', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Resources::Policy'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringPolicy', | ||
| 23 | as HashRef[Policy()]; | ||
| 24 | |||
| 25 | declare 'GlobalPolicyEvaluationMode', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'ClusterAdmissionRulesEntry', | ||
| 29 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Resources::Policy::ClusterAdmissionRulesEntry']; | ||
| 30 | |||
| 31 | coerce 'ClusterAdmissionRulesEntry', | ||
| 32 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Resources::Policy::ClusterAdmissionRulesEntry'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedClusterAdmissionRulesEntry', | ||
| 35 | as ArrayRef[ClusterAdmissionRulesEntry()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedClusterAdmissionRulesEntry', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Resources::Policy::ClusterAdmissionRulesEntry'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringClusterAdmissionRulesEntry', | ||
| 41 | as HashRef[ClusterAdmissionRulesEntry()]; | ||
| 42 | |||
| 43 | declare 'KubernetesNamespaceAdmissionRulesEntry', | ||
| 44 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Resources::Policy::KubernetesNamespaceAdmissionRulesEntry']; | ||
| 45 | |||
| 46 | coerce 'KubernetesNamespaceAdmissionRulesEntry', | ||
| 47 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Resources::Policy::KubernetesNamespaceAdmissionRulesEntry'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedKubernetesNamespaceAdmissionRulesEntry', | ||
| 50 | as ArrayRef[KubernetesNamespaceAdmissionRulesEntry()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedKubernetesNamespaceAdmissionRulesEntry', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Resources::Policy::KubernetesNamespaceAdmissionRulesEntry'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringKubernetesNamespaceAdmissionRulesEntry', | ||
| 56 | as HashRef[KubernetesNamespaceAdmissionRulesEntry()]; | ||
| 57 | |||
| 58 | declare 'KubernetesServiceAccountAdmissionRulesEntry', | ||
| 59 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Resources::Policy::KubernetesServiceAccountAdmissionRulesEntry']; | ||
| 60 | |||
| 61 | coerce 'KubernetesServiceAccountAdmissionRulesEntry', | ||
| 62 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Resources::Policy::KubernetesServiceAccountAdmissionRulesEntry'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedKubernetesServiceAccountAdmissionRulesEntry', | ||
| 65 | as ArrayRef[KubernetesServiceAccountAdmissionRulesEntry()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedKubernetesServiceAccountAdmissionRulesEntry', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Resources::Policy::KubernetesServiceAccountAdmissionRulesEntry'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringKubernetesServiceAccountAdmissionRulesEntry', | ||
| 71 | as HashRef[KubernetesServiceAccountAdmissionRulesEntry()]; | ||
| 72 | |||
| 73 | declare 'IstioServiceIdentityAdmissionRulesEntry', | ||
| 74 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Resources::Policy::IstioServiceIdentityAdmissionRulesEntry']; | ||
| 75 | |||
| 76 | coerce 'IstioServiceIdentityAdmissionRulesEntry', | ||
| 77 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Resources::Policy::IstioServiceIdentityAdmissionRulesEntry'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedIstioServiceIdentityAdmissionRulesEntry', | ||
| 80 | as ArrayRef[IstioServiceIdentityAdmissionRulesEntry()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedIstioServiceIdentityAdmissionRulesEntry', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Resources::Policy::IstioServiceIdentityAdmissionRulesEntry'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringIstioServiceIdentityAdmissionRulesEntry', | ||
| 86 | as HashRef[IstioServiceIdentityAdmissionRulesEntry()]; | ||
| 87 | |||
| 88 | declare 'AdmissionWhitelistPattern', | ||
| 89 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Resources::AdmissionWhitelistPattern']; | ||
| 90 | |||
| 91 | coerce 'AdmissionWhitelistPattern', | ||
| 92 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Resources::AdmissionWhitelistPattern'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedAdmissionWhitelistPattern', | ||
| 95 | as ArrayRef[AdmissionWhitelistPattern()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedAdmissionWhitelistPattern', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Resources::AdmissionWhitelistPattern'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringAdmissionWhitelistPattern', | ||
| 101 | as HashRef[AdmissionWhitelistPattern()]; | ||
| 102 | |||
| 103 | declare 'AdmissionRule', | ||
| 104 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Resources::AdmissionRule']; | ||
| 105 | |||
| 106 | coerce 'AdmissionRule', | ||
| 107 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Resources::AdmissionRule'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedAdmissionRule', | ||
| 110 | as ArrayRef[AdmissionRule()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedAdmissionRule', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Resources::AdmissionRule'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringAdmissionRule', | ||
| 116 | as HashRef[AdmissionRule()]; | ||
| 117 | |||
| 118 | declare 'EvaluationMode', | ||
| 119 | as (Int | Str); | ||
| 120 | |||
| 121 | declare 'EnforcementMode', | ||
| 122 | as (Int | Str); | ||
| 123 | |||
| 124 | declare 'Attestor', | ||
| 125 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Resources::Attestor']; | ||
| 126 | |||
| 127 | coerce 'Attestor', | ||
| 128 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Resources::Attestor'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedAttestor', | ||
| 131 | as ArrayRef[Attestor()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedAttestor', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Resources::Attestor'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringAttestor', | ||
| 137 | as HashRef[Attestor()]; | ||
| 138 | |||
| 139 | declare 'UserOwnedGrafeasNote', | ||
| 140 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Resources::UserOwnedGrafeasNote']; | ||
| 141 | |||
| 142 | coerce 'UserOwnedGrafeasNote', | ||
| 143 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Resources::UserOwnedGrafeasNote'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedUserOwnedGrafeasNote', | ||
| 146 | as ArrayRef[UserOwnedGrafeasNote()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedUserOwnedGrafeasNote', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Resources::UserOwnedGrafeasNote'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringUserOwnedGrafeasNote', | ||
| 152 | as HashRef[UserOwnedGrafeasNote()]; | ||
| 153 | |||
| 154 | declare 'PkixPublicKey', | ||
| 155 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Resources::PkixPublicKey']; | ||
| 156 | |||
| 157 | coerce 'PkixPublicKey', | ||
| 158 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Resources::PkixPublicKey'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedPkixPublicKey', | ||
| 161 | as ArrayRef[PkixPublicKey()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedPkixPublicKey', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Resources::PkixPublicKey'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringPkixPublicKey', | ||
| 167 | as HashRef[PkixPublicKey()]; | ||
| 168 | |||
| 169 | declare 'SignatureAlgorithm', | ||
| 170 | as (Int | Str); | ||
| 171 | |||
| 172 | declare 'AttestorPublicKey', | ||
| 173 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Resources::AttestorPublicKey']; | ||
| 174 | |||
| 175 | coerce 'AttestorPublicKey', | ||
| 176 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Resources::AttestorPublicKey'->new($_) }; | ||
| 177 | |||
| 178 | declare 'RepeatedAttestorPublicKey', | ||
| 179 | as ArrayRef[AttestorPublicKey()]; | ||
| 180 | |||
| 181 | coerce 'RepeatedAttestorPublicKey', | ||
| 182 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Resources::AttestorPublicKey'->new($_) } @$_ ] }; | ||
| 183 | |||
| 184 | declare 'MapStringAttestorPublicKey', | ||
| 185 | as HashRef[AttestorPublicKey()]; | ||
| 186 | |||
| 187 | 1; | ||
| 188 | |||
| 189 | __END__ |