| 1 | package Google::Dataflow::V1beta3::Snapshots::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 'SnapshotState', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'PubsubSnapshotMetadata', | ||
| 14 | as InstanceOf['Google::Dataflow::V1beta3::Snapshots::PubsubSnapshotMetadata']; | ||
| 15 | |||
| 16 | coerce 'PubsubSnapshotMetadata', | ||
| 17 | from HashRef, via { 'Google::Dataflow::V1beta3::Snapshots::PubsubSnapshotMetadata'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedPubsubSnapshotMetadata', | ||
| 20 | as ArrayRef[PubsubSnapshotMetadata()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedPubsubSnapshotMetadata', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Dataflow::V1beta3::Snapshots::PubsubSnapshotMetadata'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringPubsubSnapshotMetadata', | ||
| 26 | as HashRef[PubsubSnapshotMetadata()]; | ||
| 27 | |||
| 28 | declare 'Snapshot', | ||
| 29 | as InstanceOf['Google::Dataflow::V1beta3::Snapshots::Snapshot']; | ||
| 30 | |||
| 31 | coerce 'Snapshot', | ||
| 32 | from HashRef, via { 'Google::Dataflow::V1beta3::Snapshots::Snapshot'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedSnapshot', | ||
| 35 | as ArrayRef[Snapshot()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedSnapshot', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Dataflow::V1beta3::Snapshots::Snapshot'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringSnapshot', | ||
| 41 | as HashRef[Snapshot()]; | ||
| 42 | |||
| 43 | declare 'GetSnapshotRequest', | ||
| 44 | as InstanceOf['Google::Dataflow::V1beta3::Snapshots::GetSnapshotRequest']; | ||
| 45 | |||
| 46 | coerce 'GetSnapshotRequest', | ||
| 47 | from HashRef, via { 'Google::Dataflow::V1beta3::Snapshots::GetSnapshotRequest'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedGetSnapshotRequest', | ||
| 50 | as ArrayRef[GetSnapshotRequest()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedGetSnapshotRequest', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Dataflow::V1beta3::Snapshots::GetSnapshotRequest'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringGetSnapshotRequest', | ||
| 56 | as HashRef[GetSnapshotRequest()]; | ||
| 57 | |||
| 58 | declare 'DeleteSnapshotRequest', | ||
| 59 | as InstanceOf['Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotRequest']; | ||
| 60 | |||
| 61 | coerce 'DeleteSnapshotRequest', | ||
| 62 | from HashRef, via { 'Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotRequest'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedDeleteSnapshotRequest', | ||
| 65 | as ArrayRef[DeleteSnapshotRequest()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedDeleteSnapshotRequest', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotRequest'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringDeleteSnapshotRequest', | ||
| 71 | as HashRef[DeleteSnapshotRequest()]; | ||
| 72 | |||
| 73 | declare 'DeleteSnapshotResponse', | ||
| 74 | as InstanceOf['Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotResponse']; | ||
| 75 | |||
| 76 | coerce 'DeleteSnapshotResponse', | ||
| 77 | from HashRef, via { 'Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotResponse'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedDeleteSnapshotResponse', | ||
| 80 | as ArrayRef[DeleteSnapshotResponse()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedDeleteSnapshotResponse', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Dataflow::V1beta3::Snapshots::DeleteSnapshotResponse'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringDeleteSnapshotResponse', | ||
| 86 | as HashRef[DeleteSnapshotResponse()]; | ||
| 87 | |||
| 88 | declare 'ListSnapshotsRequest', | ||
| 89 | as InstanceOf['Google::Dataflow::V1beta3::Snapshots::ListSnapshotsRequest']; | ||
| 90 | |||
| 91 | coerce 'ListSnapshotsRequest', | ||
| 92 | from HashRef, via { 'Google::Dataflow::V1beta3::Snapshots::ListSnapshotsRequest'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedListSnapshotsRequest', | ||
| 95 | as ArrayRef[ListSnapshotsRequest()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedListSnapshotsRequest', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Dataflow::V1beta3::Snapshots::ListSnapshotsRequest'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringListSnapshotsRequest', | ||
| 101 | as HashRef[ListSnapshotsRequest()]; | ||
| 102 | |||
| 103 | declare 'ListSnapshotsResponse', | ||
| 104 | as InstanceOf['Google::Dataflow::V1beta3::Snapshots::ListSnapshotsResponse']; | ||
| 105 | |||
| 106 | coerce 'ListSnapshotsResponse', | ||
| 107 | from HashRef, via { 'Google::Dataflow::V1beta3::Snapshots::ListSnapshotsResponse'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedListSnapshotsResponse', | ||
| 110 | as ArrayRef[ListSnapshotsResponse()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedListSnapshotsResponse', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Dataflow::V1beta3::Snapshots::ListSnapshotsResponse'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringListSnapshotsResponse', | ||
| 116 | as HashRef[ListSnapshotsResponse()]; | ||
| 117 | |||
| 118 | 1; | ||
| 119 | |||
| 120 | __END__ |