| 1 | package Google::Cloud::Resourcemanager::V3::Organizations::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 'Organization', | ||
| 11 | as InstanceOf['Google::Cloud::Resourcemanager::V3::Organizations::Organization']; | ||
| 12 | |||
| 13 | coerce 'Organization', | ||
| 14 | from HashRef, via { 'Google::Cloud::Resourcemanager::V3::Organizations::Organization'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedOrganization', | ||
| 17 | as ArrayRef[Organization()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedOrganization', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Resourcemanager::V3::Organizations::Organization'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringOrganization', | ||
| 23 | as HashRef[Organization()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'GetOrganizationRequest', | ||
| 29 | as InstanceOf['Google::Cloud::Resourcemanager::V3::Organizations::GetOrganizationRequest']; | ||
| 30 | |||
| 31 | coerce 'GetOrganizationRequest', | ||
| 32 | from HashRef, via { 'Google::Cloud::Resourcemanager::V3::Organizations::GetOrganizationRequest'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedGetOrganizationRequest', | ||
| 35 | as ArrayRef[GetOrganizationRequest()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedGetOrganizationRequest', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Resourcemanager::V3::Organizations::GetOrganizationRequest'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringGetOrganizationRequest', | ||
| 41 | as HashRef[GetOrganizationRequest()]; | ||
| 42 | |||
| 43 | declare 'SearchOrganizationsRequest', | ||
| 44 | as InstanceOf['Google::Cloud::Resourcemanager::V3::Organizations::SearchOrganizationsRequest']; | ||
| 45 | |||
| 46 | coerce 'SearchOrganizationsRequest', | ||
| 47 | from HashRef, via { 'Google::Cloud::Resourcemanager::V3::Organizations::SearchOrganizationsRequest'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedSearchOrganizationsRequest', | ||
| 50 | as ArrayRef[SearchOrganizationsRequest()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedSearchOrganizationsRequest', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Resourcemanager::V3::Organizations::SearchOrganizationsRequest'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringSearchOrganizationsRequest', | ||
| 56 | as HashRef[SearchOrganizationsRequest()]; | ||
| 57 | |||
| 58 | declare 'SearchOrganizationsResponse', | ||
| 59 | as InstanceOf['Google::Cloud::Resourcemanager::V3::Organizations::SearchOrganizationsResponse']; | ||
| 60 | |||
| 61 | coerce 'SearchOrganizationsResponse', | ||
| 62 | from HashRef, via { 'Google::Cloud::Resourcemanager::V3::Organizations::SearchOrganizationsResponse'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedSearchOrganizationsResponse', | ||
| 65 | as ArrayRef[SearchOrganizationsResponse()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedSearchOrganizationsResponse', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Resourcemanager::V3::Organizations::SearchOrganizationsResponse'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringSearchOrganizationsResponse', | ||
| 71 | as HashRef[SearchOrganizationsResponse()]; | ||
| 72 | |||
| 73 | declare 'DeleteOrganizationMetadata', | ||
| 74 | as InstanceOf['Google::Cloud::Resourcemanager::V3::Organizations::DeleteOrganizationMetadata']; | ||
| 75 | |||
| 76 | coerce 'DeleteOrganizationMetadata', | ||
| 77 | from HashRef, via { 'Google::Cloud::Resourcemanager::V3::Organizations::DeleteOrganizationMetadata'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedDeleteOrganizationMetadata', | ||
| 80 | as ArrayRef[DeleteOrganizationMetadata()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedDeleteOrganizationMetadata', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Resourcemanager::V3::Organizations::DeleteOrganizationMetadata'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringDeleteOrganizationMetadata', | ||
| 86 | as HashRef[DeleteOrganizationMetadata()]; | ||
| 87 | |||
| 88 | declare 'UndeleteOrganizationMetadata', | ||
| 89 | as InstanceOf['Google::Cloud::Resourcemanager::V3::Organizations::UndeleteOrganizationMetadata']; | ||
| 90 | |||
| 91 | coerce 'UndeleteOrganizationMetadata', | ||
| 92 | from HashRef, via { 'Google::Cloud::Resourcemanager::V3::Organizations::UndeleteOrganizationMetadata'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedUndeleteOrganizationMetadata', | ||
| 95 | as ArrayRef[UndeleteOrganizationMetadata()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedUndeleteOrganizationMetadata', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Resourcemanager::V3::Organizations::UndeleteOrganizationMetadata'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringUndeleteOrganizationMetadata', | ||
| 101 | as HashRef[UndeleteOrganizationMetadata()]; | ||
| 102 | |||
| 103 | 1; | ||
| 104 | |||
| 105 | __END__ |