| 1 | package Google::Cloud::Binaryauthorization::V1::Service::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 'GetPolicyRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Service::GetPolicyRequest']; | ||
| 12 | |||
| 13 | coerce 'GetPolicyRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Service::GetPolicyRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedGetPolicyRequest', | ||
| 17 | as ArrayRef[GetPolicyRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedGetPolicyRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Service::GetPolicyRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringGetPolicyRequest', | ||
| 23 | as HashRef[GetPolicyRequest()]; | ||
| 24 | |||
| 25 | declare 'UpdatePolicyRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Service::UpdatePolicyRequest']; | ||
| 27 | |||
| 28 | coerce 'UpdatePolicyRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Service::UpdatePolicyRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedUpdatePolicyRequest', | ||
| 32 | as ArrayRef[UpdatePolicyRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedUpdatePolicyRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Service::UpdatePolicyRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringUpdatePolicyRequest', | ||
| 38 | as HashRef[UpdatePolicyRequest()]; | ||
| 39 | |||
| 40 | declare 'CreateAttestorRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Service::CreateAttestorRequest']; | ||
| 42 | |||
| 43 | coerce 'CreateAttestorRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Service::CreateAttestorRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedCreateAttestorRequest', | ||
| 47 | as ArrayRef[CreateAttestorRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedCreateAttestorRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Service::CreateAttestorRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringCreateAttestorRequest', | ||
| 53 | as HashRef[CreateAttestorRequest()]; | ||
| 54 | |||
| 55 | declare 'GetAttestorRequest', | ||
| 56 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Service::GetAttestorRequest']; | ||
| 57 | |||
| 58 | coerce 'GetAttestorRequest', | ||
| 59 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Service::GetAttestorRequest'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedGetAttestorRequest', | ||
| 62 | as ArrayRef[GetAttestorRequest()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedGetAttestorRequest', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Service::GetAttestorRequest'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringGetAttestorRequest', | ||
| 68 | as HashRef[GetAttestorRequest()]; | ||
| 69 | |||
| 70 | declare 'UpdateAttestorRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Service::UpdateAttestorRequest']; | ||
| 72 | |||
| 73 | coerce 'UpdateAttestorRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Service::UpdateAttestorRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedUpdateAttestorRequest', | ||
| 77 | as ArrayRef[UpdateAttestorRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedUpdateAttestorRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Service::UpdateAttestorRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringUpdateAttestorRequest', | ||
| 83 | as HashRef[UpdateAttestorRequest()]; | ||
| 84 | |||
| 85 | declare 'ListAttestorsRequest', | ||
| 86 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Service::ListAttestorsRequest']; | ||
| 87 | |||
| 88 | coerce 'ListAttestorsRequest', | ||
| 89 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Service::ListAttestorsRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedListAttestorsRequest', | ||
| 92 | as ArrayRef[ListAttestorsRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedListAttestorsRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Service::ListAttestorsRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringListAttestorsRequest', | ||
| 98 | as HashRef[ListAttestorsRequest()]; | ||
| 99 | |||
| 100 | declare 'ListAttestorsResponse', | ||
| 101 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Service::ListAttestorsResponse']; | ||
| 102 | |||
| 103 | coerce 'ListAttestorsResponse', | ||
| 104 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Service::ListAttestorsResponse'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedListAttestorsResponse', | ||
| 107 | as ArrayRef[ListAttestorsResponse()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedListAttestorsResponse', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Service::ListAttestorsResponse'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringListAttestorsResponse', | ||
| 113 | as HashRef[ListAttestorsResponse()]; | ||
| 114 | |||
| 115 | declare 'DeleteAttestorRequest', | ||
| 116 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Service::DeleteAttestorRequest']; | ||
| 117 | |||
| 118 | coerce 'DeleteAttestorRequest', | ||
| 119 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Service::DeleteAttestorRequest'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedDeleteAttestorRequest', | ||
| 122 | as ArrayRef[DeleteAttestorRequest()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedDeleteAttestorRequest', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Service::DeleteAttestorRequest'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringDeleteAttestorRequest', | ||
| 128 | as HashRef[DeleteAttestorRequest()]; | ||
| 129 | |||
| 130 | declare 'GetSystemPolicyRequest', | ||
| 131 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Service::GetSystemPolicyRequest']; | ||
| 132 | |||
| 133 | coerce 'GetSystemPolicyRequest', | ||
| 134 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Service::GetSystemPolicyRequest'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedGetSystemPolicyRequest', | ||
| 137 | as ArrayRef[GetSystemPolicyRequest()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedGetSystemPolicyRequest', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Service::GetSystemPolicyRequest'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringGetSystemPolicyRequest', | ||
| 143 | as HashRef[GetSystemPolicyRequest()]; | ||
| 144 | |||
| 145 | declare 'ValidateAttestationOccurrenceRequest', | ||
| 146 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Service::ValidateAttestationOccurrenceRequest']; | ||
| 147 | |||
| 148 | coerce 'ValidateAttestationOccurrenceRequest', | ||
| 149 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Service::ValidateAttestationOccurrenceRequest'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedValidateAttestationOccurrenceRequest', | ||
| 152 | as ArrayRef[ValidateAttestationOccurrenceRequest()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedValidateAttestationOccurrenceRequest', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Service::ValidateAttestationOccurrenceRequest'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringValidateAttestationOccurrenceRequest', | ||
| 158 | as HashRef[ValidateAttestationOccurrenceRequest()]; | ||
| 159 | |||
| 160 | declare 'ValidateAttestationOccurrenceResponse', | ||
| 161 | as InstanceOf['Google::Cloud::Binaryauthorization::V1::Service::ValidateAttestationOccurrenceResponse']; | ||
| 162 | |||
| 163 | coerce 'ValidateAttestationOccurrenceResponse', | ||
| 164 | from HashRef, via { 'Google::Cloud::Binaryauthorization::V1::Service::ValidateAttestationOccurrenceResponse'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedValidateAttestationOccurrenceResponse', | ||
| 167 | as ArrayRef[ValidateAttestationOccurrenceResponse()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedValidateAttestationOccurrenceResponse', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Binaryauthorization::V1::Service::ValidateAttestationOccurrenceResponse'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringValidateAttestationOccurrenceResponse', | ||
| 173 | as HashRef[ValidateAttestationOccurrenceResponse()]; | ||
| 174 | |||
| 175 | declare 'Result', | ||
| 176 | as (Int | Str); | ||
| 177 | |||
| 178 | 1; | ||
| 179 | |||
| 180 | __END__ |