| 1 | package Google::Cloud::Bigquery::Connection::V1beta1::Connection::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 'CreateConnectionRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Bigquery::Connection::V1beta1::Connection::CreateConnectionRequest']; | ||
| 12 | |||
| 13 | coerce 'CreateConnectionRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::CreateConnectionRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedCreateConnectionRequest', | ||
| 17 | as ArrayRef[CreateConnectionRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedCreateConnectionRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::CreateConnectionRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringCreateConnectionRequest', | ||
| 23 | as HashRef[CreateConnectionRequest()]; | ||
| 24 | |||
| 25 | declare 'GetConnectionRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Bigquery::Connection::V1beta1::Connection::GetConnectionRequest']; | ||
| 27 | |||
| 28 | coerce 'GetConnectionRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::GetConnectionRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedGetConnectionRequest', | ||
| 32 | as ArrayRef[GetConnectionRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedGetConnectionRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::GetConnectionRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringGetConnectionRequest', | ||
| 38 | as HashRef[GetConnectionRequest()]; | ||
| 39 | |||
| 40 | declare 'ListConnectionsRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Bigquery::Connection::V1beta1::Connection::ListConnectionsRequest']; | ||
| 42 | |||
| 43 | coerce 'ListConnectionsRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::ListConnectionsRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedListConnectionsRequest', | ||
| 47 | as ArrayRef[ListConnectionsRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedListConnectionsRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::ListConnectionsRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringListConnectionsRequest', | ||
| 53 | as HashRef[ListConnectionsRequest()]; | ||
| 54 | |||
| 55 | declare 'ListConnectionsResponse', | ||
| 56 | as InstanceOf['Google::Cloud::Bigquery::Connection::V1beta1::Connection::ListConnectionsResponse']; | ||
| 57 | |||
| 58 | coerce 'ListConnectionsResponse', | ||
| 59 | from HashRef, via { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::ListConnectionsResponse'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedListConnectionsResponse', | ||
| 62 | as ArrayRef[ListConnectionsResponse()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedListConnectionsResponse', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::ListConnectionsResponse'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringListConnectionsResponse', | ||
| 68 | as HashRef[ListConnectionsResponse()]; | ||
| 69 | |||
| 70 | declare 'UpdateConnectionRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Bigquery::Connection::V1beta1::Connection::UpdateConnectionRequest']; | ||
| 72 | |||
| 73 | coerce 'UpdateConnectionRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::UpdateConnectionRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedUpdateConnectionRequest', | ||
| 77 | as ArrayRef[UpdateConnectionRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedUpdateConnectionRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::UpdateConnectionRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringUpdateConnectionRequest', | ||
| 83 | as HashRef[UpdateConnectionRequest()]; | ||
| 84 | |||
| 85 | declare 'UpdateConnectionCredentialRequest', | ||
| 86 | as InstanceOf['Google::Cloud::Bigquery::Connection::V1beta1::Connection::UpdateConnectionCredentialRequest']; | ||
| 87 | |||
| 88 | coerce 'UpdateConnectionCredentialRequest', | ||
| 89 | from HashRef, via { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::UpdateConnectionCredentialRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedUpdateConnectionCredentialRequest', | ||
| 92 | as ArrayRef[UpdateConnectionCredentialRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedUpdateConnectionCredentialRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::UpdateConnectionCredentialRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringUpdateConnectionCredentialRequest', | ||
| 98 | as HashRef[UpdateConnectionCredentialRequest()]; | ||
| 99 | |||
| 100 | declare 'DeleteConnectionRequest', | ||
| 101 | as InstanceOf['Google::Cloud::Bigquery::Connection::V1beta1::Connection::DeleteConnectionRequest']; | ||
| 102 | |||
| 103 | coerce 'DeleteConnectionRequest', | ||
| 104 | from HashRef, via { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::DeleteConnectionRequest'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedDeleteConnectionRequest', | ||
| 107 | as ArrayRef[DeleteConnectionRequest()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedDeleteConnectionRequest', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::DeleteConnectionRequest'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringDeleteConnectionRequest', | ||
| 113 | as HashRef[DeleteConnectionRequest()]; | ||
| 114 | |||
| 115 | declare 'Connection', | ||
| 116 | as InstanceOf['Google::Cloud::Bigquery::Connection::V1beta1::Connection::Connection']; | ||
| 117 | |||
| 118 | coerce 'Connection', | ||
| 119 | from HashRef, via { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::Connection'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedConnection', | ||
| 122 | as ArrayRef[Connection()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedConnection', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::Connection'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringConnection', | ||
| 128 | as HashRef[Connection()]; | ||
| 129 | |||
| 130 | declare 'ConnectionCredential', | ||
| 131 | as InstanceOf['Google::Cloud::Bigquery::Connection::V1beta1::Connection::ConnectionCredential']; | ||
| 132 | |||
| 133 | coerce 'ConnectionCredential', | ||
| 134 | from HashRef, via { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::ConnectionCredential'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedConnectionCredential', | ||
| 137 | as ArrayRef[ConnectionCredential()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedConnectionCredential', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::ConnectionCredential'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringConnectionCredential', | ||
| 143 | as HashRef[ConnectionCredential()]; | ||
| 144 | |||
| 145 | declare 'CloudSqlProperties', | ||
| 146 | as InstanceOf['Google::Cloud::Bigquery::Connection::V1beta1::Connection::CloudSqlProperties']; | ||
| 147 | |||
| 148 | coerce 'CloudSqlProperties', | ||
| 149 | from HashRef, via { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::CloudSqlProperties'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedCloudSqlProperties', | ||
| 152 | as ArrayRef[CloudSqlProperties()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedCloudSqlProperties', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::CloudSqlProperties'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringCloudSqlProperties', | ||
| 158 | as HashRef[CloudSqlProperties()]; | ||
| 159 | |||
| 160 | declare 'DatabaseType', | ||
| 161 | as (Int | Str); | ||
| 162 | |||
| 163 | declare 'CloudSqlCredential', | ||
| 164 | as InstanceOf['Google::Cloud::Bigquery::Connection::V1beta1::Connection::CloudSqlCredential']; | ||
| 165 | |||
| 166 | coerce 'CloudSqlCredential', | ||
| 167 | from HashRef, via { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::CloudSqlCredential'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedCloudSqlCredential', | ||
| 170 | as ArrayRef[CloudSqlCredential()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedCloudSqlCredential', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Bigquery::Connection::V1beta1::Connection::CloudSqlCredential'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringCloudSqlCredential', | ||
| 176 | as HashRef[CloudSqlCredential()]; | ||
| 177 | |||
| 178 | 1; | ||
| 179 | |||
| 180 | __END__ |