| 1 | package Google::Cloud::Orgpolicy::V2::Orgpolicy::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::Orgpolicy::V2::Orgpolicy::Policy']; | ||
| 12 | |||
| 13 | coerce 'Policy', | ||
| 14 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::Policy'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedPolicy', | ||
| 17 | as ArrayRef[Policy()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedPolicy', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::Policy'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringPolicy', | ||
| 23 | as HashRef[Policy()]; | ||
| 24 | |||
| 25 | declare 'AlternatePolicySpec', | ||
| 26 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::AlternatePolicySpec']; | ||
| 27 | |||
| 28 | coerce 'AlternatePolicySpec', | ||
| 29 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::AlternatePolicySpec'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedAlternatePolicySpec', | ||
| 32 | as ArrayRef[AlternatePolicySpec()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedAlternatePolicySpec', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::AlternatePolicySpec'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringAlternatePolicySpec', | ||
| 38 | as HashRef[AlternatePolicySpec()]; | ||
| 39 | |||
| 40 | declare 'PolicySpec', | ||
| 41 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::PolicySpec']; | ||
| 42 | |||
| 43 | coerce 'PolicySpec', | ||
| 44 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::PolicySpec'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedPolicySpec', | ||
| 47 | as ArrayRef[PolicySpec()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedPolicySpec', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::PolicySpec'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringPolicySpec', | ||
| 53 | as HashRef[PolicySpec()]; | ||
| 54 | |||
| 55 | declare 'PolicyRule', | ||
| 56 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::PolicySpec::PolicyRule']; | ||
| 57 | |||
| 58 | coerce 'PolicyRule', | ||
| 59 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::PolicySpec::PolicyRule'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedPolicyRule', | ||
| 62 | as ArrayRef[PolicyRule()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedPolicyRule', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::PolicySpec::PolicyRule'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringPolicyRule', | ||
| 68 | as HashRef[PolicyRule()]; | ||
| 69 | |||
| 70 | declare 'StringValues', | ||
| 71 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::PolicySpec::PolicyRule::StringValues']; | ||
| 72 | |||
| 73 | coerce 'StringValues', | ||
| 74 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::PolicySpec::PolicyRule::StringValues'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedStringValues', | ||
| 77 | as ArrayRef[StringValues()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedStringValues', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::PolicySpec::PolicyRule::StringValues'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringStringValues', | ||
| 83 | as HashRef[StringValues()]; | ||
| 84 | |||
| 85 | declare 'ListConstraintsRequest', | ||
| 86 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::ListConstraintsRequest']; | ||
| 87 | |||
| 88 | coerce 'ListConstraintsRequest', | ||
| 89 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListConstraintsRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedListConstraintsRequest', | ||
| 92 | as ArrayRef[ListConstraintsRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedListConstraintsRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListConstraintsRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringListConstraintsRequest', | ||
| 98 | as HashRef[ListConstraintsRequest()]; | ||
| 99 | |||
| 100 | declare 'ListConstraintsResponse', | ||
| 101 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::ListConstraintsResponse']; | ||
| 102 | |||
| 103 | coerce 'ListConstraintsResponse', | ||
| 104 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListConstraintsResponse'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedListConstraintsResponse', | ||
| 107 | as ArrayRef[ListConstraintsResponse()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedListConstraintsResponse', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListConstraintsResponse'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringListConstraintsResponse', | ||
| 113 | as HashRef[ListConstraintsResponse()]; | ||
| 114 | |||
| 115 | declare 'ListPoliciesRequest', | ||
| 116 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::ListPoliciesRequest']; | ||
| 117 | |||
| 118 | coerce 'ListPoliciesRequest', | ||
| 119 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListPoliciesRequest'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedListPoliciesRequest', | ||
| 122 | as ArrayRef[ListPoliciesRequest()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedListPoliciesRequest', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListPoliciesRequest'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringListPoliciesRequest', | ||
| 128 | as HashRef[ListPoliciesRequest()]; | ||
| 129 | |||
| 130 | declare 'ListPoliciesResponse', | ||
| 131 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::ListPoliciesResponse']; | ||
| 132 | |||
| 133 | coerce 'ListPoliciesResponse', | ||
| 134 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListPoliciesResponse'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedListPoliciesResponse', | ||
| 137 | as ArrayRef[ListPoliciesResponse()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedListPoliciesResponse', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListPoliciesResponse'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringListPoliciesResponse', | ||
| 143 | as HashRef[ListPoliciesResponse()]; | ||
| 144 | |||
| 145 | declare 'GetPolicyRequest', | ||
| 146 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::GetPolicyRequest']; | ||
| 147 | |||
| 148 | coerce 'GetPolicyRequest', | ||
| 149 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::GetPolicyRequest'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedGetPolicyRequest', | ||
| 152 | as ArrayRef[GetPolicyRequest()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedGetPolicyRequest', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::GetPolicyRequest'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringGetPolicyRequest', | ||
| 158 | as HashRef[GetPolicyRequest()]; | ||
| 159 | |||
| 160 | declare 'GetEffectivePolicyRequest', | ||
| 161 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::GetEffectivePolicyRequest']; | ||
| 162 | |||
| 163 | coerce 'GetEffectivePolicyRequest', | ||
| 164 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::GetEffectivePolicyRequest'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedGetEffectivePolicyRequest', | ||
| 167 | as ArrayRef[GetEffectivePolicyRequest()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedGetEffectivePolicyRequest', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::GetEffectivePolicyRequest'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringGetEffectivePolicyRequest', | ||
| 173 | as HashRef[GetEffectivePolicyRequest()]; | ||
| 174 | |||
| 175 | declare 'CreatePolicyRequest', | ||
| 176 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::CreatePolicyRequest']; | ||
| 177 | |||
| 178 | coerce 'CreatePolicyRequest', | ||
| 179 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::CreatePolicyRequest'->new($_) }; | ||
| 180 | |||
| 181 | declare 'RepeatedCreatePolicyRequest', | ||
| 182 | as ArrayRef[CreatePolicyRequest()]; | ||
| 183 | |||
| 184 | coerce 'RepeatedCreatePolicyRequest', | ||
| 185 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::CreatePolicyRequest'->new($_) } @$_ ] }; | ||
| 186 | |||
| 187 | declare 'MapStringCreatePolicyRequest', | ||
| 188 | as HashRef[CreatePolicyRequest()]; | ||
| 189 | |||
| 190 | declare 'UpdatePolicyRequest', | ||
| 191 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::UpdatePolicyRequest']; | ||
| 192 | |||
| 193 | coerce 'UpdatePolicyRequest', | ||
| 194 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::UpdatePolicyRequest'->new($_) }; | ||
| 195 | |||
| 196 | declare 'RepeatedUpdatePolicyRequest', | ||
| 197 | as ArrayRef[UpdatePolicyRequest()]; | ||
| 198 | |||
| 199 | coerce 'RepeatedUpdatePolicyRequest', | ||
| 200 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::UpdatePolicyRequest'->new($_) } @$_ ] }; | ||
| 201 | |||
| 202 | declare 'MapStringUpdatePolicyRequest', | ||
| 203 | as HashRef[UpdatePolicyRequest()]; | ||
| 204 | |||
| 205 | declare 'DeletePolicyRequest', | ||
| 206 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::DeletePolicyRequest']; | ||
| 207 | |||
| 208 | coerce 'DeletePolicyRequest', | ||
| 209 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::DeletePolicyRequest'->new($_) }; | ||
| 210 | |||
| 211 | declare 'RepeatedDeletePolicyRequest', | ||
| 212 | as ArrayRef[DeletePolicyRequest()]; | ||
| 213 | |||
| 214 | coerce 'RepeatedDeletePolicyRequest', | ||
| 215 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::DeletePolicyRequest'->new($_) } @$_ ] }; | ||
| 216 | |||
| 217 | declare 'MapStringDeletePolicyRequest', | ||
| 218 | as HashRef[DeletePolicyRequest()]; | ||
| 219 | |||
| 220 | declare 'CreateCustomConstraintRequest', | ||
| 221 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::CreateCustomConstraintRequest']; | ||
| 222 | |||
| 223 | coerce 'CreateCustomConstraintRequest', | ||
| 224 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::CreateCustomConstraintRequest'->new($_) }; | ||
| 225 | |||
| 226 | declare 'RepeatedCreateCustomConstraintRequest', | ||
| 227 | as ArrayRef[CreateCustomConstraintRequest()]; | ||
| 228 | |||
| 229 | coerce 'RepeatedCreateCustomConstraintRequest', | ||
| 230 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::CreateCustomConstraintRequest'->new($_) } @$_ ] }; | ||
| 231 | |||
| 232 | declare 'MapStringCreateCustomConstraintRequest', | ||
| 233 | as HashRef[CreateCustomConstraintRequest()]; | ||
| 234 | |||
| 235 | declare 'GetCustomConstraintRequest', | ||
| 236 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::GetCustomConstraintRequest']; | ||
| 237 | |||
| 238 | coerce 'GetCustomConstraintRequest', | ||
| 239 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::GetCustomConstraintRequest'->new($_) }; | ||
| 240 | |||
| 241 | declare 'RepeatedGetCustomConstraintRequest', | ||
| 242 | as ArrayRef[GetCustomConstraintRequest()]; | ||
| 243 | |||
| 244 | coerce 'RepeatedGetCustomConstraintRequest', | ||
| 245 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::GetCustomConstraintRequest'->new($_) } @$_ ] }; | ||
| 246 | |||
| 247 | declare 'MapStringGetCustomConstraintRequest', | ||
| 248 | as HashRef[GetCustomConstraintRequest()]; | ||
| 249 | |||
| 250 | declare 'ListCustomConstraintsRequest', | ||
| 251 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::ListCustomConstraintsRequest']; | ||
| 252 | |||
| 253 | coerce 'ListCustomConstraintsRequest', | ||
| 254 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListCustomConstraintsRequest'->new($_) }; | ||
| 255 | |||
| 256 | declare 'RepeatedListCustomConstraintsRequest', | ||
| 257 | as ArrayRef[ListCustomConstraintsRequest()]; | ||
| 258 | |||
| 259 | coerce 'RepeatedListCustomConstraintsRequest', | ||
| 260 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListCustomConstraintsRequest'->new($_) } @$_ ] }; | ||
| 261 | |||
| 262 | declare 'MapStringListCustomConstraintsRequest', | ||
| 263 | as HashRef[ListCustomConstraintsRequest()]; | ||
| 264 | |||
| 265 | declare 'ListCustomConstraintsResponse', | ||
| 266 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::ListCustomConstraintsResponse']; | ||
| 267 | |||
| 268 | coerce 'ListCustomConstraintsResponse', | ||
| 269 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListCustomConstraintsResponse'->new($_) }; | ||
| 270 | |||
| 271 | declare 'RepeatedListCustomConstraintsResponse', | ||
| 272 | as ArrayRef[ListCustomConstraintsResponse()]; | ||
| 273 | |||
| 274 | coerce 'RepeatedListCustomConstraintsResponse', | ||
| 275 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::ListCustomConstraintsResponse'->new($_) } @$_ ] }; | ||
| 276 | |||
| 277 | declare 'MapStringListCustomConstraintsResponse', | ||
| 278 | as HashRef[ListCustomConstraintsResponse()]; | ||
| 279 | |||
| 280 | declare 'UpdateCustomConstraintRequest', | ||
| 281 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::UpdateCustomConstraintRequest']; | ||
| 282 | |||
| 283 | coerce 'UpdateCustomConstraintRequest', | ||
| 284 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::UpdateCustomConstraintRequest'->new($_) }; | ||
| 285 | |||
| 286 | declare 'RepeatedUpdateCustomConstraintRequest', | ||
| 287 | as ArrayRef[UpdateCustomConstraintRequest()]; | ||
| 288 | |||
| 289 | coerce 'RepeatedUpdateCustomConstraintRequest', | ||
| 290 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::UpdateCustomConstraintRequest'->new($_) } @$_ ] }; | ||
| 291 | |||
| 292 | declare 'MapStringUpdateCustomConstraintRequest', | ||
| 293 | as HashRef[UpdateCustomConstraintRequest()]; | ||
| 294 | |||
| 295 | declare 'DeleteCustomConstraintRequest', | ||
| 296 | as InstanceOf['Google::Cloud::Orgpolicy::V2::Orgpolicy::DeleteCustomConstraintRequest']; | ||
| 297 | |||
| 298 | coerce 'DeleteCustomConstraintRequest', | ||
| 299 | from HashRef, via { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::DeleteCustomConstraintRequest'->new($_) }; | ||
| 300 | |||
| 301 | declare 'RepeatedDeleteCustomConstraintRequest', | ||
| 302 | as ArrayRef[DeleteCustomConstraintRequest()]; | ||
| 303 | |||
| 304 | coerce 'RepeatedDeleteCustomConstraintRequest', | ||
| 305 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Orgpolicy::V2::Orgpolicy::DeleteCustomConstraintRequest'->new($_) } @$_ ] }; | ||
| 306 | |||
| 307 | declare 'MapStringDeleteCustomConstraintRequest', | ||
| 308 | as HashRef[DeleteCustomConstraintRequest()]; | ||
| 309 | |||
| 310 | 1; | ||
| 311 | |||
| 312 | __END__ |