| 1 | package Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::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 'VolumeSnapshot', | ||
| 11 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::VolumeSnapshot']; | ||
| 12 | |||
| 13 | coerce 'VolumeSnapshot', | ||
| 14 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::VolumeSnapshot'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedVolumeSnapshot', | ||
| 17 | as ArrayRef[VolumeSnapshot()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedVolumeSnapshot', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::VolumeSnapshot'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringVolumeSnapshot', | ||
| 23 | as HashRef[VolumeSnapshot()]; | ||
| 24 | |||
| 25 | declare 'SnapshotType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'GetVolumeSnapshotRequest', | ||
| 29 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::GetVolumeSnapshotRequest']; | ||
| 30 | |||
| 31 | coerce 'GetVolumeSnapshotRequest', | ||
| 32 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::GetVolumeSnapshotRequest'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedGetVolumeSnapshotRequest', | ||
| 35 | as ArrayRef[GetVolumeSnapshotRequest()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedGetVolumeSnapshotRequest', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::GetVolumeSnapshotRequest'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringGetVolumeSnapshotRequest', | ||
| 41 | as HashRef[GetVolumeSnapshotRequest()]; | ||
| 42 | |||
| 43 | declare 'ListVolumeSnapshotsRequest', | ||
| 44 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::ListVolumeSnapshotsRequest']; | ||
| 45 | |||
| 46 | coerce 'ListVolumeSnapshotsRequest', | ||
| 47 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::ListVolumeSnapshotsRequest'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedListVolumeSnapshotsRequest', | ||
| 50 | as ArrayRef[ListVolumeSnapshotsRequest()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedListVolumeSnapshotsRequest', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::ListVolumeSnapshotsRequest'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringListVolumeSnapshotsRequest', | ||
| 56 | as HashRef[ListVolumeSnapshotsRequest()]; | ||
| 57 | |||
| 58 | declare 'ListVolumeSnapshotsResponse', | ||
| 59 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::ListVolumeSnapshotsResponse']; | ||
| 60 | |||
| 61 | coerce 'ListVolumeSnapshotsResponse', | ||
| 62 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::ListVolumeSnapshotsResponse'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedListVolumeSnapshotsResponse', | ||
| 65 | as ArrayRef[ListVolumeSnapshotsResponse()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedListVolumeSnapshotsResponse', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::ListVolumeSnapshotsResponse'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringListVolumeSnapshotsResponse', | ||
| 71 | as HashRef[ListVolumeSnapshotsResponse()]; | ||
| 72 | |||
| 73 | declare 'DeleteVolumeSnapshotRequest', | ||
| 74 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::DeleteVolumeSnapshotRequest']; | ||
| 75 | |||
| 76 | coerce 'DeleteVolumeSnapshotRequest', | ||
| 77 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::DeleteVolumeSnapshotRequest'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedDeleteVolumeSnapshotRequest', | ||
| 80 | as ArrayRef[DeleteVolumeSnapshotRequest()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedDeleteVolumeSnapshotRequest', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::DeleteVolumeSnapshotRequest'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringDeleteVolumeSnapshotRequest', | ||
| 86 | as HashRef[DeleteVolumeSnapshotRequest()]; | ||
| 87 | |||
| 88 | declare 'CreateVolumeSnapshotRequest', | ||
| 89 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::CreateVolumeSnapshotRequest']; | ||
| 90 | |||
| 91 | coerce 'CreateVolumeSnapshotRequest', | ||
| 92 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::CreateVolumeSnapshotRequest'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedCreateVolumeSnapshotRequest', | ||
| 95 | as ArrayRef[CreateVolumeSnapshotRequest()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedCreateVolumeSnapshotRequest', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::CreateVolumeSnapshotRequest'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringCreateVolumeSnapshotRequest', | ||
| 101 | as HashRef[CreateVolumeSnapshotRequest()]; | ||
| 102 | |||
| 103 | declare 'RestoreVolumeSnapshotRequest', | ||
| 104 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::RestoreVolumeSnapshotRequest']; | ||
| 105 | |||
| 106 | coerce 'RestoreVolumeSnapshotRequest', | ||
| 107 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::RestoreVolumeSnapshotRequest'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedRestoreVolumeSnapshotRequest', | ||
| 110 | as ArrayRef[RestoreVolumeSnapshotRequest()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedRestoreVolumeSnapshotRequest', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::VolumeSnapshot::RestoreVolumeSnapshotRequest'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringRestoreVolumeSnapshotRequest', | ||
| 116 | as HashRef[RestoreVolumeSnapshotRequest()]; | ||
| 117 | |||
| 118 | 1; | ||
| 119 | |||
| 120 | __END__ |