| 1 | package Google::Iam::V2beta::Policy::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::Iam::V2beta::Policy::Policy']; | ||
| 12 | |||
| 13 | coerce 'Policy', | ||
| 14 | from HashRef, via { 'Google::Iam::V2beta::Policy::Policy'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedPolicy', | ||
| 17 | as ArrayRef[Policy()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedPolicy', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Iam::V2beta::Policy::Policy'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringPolicy', | ||
| 23 | as HashRef[Policy()]; | ||
| 24 | |||
| 25 | declare 'AnnotationsEntry', | ||
| 26 | as InstanceOf['Google::Iam::V2beta::Policy::Policy::AnnotationsEntry']; | ||
| 27 | |||
| 28 | coerce 'AnnotationsEntry', | ||
| 29 | from HashRef, via { 'Google::Iam::V2beta::Policy::Policy::AnnotationsEntry'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedAnnotationsEntry', | ||
| 32 | as ArrayRef[AnnotationsEntry()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedAnnotationsEntry', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Iam::V2beta::Policy::Policy::AnnotationsEntry'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringAnnotationsEntry', | ||
| 38 | as HashRef[AnnotationsEntry()]; | ||
| 39 | |||
| 40 | declare 'PolicyRule', | ||
| 41 | as InstanceOf['Google::Iam::V2beta::Policy::PolicyRule']; | ||
| 42 | |||
| 43 | coerce 'PolicyRule', | ||
| 44 | from HashRef, via { 'Google::Iam::V2beta::Policy::PolicyRule'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedPolicyRule', | ||
| 47 | as ArrayRef[PolicyRule()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedPolicyRule', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Iam::V2beta::Policy::PolicyRule'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringPolicyRule', | ||
| 53 | as HashRef[PolicyRule()]; | ||
| 54 | |||
| 55 | declare 'ListPoliciesRequest', | ||
| 56 | as InstanceOf['Google::Iam::V2beta::Policy::ListPoliciesRequest']; | ||
| 57 | |||
| 58 | coerce 'ListPoliciesRequest', | ||
| 59 | from HashRef, via { 'Google::Iam::V2beta::Policy::ListPoliciesRequest'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedListPoliciesRequest', | ||
| 62 | as ArrayRef[ListPoliciesRequest()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedListPoliciesRequest', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Iam::V2beta::Policy::ListPoliciesRequest'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringListPoliciesRequest', | ||
| 68 | as HashRef[ListPoliciesRequest()]; | ||
| 69 | |||
| 70 | declare 'ListPoliciesResponse', | ||
| 71 | as InstanceOf['Google::Iam::V2beta::Policy::ListPoliciesResponse']; | ||
| 72 | |||
| 73 | coerce 'ListPoliciesResponse', | ||
| 74 | from HashRef, via { 'Google::Iam::V2beta::Policy::ListPoliciesResponse'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedListPoliciesResponse', | ||
| 77 | as ArrayRef[ListPoliciesResponse()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedListPoliciesResponse', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Iam::V2beta::Policy::ListPoliciesResponse'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringListPoliciesResponse', | ||
| 83 | as HashRef[ListPoliciesResponse()]; | ||
| 84 | |||
| 85 | declare 'GetPolicyRequest', | ||
| 86 | as InstanceOf['Google::Iam::V2beta::Policy::GetPolicyRequest']; | ||
| 87 | |||
| 88 | coerce 'GetPolicyRequest', | ||
| 89 | from HashRef, via { 'Google::Iam::V2beta::Policy::GetPolicyRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedGetPolicyRequest', | ||
| 92 | as ArrayRef[GetPolicyRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedGetPolicyRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Iam::V2beta::Policy::GetPolicyRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringGetPolicyRequest', | ||
| 98 | as HashRef[GetPolicyRequest()]; | ||
| 99 | |||
| 100 | declare 'CreatePolicyRequest', | ||
| 101 | as InstanceOf['Google::Iam::V2beta::Policy::CreatePolicyRequest']; | ||
| 102 | |||
| 103 | coerce 'CreatePolicyRequest', | ||
| 104 | from HashRef, via { 'Google::Iam::V2beta::Policy::CreatePolicyRequest'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedCreatePolicyRequest', | ||
| 107 | as ArrayRef[CreatePolicyRequest()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedCreatePolicyRequest', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Iam::V2beta::Policy::CreatePolicyRequest'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringCreatePolicyRequest', | ||
| 113 | as HashRef[CreatePolicyRequest()]; | ||
| 114 | |||
| 115 | declare 'UpdatePolicyRequest', | ||
| 116 | as InstanceOf['Google::Iam::V2beta::Policy::UpdatePolicyRequest']; | ||
| 117 | |||
| 118 | coerce 'UpdatePolicyRequest', | ||
| 119 | from HashRef, via { 'Google::Iam::V2beta::Policy::UpdatePolicyRequest'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedUpdatePolicyRequest', | ||
| 122 | as ArrayRef[UpdatePolicyRequest()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedUpdatePolicyRequest', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Iam::V2beta::Policy::UpdatePolicyRequest'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringUpdatePolicyRequest', | ||
| 128 | as HashRef[UpdatePolicyRequest()]; | ||
| 129 | |||
| 130 | declare 'DeletePolicyRequest', | ||
| 131 | as InstanceOf['Google::Iam::V2beta::Policy::DeletePolicyRequest']; | ||
| 132 | |||
| 133 | coerce 'DeletePolicyRequest', | ||
| 134 | from HashRef, via { 'Google::Iam::V2beta::Policy::DeletePolicyRequest'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedDeletePolicyRequest', | ||
| 137 | as ArrayRef[DeletePolicyRequest()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedDeletePolicyRequest', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Iam::V2beta::Policy::DeletePolicyRequest'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringDeletePolicyRequest', | ||
| 143 | as HashRef[DeletePolicyRequest()]; | ||
| 144 | |||
| 145 | declare 'PolicyOperationMetadata', | ||
| 146 | as InstanceOf['Google::Iam::V2beta::Policy::PolicyOperationMetadata']; | ||
| 147 | |||
| 148 | coerce 'PolicyOperationMetadata', | ||
| 149 | from HashRef, via { 'Google::Iam::V2beta::Policy::PolicyOperationMetadata'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedPolicyOperationMetadata', | ||
| 152 | as ArrayRef[PolicyOperationMetadata()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedPolicyOperationMetadata', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Iam::V2beta::Policy::PolicyOperationMetadata'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringPolicyOperationMetadata', | ||
| 158 | as HashRef[PolicyOperationMetadata()]; | ||
| 159 | |||
| 160 | 1; | ||
| 161 | |||
| 162 | __END__ |