| 1 | package Google::Cloud::Sql::V1beta4::CloudSqlData::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 'SqlDataFeature', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'StreamSqlDataRequest', | ||
| 14 | as InstanceOf['Google::Cloud::Sql::V1beta4::CloudSqlData::StreamSqlDataRequest']; | ||
| 15 | |||
| 16 | coerce 'StreamSqlDataRequest', | ||
| 17 | from HashRef, via { 'Google::Cloud::Sql::V1beta4::CloudSqlData::StreamSqlDataRequest'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedStreamSqlDataRequest', | ||
| 20 | as ArrayRef[StreamSqlDataRequest()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedStreamSqlDataRequest', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1beta4::CloudSqlData::StreamSqlDataRequest'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringStreamSqlDataRequest', | ||
| 26 | as HashRef[StreamSqlDataRequest()]; | ||
| 27 | |||
| 28 | declare 'StartSession', | ||
| 29 | as InstanceOf['Google::Cloud::Sql::V1beta4::CloudSqlData::StartSession']; | ||
| 30 | |||
| 31 | coerce 'StartSession', | ||
| 32 | from HashRef, via { 'Google::Cloud::Sql::V1beta4::CloudSqlData::StartSession'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedStartSession', | ||
| 35 | as ArrayRef[StartSession()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedStartSession', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1beta4::CloudSqlData::StartSession'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringStartSession', | ||
| 41 | as HashRef[StartSession()]; | ||
| 42 | |||
| 43 | declare 'ContinueSession', | ||
| 44 | as InstanceOf['Google::Cloud::Sql::V1beta4::CloudSqlData::ContinueSession']; | ||
| 45 | |||
| 46 | coerce 'ContinueSession', | ||
| 47 | from HashRef, via { 'Google::Cloud::Sql::V1beta4::CloudSqlData::ContinueSession'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedContinueSession', | ||
| 50 | as ArrayRef[ContinueSession()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedContinueSession', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1beta4::CloudSqlData::ContinueSession'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringContinueSession', | ||
| 56 | as HashRef[ContinueSession()]; | ||
| 57 | |||
| 58 | declare 'StreamSqlDataResponse', | ||
| 59 | as InstanceOf['Google::Cloud::Sql::V1beta4::CloudSqlData::StreamSqlDataResponse']; | ||
| 60 | |||
| 61 | coerce 'StreamSqlDataResponse', | ||
| 62 | from HashRef, via { 'Google::Cloud::Sql::V1beta4::CloudSqlData::StreamSqlDataResponse'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedStreamSqlDataResponse', | ||
| 65 | as ArrayRef[StreamSqlDataResponse()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedStreamSqlDataResponse', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1beta4::CloudSqlData::StreamSqlDataResponse'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringStreamSqlDataResponse', | ||
| 71 | as HashRef[StreamSqlDataResponse()]; | ||
| 72 | |||
| 73 | declare 'SessionMetadata', | ||
| 74 | as InstanceOf['Google::Cloud::Sql::V1beta4::CloudSqlData::SessionMetadata']; | ||
| 75 | |||
| 76 | coerce 'SessionMetadata', | ||
| 77 | from HashRef, via { 'Google::Cloud::Sql::V1beta4::CloudSqlData::SessionMetadata'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedSessionMetadata', | ||
| 80 | as ArrayRef[SessionMetadata()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedSessionMetadata', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1beta4::CloudSqlData::SessionMetadata'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringSessionMetadata', | ||
| 86 | as HashRef[SessionMetadata()]; | ||
| 87 | |||
| 88 | declare 'DataPacket', | ||
| 89 | as InstanceOf['Google::Cloud::Sql::V1beta4::CloudSqlData::DataPacket']; | ||
| 90 | |||
| 91 | coerce 'DataPacket', | ||
| 92 | from HashRef, via { 'Google::Cloud::Sql::V1beta4::CloudSqlData::DataPacket'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedDataPacket', | ||
| 95 | as ArrayRef[DataPacket()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedDataPacket', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1beta4::CloudSqlData::DataPacket'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringDataPacket', | ||
| 101 | as HashRef[DataPacket()]; | ||
| 102 | |||
| 103 | declare 'Ack', | ||
| 104 | as InstanceOf['Google::Cloud::Sql::V1beta4::CloudSqlData::Ack']; | ||
| 105 | |||
| 106 | coerce 'Ack', | ||
| 107 | from HashRef, via { 'Google::Cloud::Sql::V1beta4::CloudSqlData::Ack'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedAck', | ||
| 110 | as ArrayRef[Ack()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedAck', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1beta4::CloudSqlData::Ack'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringAck', | ||
| 116 | as HashRef[Ack()]; | ||
| 117 | |||
| 118 | declare 'TerminateSession', | ||
| 119 | as InstanceOf['Google::Cloud::Sql::V1beta4::CloudSqlData::TerminateSession']; | ||
| 120 | |||
| 121 | coerce 'TerminateSession', | ||
| 122 | from HashRef, via { 'Google::Cloud::Sql::V1beta4::CloudSqlData::TerminateSession'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedTerminateSession', | ||
| 125 | as ArrayRef[TerminateSession()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedTerminateSession', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Sql::V1beta4::CloudSqlData::TerminateSession'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringTerminateSession', | ||
| 131 | as HashRef[TerminateSession()]; | ||
| 132 | |||
| 133 | 1; | ||
| 134 | |||
| 135 | __END__ |