| 1 | package Google::Cloud::Baremetalsolution::V2::Volume::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 'Volume', | ||
| 11 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Volume::Volume']; | ||
| 12 | |||
| 13 | coerce 'Volume', | ||
| 14 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Volume::Volume'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedVolume', | ||
| 17 | as ArrayRef[Volume()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedVolume', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Volume::Volume'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringVolume', | ||
| 23 | as HashRef[Volume()]; | ||
| 24 | |||
| 25 | declare 'StorageType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'State', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'SnapshotAutoDeleteBehavior', | ||
| 32 | as (Int | Str); | ||
| 33 | |||
| 34 | declare 'Protocol', | ||
| 35 | as (Int | Str); | ||
| 36 | |||
| 37 | declare 'WorkloadProfile', | ||
| 38 | as (Int | Str); | ||
| 39 | |||
| 40 | declare 'SnapshotReservationDetail', | ||
| 41 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Volume::Volume::SnapshotReservationDetail']; | ||
| 42 | |||
| 43 | coerce 'SnapshotReservationDetail', | ||
| 44 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Volume::Volume::SnapshotReservationDetail'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedSnapshotReservationDetail', | ||
| 47 | as ArrayRef[SnapshotReservationDetail()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedSnapshotReservationDetail', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Volume::Volume::SnapshotReservationDetail'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringSnapshotReservationDetail', | ||
| 53 | as HashRef[SnapshotReservationDetail()]; | ||
| 54 | |||
| 55 | declare 'LabelsEntry', | ||
| 56 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Volume::Volume::LabelsEntry']; | ||
| 57 | |||
| 58 | coerce 'LabelsEntry', | ||
| 59 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Volume::Volume::LabelsEntry'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedLabelsEntry', | ||
| 62 | as ArrayRef[LabelsEntry()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedLabelsEntry', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Volume::Volume::LabelsEntry'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringLabelsEntry', | ||
| 68 | as HashRef[LabelsEntry()]; | ||
| 69 | |||
| 70 | declare 'GetVolumeRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Volume::GetVolumeRequest']; | ||
| 72 | |||
| 73 | coerce 'GetVolumeRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Volume::GetVolumeRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedGetVolumeRequest', | ||
| 77 | as ArrayRef[GetVolumeRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedGetVolumeRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Volume::GetVolumeRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringGetVolumeRequest', | ||
| 83 | as HashRef[GetVolumeRequest()]; | ||
| 84 | |||
| 85 | declare 'ListVolumesRequest', | ||
| 86 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Volume::ListVolumesRequest']; | ||
| 87 | |||
| 88 | coerce 'ListVolumesRequest', | ||
| 89 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Volume::ListVolumesRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedListVolumesRequest', | ||
| 92 | as ArrayRef[ListVolumesRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedListVolumesRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Volume::ListVolumesRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringListVolumesRequest', | ||
| 98 | as HashRef[ListVolumesRequest()]; | ||
| 99 | |||
| 100 | declare 'ListVolumesResponse', | ||
| 101 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Volume::ListVolumesResponse']; | ||
| 102 | |||
| 103 | coerce 'ListVolumesResponse', | ||
| 104 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Volume::ListVolumesResponse'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedListVolumesResponse', | ||
| 107 | as ArrayRef[ListVolumesResponse()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedListVolumesResponse', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Volume::ListVolumesResponse'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringListVolumesResponse', | ||
| 113 | as HashRef[ListVolumesResponse()]; | ||
| 114 | |||
| 115 | declare 'UpdateVolumeRequest', | ||
| 116 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Volume::UpdateVolumeRequest']; | ||
| 117 | |||
| 118 | coerce 'UpdateVolumeRequest', | ||
| 119 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Volume::UpdateVolumeRequest'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedUpdateVolumeRequest', | ||
| 122 | as ArrayRef[UpdateVolumeRequest()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedUpdateVolumeRequest', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Volume::UpdateVolumeRequest'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringUpdateVolumeRequest', | ||
| 128 | as HashRef[UpdateVolumeRequest()]; | ||
| 129 | |||
| 130 | declare 'RenameVolumeRequest', | ||
| 131 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Volume::RenameVolumeRequest']; | ||
| 132 | |||
| 133 | coerce 'RenameVolumeRequest', | ||
| 134 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Volume::RenameVolumeRequest'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedRenameVolumeRequest', | ||
| 137 | as ArrayRef[RenameVolumeRequest()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedRenameVolumeRequest', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Volume::RenameVolumeRequest'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringRenameVolumeRequest', | ||
| 143 | as HashRef[RenameVolumeRequest()]; | ||
| 144 | |||
| 145 | declare 'EvictVolumeRequest', | ||
| 146 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Volume::EvictVolumeRequest']; | ||
| 147 | |||
| 148 | coerce 'EvictVolumeRequest', | ||
| 149 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Volume::EvictVolumeRequest'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedEvictVolumeRequest', | ||
| 152 | as ArrayRef[EvictVolumeRequest()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedEvictVolumeRequest', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Volume::EvictVolumeRequest'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringEvictVolumeRequest', | ||
| 158 | as HashRef[EvictVolumeRequest()]; | ||
| 159 | |||
| 160 | declare 'ResizeVolumeRequest', | ||
| 161 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::Volume::ResizeVolumeRequest']; | ||
| 162 | |||
| 163 | coerce 'ResizeVolumeRequest', | ||
| 164 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::Volume::ResizeVolumeRequest'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedResizeVolumeRequest', | ||
| 167 | as ArrayRef[ResizeVolumeRequest()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedResizeVolumeRequest', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::Volume::ResizeVolumeRequest'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringResizeVolumeRequest', | ||
| 173 | as HashRef[ResizeVolumeRequest()]; | ||
| 174 | |||
| 175 | 1; | ||
| 176 | |||
| 177 | __END__ |