| 1 | package Google::Cloud::Networkconnectivity::V1::InternalRange::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 'InternalRange', | ||
| 11 | as InstanceOf['Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange']; | ||
| 12 | |||
| 13 | coerce 'InternalRange', | ||
| 14 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedInternalRange', | ||
| 17 | as ArrayRef[InternalRange()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedInternalRange', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringInternalRange', | ||
| 23 | as HashRef[InternalRange()]; | ||
| 24 | |||
| 25 | declare 'Usage', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'Peering', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'Overlap', | ||
| 32 | as (Int | Str); | ||
| 33 | |||
| 34 | declare 'AllocationStrategy', | ||
| 35 | as (Int | Str); | ||
| 36 | |||
| 37 | declare 'Migration', | ||
| 38 | as InstanceOf['Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::Migration']; | ||
| 39 | |||
| 40 | coerce 'Migration', | ||
| 41 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::Migration'->new($_) }; | ||
| 42 | |||
| 43 | declare 'RepeatedMigration', | ||
| 44 | as ArrayRef[Migration()]; | ||
| 45 | |||
| 46 | coerce 'RepeatedMigration', | ||
| 47 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::Migration'->new($_) } @$_ ] }; | ||
| 48 | |||
| 49 | declare 'MapStringMigration', | ||
| 50 | as HashRef[Migration()]; | ||
| 51 | |||
| 52 | declare 'AllocationOptions', | ||
| 53 | as InstanceOf['Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::AllocationOptions']; | ||
| 54 | |||
| 55 | coerce 'AllocationOptions', | ||
| 56 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::AllocationOptions'->new($_) }; | ||
| 57 | |||
| 58 | declare 'RepeatedAllocationOptions', | ||
| 59 | as ArrayRef[AllocationOptions()]; | ||
| 60 | |||
| 61 | coerce 'RepeatedAllocationOptions', | ||
| 62 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::AllocationOptions'->new($_) } @$_ ] }; | ||
| 63 | |||
| 64 | declare 'MapStringAllocationOptions', | ||
| 65 | as HashRef[AllocationOptions()]; | ||
| 66 | |||
| 67 | declare 'LabelsEntry', | ||
| 68 | as InstanceOf['Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::LabelsEntry']; | ||
| 69 | |||
| 70 | coerce 'LabelsEntry', | ||
| 71 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::LabelsEntry'->new($_) }; | ||
| 72 | |||
| 73 | declare 'RepeatedLabelsEntry', | ||
| 74 | as ArrayRef[LabelsEntry()]; | ||
| 75 | |||
| 76 | coerce 'RepeatedLabelsEntry', | ||
| 77 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::LabelsEntry'->new($_) } @$_ ] }; | ||
| 78 | |||
| 79 | declare 'MapStringLabelsEntry', | ||
| 80 | as HashRef[LabelsEntry()]; | ||
| 81 | |||
| 82 | declare 'ListInternalRangesRequest', | ||
| 83 | as InstanceOf['Google::Cloud::Networkconnectivity::V1::InternalRange::ListInternalRangesRequest']; | ||
| 84 | |||
| 85 | coerce 'ListInternalRangesRequest', | ||
| 86 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1::InternalRange::ListInternalRangesRequest'->new($_) }; | ||
| 87 | |||
| 88 | declare 'RepeatedListInternalRangesRequest', | ||
| 89 | as ArrayRef[ListInternalRangesRequest()]; | ||
| 90 | |||
| 91 | coerce 'RepeatedListInternalRangesRequest', | ||
| 92 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1::InternalRange::ListInternalRangesRequest'->new($_) } @$_ ] }; | ||
| 93 | |||
| 94 | declare 'MapStringListInternalRangesRequest', | ||
| 95 | as HashRef[ListInternalRangesRequest()]; | ||
| 96 | |||
| 97 | declare 'ListInternalRangesResponse', | ||
| 98 | as InstanceOf['Google::Cloud::Networkconnectivity::V1::InternalRange::ListInternalRangesResponse']; | ||
| 99 | |||
| 100 | coerce 'ListInternalRangesResponse', | ||
| 101 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1::InternalRange::ListInternalRangesResponse'->new($_) }; | ||
| 102 | |||
| 103 | declare 'RepeatedListInternalRangesResponse', | ||
| 104 | as ArrayRef[ListInternalRangesResponse()]; | ||
| 105 | |||
| 106 | coerce 'RepeatedListInternalRangesResponse', | ||
| 107 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1::InternalRange::ListInternalRangesResponse'->new($_) } @$_ ] }; | ||
| 108 | |||
| 109 | declare 'MapStringListInternalRangesResponse', | ||
| 110 | as HashRef[ListInternalRangesResponse()]; | ||
| 111 | |||
| 112 | declare 'GetInternalRangeRequest', | ||
| 113 | as InstanceOf['Google::Cloud::Networkconnectivity::V1::InternalRange::GetInternalRangeRequest']; | ||
| 114 | |||
| 115 | coerce 'GetInternalRangeRequest', | ||
| 116 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1::InternalRange::GetInternalRangeRequest'->new($_) }; | ||
| 117 | |||
| 118 | declare 'RepeatedGetInternalRangeRequest', | ||
| 119 | as ArrayRef[GetInternalRangeRequest()]; | ||
| 120 | |||
| 121 | coerce 'RepeatedGetInternalRangeRequest', | ||
| 122 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1::InternalRange::GetInternalRangeRequest'->new($_) } @$_ ] }; | ||
| 123 | |||
| 124 | declare 'MapStringGetInternalRangeRequest', | ||
| 125 | as HashRef[GetInternalRangeRequest()]; | ||
| 126 | |||
| 127 | declare 'CreateInternalRangeRequest', | ||
| 128 | as InstanceOf['Google::Cloud::Networkconnectivity::V1::InternalRange::CreateInternalRangeRequest']; | ||
| 129 | |||
| 130 | coerce 'CreateInternalRangeRequest', | ||
| 131 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1::InternalRange::CreateInternalRangeRequest'->new($_) }; | ||
| 132 | |||
| 133 | declare 'RepeatedCreateInternalRangeRequest', | ||
| 134 | as ArrayRef[CreateInternalRangeRequest()]; | ||
| 135 | |||
| 136 | coerce 'RepeatedCreateInternalRangeRequest', | ||
| 137 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1::InternalRange::CreateInternalRangeRequest'->new($_) } @$_ ] }; | ||
| 138 | |||
| 139 | declare 'MapStringCreateInternalRangeRequest', | ||
| 140 | as HashRef[CreateInternalRangeRequest()]; | ||
| 141 | |||
| 142 | declare 'UpdateInternalRangeRequest', | ||
| 143 | as InstanceOf['Google::Cloud::Networkconnectivity::V1::InternalRange::UpdateInternalRangeRequest']; | ||
| 144 | |||
| 145 | coerce 'UpdateInternalRangeRequest', | ||
| 146 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1::InternalRange::UpdateInternalRangeRequest'->new($_) }; | ||
| 147 | |||
| 148 | declare 'RepeatedUpdateInternalRangeRequest', | ||
| 149 | as ArrayRef[UpdateInternalRangeRequest()]; | ||
| 150 | |||
| 151 | coerce 'RepeatedUpdateInternalRangeRequest', | ||
| 152 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1::InternalRange::UpdateInternalRangeRequest'->new($_) } @$_ ] }; | ||
| 153 | |||
| 154 | declare 'MapStringUpdateInternalRangeRequest', | ||
| 155 | as HashRef[UpdateInternalRangeRequest()]; | ||
| 156 | |||
| 157 | declare 'DeleteInternalRangeRequest', | ||
| 158 | as InstanceOf['Google::Cloud::Networkconnectivity::V1::InternalRange::DeleteInternalRangeRequest']; | ||
| 159 | |||
| 160 | coerce 'DeleteInternalRangeRequest', | ||
| 161 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1::InternalRange::DeleteInternalRangeRequest'->new($_) }; | ||
| 162 | |||
| 163 | declare 'RepeatedDeleteInternalRangeRequest', | ||
| 164 | as ArrayRef[DeleteInternalRangeRequest()]; | ||
| 165 | |||
| 166 | coerce 'RepeatedDeleteInternalRangeRequest', | ||
| 167 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1::InternalRange::DeleteInternalRangeRequest'->new($_) } @$_ ] }; | ||
| 168 | |||
| 169 | declare 'MapStringDeleteInternalRangeRequest', | ||
| 170 | as HashRef[DeleteInternalRangeRequest()]; | ||
| 171 | |||
| 172 | 1; | ||
| 173 | |||
| 174 | __END__ |