| 1 | package Google::Cloud::Baremetalsolution::V2::SshKey::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 'SSHKey', | ||
| 11 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::SshKey::SSHKey']; | ||
| 12 | |||
| 13 | coerce 'SSHKey', | ||
| 14 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::SshKey::SSHKey'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedSSHKey', | ||
| 17 | as ArrayRef[SSHKey()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedSSHKey', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::SshKey::SSHKey'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringSSHKey', | ||
| 23 | as HashRef[SSHKey()]; | ||
| 24 | |||
| 25 | declare 'ListSSHKeysRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::SshKey::ListSSHKeysRequest']; | ||
| 27 | |||
| 28 | coerce 'ListSSHKeysRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::SshKey::ListSSHKeysRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedListSSHKeysRequest', | ||
| 32 | as ArrayRef[ListSSHKeysRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedListSSHKeysRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::SshKey::ListSSHKeysRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringListSSHKeysRequest', | ||
| 38 | as HashRef[ListSSHKeysRequest()]; | ||
| 39 | |||
| 40 | declare 'ListSSHKeysResponse', | ||
| 41 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::SshKey::ListSSHKeysResponse']; | ||
| 42 | |||
| 43 | coerce 'ListSSHKeysResponse', | ||
| 44 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::SshKey::ListSSHKeysResponse'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedListSSHKeysResponse', | ||
| 47 | as ArrayRef[ListSSHKeysResponse()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedListSSHKeysResponse', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::SshKey::ListSSHKeysResponse'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringListSSHKeysResponse', | ||
| 53 | as HashRef[ListSSHKeysResponse()]; | ||
| 54 | |||
| 55 | declare 'CreateSSHKeyRequest', | ||
| 56 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::SshKey::CreateSSHKeyRequest']; | ||
| 57 | |||
| 58 | coerce 'CreateSSHKeyRequest', | ||
| 59 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::SshKey::CreateSSHKeyRequest'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedCreateSSHKeyRequest', | ||
| 62 | as ArrayRef[CreateSSHKeyRequest()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedCreateSSHKeyRequest', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::SshKey::CreateSSHKeyRequest'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringCreateSSHKeyRequest', | ||
| 68 | as HashRef[CreateSSHKeyRequest()]; | ||
| 69 | |||
| 70 | declare 'DeleteSSHKeyRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Baremetalsolution::V2::SshKey::DeleteSSHKeyRequest']; | ||
| 72 | |||
| 73 | coerce 'DeleteSSHKeyRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Baremetalsolution::V2::SshKey::DeleteSSHKeyRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedDeleteSSHKeyRequest', | ||
| 77 | as ArrayRef[DeleteSSHKeyRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedDeleteSSHKeyRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Baremetalsolution::V2::SshKey::DeleteSSHKeyRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringDeleteSSHKeyRequest', | ||
| 83 | as HashRef[DeleteSSHKeyRequest()]; | ||
| 84 | |||
| 85 | 1; | ||
| 86 | |||
| 87 | __END__ |