| 1 | package Google::Spanner::Auth::V1::Authentication::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 'PasswordAuthenticationProtocol', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'HashParameters', | ||
| 14 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::HashParameters']; | ||
| 15 | |||
| 16 | coerce 'HashParameters', | ||
| 17 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::HashParameters'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedHashParameters', | ||
| 20 | as ArrayRef[HashParameters()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedHashParameters', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::HashParameters'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringHashParameters', | ||
| 26 | as HashRef[HashParameters()]; | ||
| 27 | |||
| 28 | declare 'Argon2IdParameters', | ||
| 29 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::HashParameters::Argon2IdParameters']; | ||
| 30 | |||
| 31 | coerce 'Argon2IdParameters', | ||
| 32 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::HashParameters::Argon2IdParameters'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedArgon2IdParameters', | ||
| 35 | as ArrayRef[Argon2IdParameters()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedArgon2IdParameters', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::HashParameters::Argon2IdParameters'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringArgon2IdParameters', | ||
| 41 | as HashRef[Argon2IdParameters()]; | ||
| 42 | |||
| 43 | declare 'PasswordAuthenticationHandshakeRequest', | ||
| 44 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::PasswordAuthenticationHandshakeRequest']; | ||
| 45 | |||
| 46 | coerce 'PasswordAuthenticationHandshakeRequest', | ||
| 47 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::PasswordAuthenticationHandshakeRequest'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedPasswordAuthenticationHandshakeRequest', | ||
| 50 | as ArrayRef[PasswordAuthenticationHandshakeRequest()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedPasswordAuthenticationHandshakeRequest', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::PasswordAuthenticationHandshakeRequest'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringPasswordAuthenticationHandshakeRequest', | ||
| 56 | as HashRef[PasswordAuthenticationHandshakeRequest()]; | ||
| 57 | |||
| 58 | declare 'PasswordAuthenticationHandshakeResponse', | ||
| 59 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::PasswordAuthenticationHandshakeResponse']; | ||
| 60 | |||
| 61 | coerce 'PasswordAuthenticationHandshakeResponse', | ||
| 62 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::PasswordAuthenticationHandshakeResponse'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedPasswordAuthenticationHandshakeResponse', | ||
| 65 | as ArrayRef[PasswordAuthenticationHandshakeResponse()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedPasswordAuthenticationHandshakeResponse', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::PasswordAuthenticationHandshakeResponse'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringPasswordAuthenticationHandshakeResponse', | ||
| 71 | as HashRef[PasswordAuthenticationHandshakeResponse()]; | ||
| 72 | |||
| 73 | declare 'PasswordCredential', | ||
| 74 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::PasswordCredential']; | ||
| 75 | |||
| 76 | coerce 'PasswordCredential', | ||
| 77 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::PasswordCredential'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedPasswordCredential', | ||
| 80 | as ArrayRef[PasswordCredential()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedPasswordCredential', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::PasswordCredential'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringPasswordCredential', | ||
| 86 | as HashRef[PasswordCredential()]; | ||
| 87 | |||
| 88 | declare 'Scram', | ||
| 89 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::PasswordCredential::Scram']; | ||
| 90 | |||
| 91 | coerce 'Scram', | ||
| 92 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::PasswordCredential::Scram'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedScram', | ||
| 95 | as ArrayRef[Scram()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedScram', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::PasswordCredential::Scram'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringScram', | ||
| 101 | as HashRef[Scram()]; | ||
| 102 | |||
| 103 | declare 'Opaque', | ||
| 104 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::PasswordCredential::Opaque']; | ||
| 105 | |||
| 106 | coerce 'Opaque', | ||
| 107 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::PasswordCredential::Opaque'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedOpaque', | ||
| 110 | as ArrayRef[Opaque()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedOpaque', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::PasswordCredential::Opaque'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringOpaque', | ||
| 116 | as HashRef[Opaque()]; | ||
| 117 | |||
| 118 | declare 'InitialScramResponse', | ||
| 119 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::InitialScramResponse']; | ||
| 120 | |||
| 121 | coerce 'InitialScramResponse', | ||
| 122 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::InitialScramResponse'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedInitialScramResponse', | ||
| 125 | as ArrayRef[InitialScramResponse()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedInitialScramResponse', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::InitialScramResponse'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringInitialScramResponse', | ||
| 131 | as HashRef[InitialScramResponse()]; | ||
| 132 | |||
| 133 | declare 'ScramNewCredentialRequest', | ||
| 134 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::ScramNewCredentialRequest']; | ||
| 135 | |||
| 136 | coerce 'ScramNewCredentialRequest', | ||
| 137 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::ScramNewCredentialRequest'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedScramNewCredentialRequest', | ||
| 140 | as ArrayRef[ScramNewCredentialRequest()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedScramNewCredentialRequest', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::ScramNewCredentialRequest'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringScramNewCredentialRequest', | ||
| 146 | as HashRef[ScramNewCredentialRequest()]; | ||
| 147 | |||
| 148 | declare 'InitialRequest', | ||
| 149 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::ScramNewCredentialRequest::InitialRequest']; | ||
| 150 | |||
| 151 | coerce 'InitialRequest', | ||
| 152 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::ScramNewCredentialRequest::InitialRequest'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedInitialRequest', | ||
| 155 | as ArrayRef[InitialRequest()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedInitialRequest', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::ScramNewCredentialRequest::InitialRequest'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringInitialRequest', | ||
| 161 | as HashRef[InitialRequest()]; | ||
| 162 | |||
| 163 | declare 'FinalRequest', | ||
| 164 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::ScramNewCredentialRequest::FinalRequest']; | ||
| 165 | |||
| 166 | coerce 'FinalRequest', | ||
| 167 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::ScramNewCredentialRequest::FinalRequest'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedFinalRequest', | ||
| 170 | as ArrayRef[FinalRequest()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedFinalRequest', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::ScramNewCredentialRequest::FinalRequest'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringFinalRequest', | ||
| 176 | as HashRef[FinalRequest()]; | ||
| 177 | |||
| 178 | declare 'ScramNewCredentialResponse', | ||
| 179 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::ScramNewCredentialResponse']; | ||
| 180 | |||
| 181 | coerce 'ScramNewCredentialResponse', | ||
| 182 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::ScramNewCredentialResponse'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedScramNewCredentialResponse', | ||
| 185 | as ArrayRef[ScramNewCredentialResponse()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedScramNewCredentialResponse', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::ScramNewCredentialResponse'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringScramNewCredentialResponse', | ||
| 191 | as HashRef[ScramNewCredentialResponse()]; | ||
| 192 | |||
| 193 | declare 'FinalResponse', | ||
| 194 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::ScramNewCredentialResponse::FinalResponse']; | ||
| 195 | |||
| 196 | coerce 'FinalResponse', | ||
| 197 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::ScramNewCredentialResponse::FinalResponse'->new($_) }; | ||
| 198 | |||
| 199 | declare 'RepeatedFinalResponse', | ||
| 200 | as ArrayRef[FinalResponse()]; | ||
| 201 | |||
| 202 | coerce 'RepeatedFinalResponse', | ||
| 203 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::ScramNewCredentialResponse::FinalResponse'->new($_) } @$_ ] }; | ||
| 204 | |||
| 205 | declare 'MapStringFinalResponse', | ||
| 206 | as HashRef[FinalResponse()]; | ||
| 207 | |||
| 208 | declare 'OpaqueNewCredentialRequest', | ||
| 209 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialRequest']; | ||
| 210 | |||
| 211 | coerce 'OpaqueNewCredentialRequest', | ||
| 212 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialRequest'->new($_) }; | ||
| 213 | |||
| 214 | declare 'RepeatedOpaqueNewCredentialRequest', | ||
| 215 | as ArrayRef[OpaqueNewCredentialRequest()]; | ||
| 216 | |||
| 217 | coerce 'RepeatedOpaqueNewCredentialRequest', | ||
| 218 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialRequest'->new($_) } @$_ ] }; | ||
| 219 | |||
| 220 | declare 'MapStringOpaqueNewCredentialRequest', | ||
| 221 | as HashRef[OpaqueNewCredentialRequest()]; | ||
| 222 | |||
| 223 | declare 'InitialRequest', | ||
| 224 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialRequest::InitialRequest']; | ||
| 225 | |||
| 226 | coerce 'InitialRequest', | ||
| 227 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialRequest::InitialRequest'->new($_) }; | ||
| 228 | |||
| 229 | declare 'RepeatedInitialRequest', | ||
| 230 | as ArrayRef[InitialRequest()]; | ||
| 231 | |||
| 232 | coerce 'RepeatedInitialRequest', | ||
| 233 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialRequest::InitialRequest'->new($_) } @$_ ] }; | ||
| 234 | |||
| 235 | declare 'MapStringInitialRequest', | ||
| 236 | as HashRef[InitialRequest()]; | ||
| 237 | |||
| 238 | declare 'FinalRequest', | ||
| 239 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialRequest::FinalRequest']; | ||
| 240 | |||
| 241 | coerce 'FinalRequest', | ||
| 242 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialRequest::FinalRequest'->new($_) }; | ||
| 243 | |||
| 244 | declare 'RepeatedFinalRequest', | ||
| 245 | as ArrayRef[FinalRequest()]; | ||
| 246 | |||
| 247 | coerce 'RepeatedFinalRequest', | ||
| 248 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialRequest::FinalRequest'->new($_) } @$_ ] }; | ||
| 249 | |||
| 250 | declare 'MapStringFinalRequest', | ||
| 251 | as HashRef[FinalRequest()]; | ||
| 252 | |||
| 253 | declare 'OpaqueNewCredentialResponse', | ||
| 254 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialResponse']; | ||
| 255 | |||
| 256 | coerce 'OpaqueNewCredentialResponse', | ||
| 257 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialResponse'->new($_) }; | ||
| 258 | |||
| 259 | declare 'RepeatedOpaqueNewCredentialResponse', | ||
| 260 | as ArrayRef[OpaqueNewCredentialResponse()]; | ||
| 261 | |||
| 262 | coerce 'RepeatedOpaqueNewCredentialResponse', | ||
| 263 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialResponse'->new($_) } @$_ ] }; | ||
| 264 | |||
| 265 | declare 'MapStringOpaqueNewCredentialResponse', | ||
| 266 | as HashRef[OpaqueNewCredentialResponse()]; | ||
| 267 | |||
| 268 | declare 'InitialResponse', | ||
| 269 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialResponse::InitialResponse']; | ||
| 270 | |||
| 271 | coerce 'InitialResponse', | ||
| 272 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialResponse::InitialResponse'->new($_) }; | ||
| 273 | |||
| 274 | declare 'RepeatedInitialResponse', | ||
| 275 | as ArrayRef[InitialResponse()]; | ||
| 276 | |||
| 277 | coerce 'RepeatedInitialResponse', | ||
| 278 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialResponse::InitialResponse'->new($_) } @$_ ] }; | ||
| 279 | |||
| 280 | declare 'MapStringInitialResponse', | ||
| 281 | as HashRef[InitialResponse()]; | ||
| 282 | |||
| 283 | declare 'FinalResponse', | ||
| 284 | as InstanceOf['Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialResponse::FinalResponse']; | ||
| 285 | |||
| 286 | coerce 'FinalResponse', | ||
| 287 | from HashRef, via { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialResponse::FinalResponse'->new($_) }; | ||
| 288 | |||
| 289 | declare 'RepeatedFinalResponse', | ||
| 290 | as ArrayRef[FinalResponse()]; | ||
| 291 | |||
| 292 | coerce 'RepeatedFinalResponse', | ||
| 293 | from ArrayRef[HashRef], via { [ map { 'Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialResponse::FinalResponse'->new($_) } @$_ ] }; | ||
| 294 | |||
| 295 | declare 'MapStringFinalResponse', | ||
| 296 | as HashRef[FinalResponse()]; | ||
| 297 | |||
| 298 | 1; | ||
| 299 | |||
| 300 | __END__ |