| 1 | package Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::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 'WorkloadCapturesStartRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStartRequest']; | ||
| 12 | |||
| 13 | coerce 'WorkloadCapturesStartRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStartRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedWorkloadCapturesStartRequest', | ||
| 17 | as ArrayRef[WorkloadCapturesStartRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedWorkloadCapturesStartRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStartRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringWorkloadCapturesStartRequest', | ||
| 23 | as HashRef[WorkloadCapturesStartRequest()]; | ||
| 24 | |||
| 25 | declare 'WorkloadCapturesStopRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStopRequest']; | ||
| 27 | |||
| 28 | coerce 'WorkloadCapturesStopRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStopRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedWorkloadCapturesStopRequest', | ||
| 32 | as ArrayRef[WorkloadCapturesStopRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedWorkloadCapturesStopRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStopRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringWorkloadCapturesStopRequest', | ||
| 38 | as HashRef[WorkloadCapturesStopRequest()]; | ||
| 39 | |||
| 40 | declare 'WorkloadCapturesStartReplayRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStartReplayRequest']; | ||
| 42 | |||
| 43 | coerce 'WorkloadCapturesStartReplayRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStartReplayRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedWorkloadCapturesStartReplayRequest', | ||
| 47 | as ArrayRef[WorkloadCapturesStartReplayRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedWorkloadCapturesStartReplayRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStartReplayRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringWorkloadCapturesStartReplayRequest', | ||
| 53 | as HashRef[WorkloadCapturesStartReplayRequest()]; | ||
| 54 | |||
| 55 | declare 'WorkloadCapturesStopReplayRequest', | ||
| 56 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStopReplayRequest']; | ||
| 57 | |||
| 58 | coerce 'WorkloadCapturesStopReplayRequest', | ||
| 59 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStopReplayRequest'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedWorkloadCapturesStopReplayRequest', | ||
| 62 | as ArrayRef[WorkloadCapturesStopReplayRequest()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedWorkloadCapturesStopReplayRequest', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesStopReplayRequest'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringWorkloadCapturesStopReplayRequest', | ||
| 68 | as HashRef[WorkloadCapturesStopReplayRequest()]; | ||
| 69 | |||
| 70 | declare 'SqlWorkloadCapturesListRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::SqlWorkloadCapturesListRequest']; | ||
| 72 | |||
| 73 | coerce 'SqlWorkloadCapturesListRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::SqlWorkloadCapturesListRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedSqlWorkloadCapturesListRequest', | ||
| 77 | as ArrayRef[SqlWorkloadCapturesListRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedSqlWorkloadCapturesListRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::SqlWorkloadCapturesListRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringSqlWorkloadCapturesListRequest', | ||
| 83 | as HashRef[SqlWorkloadCapturesListRequest()]; | ||
| 84 | |||
| 85 | declare 'WorkloadCapturesListResponse', | ||
| 86 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesListResponse']; | ||
| 87 | |||
| 88 | coerce 'WorkloadCapturesListResponse', | ||
| 89 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesListResponse'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedWorkloadCapturesListResponse', | ||
| 92 | as ArrayRef[WorkloadCapturesListResponse()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedWorkloadCapturesListResponse', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapturesListResponse'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringWorkloadCapturesListResponse', | ||
| 98 | as HashRef[WorkloadCapturesListResponse()]; | ||
| 99 | |||
| 100 | declare 'WorkloadCapture', | ||
| 101 | as InstanceOf['Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapture']; | ||
| 102 | |||
| 103 | coerce 'WorkloadCapture', | ||
| 104 | from HashRef, via { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapture'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedWorkloadCapture', | ||
| 107 | as ArrayRef[WorkloadCapture()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedWorkloadCapture', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1::CloudSqlWorkloadCaptures::WorkloadCapture'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringWorkloadCapture', | ||
| 113 | as HashRef[WorkloadCapture()]; | ||
| 114 | |||
| 115 | declare 'State', | ||
| 116 | as (Int | Str); | ||
| 117 | |||
| 118 | declare 'WorkloadCaptureMode', | ||
| 119 | as (Int | Str); | ||
| 120 | |||
| 121 | 1; | ||
| 122 | |||
| 123 | __END__ |