| 1 | package Google::Cloud::Networkservices::V1::EndpointPolicy::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 'EndpointPolicy', | ||
| 11 | as InstanceOf['Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy']; | ||
| 12 | |||
| 13 | coerce 'EndpointPolicy', | ||
| 14 | from HashRef, via { 'Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedEndpointPolicy', | ||
| 17 | as ArrayRef[EndpointPolicy()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedEndpointPolicy', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringEndpointPolicy', | ||
| 23 | as HashRef[EndpointPolicy()]; | ||
| 24 | |||
| 25 | declare 'EndpointPolicyType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'LabelsEntry', | ||
| 29 | as InstanceOf['Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy::LabelsEntry']; | ||
| 30 | |||
| 31 | coerce 'LabelsEntry', | ||
| 32 | from HashRef, via { 'Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy::LabelsEntry'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedLabelsEntry', | ||
| 35 | as ArrayRef[LabelsEntry()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedLabelsEntry', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy::LabelsEntry'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringLabelsEntry', | ||
| 41 | as HashRef[LabelsEntry()]; | ||
| 42 | |||
| 43 | declare 'ListEndpointPoliciesRequest', | ||
| 44 | as InstanceOf['Google::Cloud::Networkservices::V1::EndpointPolicy::ListEndpointPoliciesRequest']; | ||
| 45 | |||
| 46 | coerce 'ListEndpointPoliciesRequest', | ||
| 47 | from HashRef, via { 'Google::Cloud::Networkservices::V1::EndpointPolicy::ListEndpointPoliciesRequest'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedListEndpointPoliciesRequest', | ||
| 50 | as ArrayRef[ListEndpointPoliciesRequest()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedListEndpointPoliciesRequest', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkservices::V1::EndpointPolicy::ListEndpointPoliciesRequest'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringListEndpointPoliciesRequest', | ||
| 56 | as HashRef[ListEndpointPoliciesRequest()]; | ||
| 57 | |||
| 58 | declare 'ListEndpointPoliciesResponse', | ||
| 59 | as InstanceOf['Google::Cloud::Networkservices::V1::EndpointPolicy::ListEndpointPoliciesResponse']; | ||
| 60 | |||
| 61 | coerce 'ListEndpointPoliciesResponse', | ||
| 62 | from HashRef, via { 'Google::Cloud::Networkservices::V1::EndpointPolicy::ListEndpointPoliciesResponse'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedListEndpointPoliciesResponse', | ||
| 65 | as ArrayRef[ListEndpointPoliciesResponse()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedListEndpointPoliciesResponse', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkservices::V1::EndpointPolicy::ListEndpointPoliciesResponse'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringListEndpointPoliciesResponse', | ||
| 71 | as HashRef[ListEndpointPoliciesResponse()]; | ||
| 72 | |||
| 73 | declare 'GetEndpointPolicyRequest', | ||
| 74 | as InstanceOf['Google::Cloud::Networkservices::V1::EndpointPolicy::GetEndpointPolicyRequest']; | ||
| 75 | |||
| 76 | coerce 'GetEndpointPolicyRequest', | ||
| 77 | from HashRef, via { 'Google::Cloud::Networkservices::V1::EndpointPolicy::GetEndpointPolicyRequest'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedGetEndpointPolicyRequest', | ||
| 80 | as ArrayRef[GetEndpointPolicyRequest()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedGetEndpointPolicyRequest', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkservices::V1::EndpointPolicy::GetEndpointPolicyRequest'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringGetEndpointPolicyRequest', | ||
| 86 | as HashRef[GetEndpointPolicyRequest()]; | ||
| 87 | |||
| 88 | declare 'CreateEndpointPolicyRequest', | ||
| 89 | as InstanceOf['Google::Cloud::Networkservices::V1::EndpointPolicy::CreateEndpointPolicyRequest']; | ||
| 90 | |||
| 91 | coerce 'CreateEndpointPolicyRequest', | ||
| 92 | from HashRef, via { 'Google::Cloud::Networkservices::V1::EndpointPolicy::CreateEndpointPolicyRequest'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedCreateEndpointPolicyRequest', | ||
| 95 | as ArrayRef[CreateEndpointPolicyRequest()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedCreateEndpointPolicyRequest', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkservices::V1::EndpointPolicy::CreateEndpointPolicyRequest'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringCreateEndpointPolicyRequest', | ||
| 101 | as HashRef[CreateEndpointPolicyRequest()]; | ||
| 102 | |||
| 103 | declare 'UpdateEndpointPolicyRequest', | ||
| 104 | as InstanceOf['Google::Cloud::Networkservices::V1::EndpointPolicy::UpdateEndpointPolicyRequest']; | ||
| 105 | |||
| 106 | coerce 'UpdateEndpointPolicyRequest', | ||
| 107 | from HashRef, via { 'Google::Cloud::Networkservices::V1::EndpointPolicy::UpdateEndpointPolicyRequest'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedUpdateEndpointPolicyRequest', | ||
| 110 | as ArrayRef[UpdateEndpointPolicyRequest()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedUpdateEndpointPolicyRequest', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkservices::V1::EndpointPolicy::UpdateEndpointPolicyRequest'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringUpdateEndpointPolicyRequest', | ||
| 116 | as HashRef[UpdateEndpointPolicyRequest()]; | ||
| 117 | |||
| 118 | declare 'DeleteEndpointPolicyRequest', | ||
| 119 | as InstanceOf['Google::Cloud::Networkservices::V1::EndpointPolicy::DeleteEndpointPolicyRequest']; | ||
| 120 | |||
| 121 | coerce 'DeleteEndpointPolicyRequest', | ||
| 122 | from HashRef, via { 'Google::Cloud::Networkservices::V1::EndpointPolicy::DeleteEndpointPolicyRequest'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedDeleteEndpointPolicyRequest', | ||
| 125 | as ArrayRef[DeleteEndpointPolicyRequest()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedDeleteEndpointPolicyRequest', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkservices::V1::EndpointPolicy::DeleteEndpointPolicyRequest'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringDeleteEndpointPolicyRequest', | ||
| 131 | as HashRef[DeleteEndpointPolicyRequest()]; | ||
| 132 | |||
| 133 | 1; | ||
| 134 | |||
| 135 | __END__ |