| 1 | package Google::Cloud::Oracledatabase::V1::ExecuteSql::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 'ExecuteSqlRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlRequest']; | ||
| 12 | |||
| 13 | coerce 'ExecuteSqlRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedExecuteSqlRequest', | ||
| 17 | as ArrayRef[ExecuteSqlRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedExecuteSqlRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringExecuteSqlRequest', | ||
| 23 | as HashRef[ExecuteSqlRequest()]; | ||
| 24 | |||
| 25 | declare 'SqlParameter', | ||
| 26 | as InstanceOf['Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlParameter']; | ||
| 27 | |||
| 28 | coerce 'SqlParameter', | ||
| 29 | from HashRef, via { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlParameter'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedSqlParameter', | ||
| 32 | as ArrayRef[SqlParameter()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedSqlParameter', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlParameter'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringSqlParameter', | ||
| 38 | as HashRef[SqlParameter()]; | ||
| 39 | |||
| 40 | declare 'ExecuteSqlResponse', | ||
| 41 | as InstanceOf['Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlResponse']; | ||
| 42 | |||
| 43 | coerce 'ExecuteSqlResponse', | ||
| 44 | from HashRef, via { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlResponse'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedExecuteSqlResponse', | ||
| 47 | as ArrayRef[ExecuteSqlResponse()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedExecuteSqlResponse', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlResponse'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringExecuteSqlResponse', | ||
| 53 | as HashRef[ExecuteSqlResponse()]; | ||
| 54 | |||
| 55 | declare 'SqlResult', | ||
| 56 | as InstanceOf['Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult']; | ||
| 57 | |||
| 58 | coerce 'SqlResult', | ||
| 59 | from HashRef, via { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedSqlResult', | ||
| 62 | as ArrayRef[SqlResult()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedSqlResult', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringSqlResult', | ||
| 68 | as HashRef[SqlResult()]; | ||
| 69 | |||
| 70 | declare 'Column', | ||
| 71 | as InstanceOf['Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult::Column']; | ||
| 72 | |||
| 73 | coerce 'Column', | ||
| 74 | from HashRef, via { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult::Column'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedColumn', | ||
| 77 | as ArrayRef[Column()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedColumn', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult::Column'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringColumn', | ||
| 83 | as HashRef[Column()]; | ||
| 84 | |||
| 85 | declare 'Row', | ||
| 86 | as InstanceOf['Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult::Row']; | ||
| 87 | |||
| 88 | coerce 'Row', | ||
| 89 | from HashRef, via { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult::Row'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedRow', | ||
| 92 | as ArrayRef[Row()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedRow', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult::Row'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringRow', | ||
| 98 | as HashRef[Row()]; | ||
| 99 | |||
| 100 | declare 'Value', | ||
| 101 | as InstanceOf['Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult::Value']; | ||
| 102 | |||
| 103 | coerce 'Value', | ||
| 104 | from HashRef, via { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult::Value'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedValue', | ||
| 107 | as ArrayRef[Value()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedValue', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::SqlResult::Value'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringValue', | ||
| 113 | as HashRef[Value()]; | ||
| 114 | |||
| 115 | declare 'ExecuteSqlMetadata', | ||
| 116 | as InstanceOf['Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlMetadata']; | ||
| 117 | |||
| 118 | coerce 'ExecuteSqlMetadata', | ||
| 119 | from HashRef, via { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlMetadata'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedExecuteSqlMetadata', | ||
| 122 | as ArrayRef[ExecuteSqlMetadata()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedExecuteSqlMetadata', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Oracledatabase::V1::ExecuteSql::ExecuteSqlMetadata'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringExecuteSqlMetadata', | ||
| 128 | as HashRef[ExecuteSqlMetadata()]; | ||
| 129 | |||
| 130 | declare 'Status', | ||
| 131 | as (Int | Str); | ||
| 132 | |||
| 133 | 1; | ||
| 134 | |||
| 135 | __END__ |