| 1 | package Google::Cloud::Confidentialcomputing::V1alpha1::Service::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 'Challenge', | ||
| 11 | as InstanceOf['Google::Cloud::Confidentialcomputing::V1alpha1::Service::Challenge']; | ||
| 12 | |||
| 13 | coerce 'Challenge', | ||
| 14 | from HashRef, via { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::Challenge'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedChallenge', | ||
| 17 | as ArrayRef[Challenge()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedChallenge', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::Challenge'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringChallenge', | ||
| 23 | as HashRef[Challenge()]; | ||
| 24 | |||
| 25 | declare 'CreateChallengeRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Confidentialcomputing::V1alpha1::Service::CreateChallengeRequest']; | ||
| 27 | |||
| 28 | coerce 'CreateChallengeRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::CreateChallengeRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedCreateChallengeRequest', | ||
| 32 | as ArrayRef[CreateChallengeRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedCreateChallengeRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::CreateChallengeRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringCreateChallengeRequest', | ||
| 38 | as HashRef[CreateChallengeRequest()]; | ||
| 39 | |||
| 40 | declare 'VerifyAttestationRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Confidentialcomputing::V1alpha1::Service::VerifyAttestationRequest']; | ||
| 42 | |||
| 43 | coerce 'VerifyAttestationRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::VerifyAttestationRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedVerifyAttestationRequest', | ||
| 47 | as ArrayRef[VerifyAttestationRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedVerifyAttestationRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::VerifyAttestationRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringVerifyAttestationRequest', | ||
| 53 | as HashRef[VerifyAttestationRequest()]; | ||
| 54 | |||
| 55 | declare 'VerifyAttestationResponse', | ||
| 56 | as InstanceOf['Google::Cloud::Confidentialcomputing::V1alpha1::Service::VerifyAttestationResponse']; | ||
| 57 | |||
| 58 | coerce 'VerifyAttestationResponse', | ||
| 59 | from HashRef, via { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::VerifyAttestationResponse'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedVerifyAttestationResponse', | ||
| 62 | as ArrayRef[VerifyAttestationResponse()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedVerifyAttestationResponse', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::VerifyAttestationResponse'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringVerifyAttestationResponse', | ||
| 68 | as HashRef[VerifyAttestationResponse()]; | ||
| 69 | |||
| 70 | declare 'GcpCredentials', | ||
| 71 | as InstanceOf['Google::Cloud::Confidentialcomputing::V1alpha1::Service::GcpCredentials']; | ||
| 72 | |||
| 73 | coerce 'GcpCredentials', | ||
| 74 | from HashRef, via { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::GcpCredentials'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedGcpCredentials', | ||
| 77 | as ArrayRef[GcpCredentials()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedGcpCredentials', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::GcpCredentials'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringGcpCredentials', | ||
| 83 | as HashRef[GcpCredentials()]; | ||
| 84 | |||
| 85 | declare 'TpmAttestation', | ||
| 86 | as InstanceOf['Google::Cloud::Confidentialcomputing::V1alpha1::Service::TpmAttestation']; | ||
| 87 | |||
| 88 | coerce 'TpmAttestation', | ||
| 89 | from HashRef, via { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::TpmAttestation'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedTpmAttestation', | ||
| 92 | as ArrayRef[TpmAttestation()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedTpmAttestation', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::TpmAttestation'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringTpmAttestation', | ||
| 98 | as HashRef[TpmAttestation()]; | ||
| 99 | |||
| 100 | declare 'Quote', | ||
| 101 | as InstanceOf['Google::Cloud::Confidentialcomputing::V1alpha1::Service::TpmAttestation::Quote']; | ||
| 102 | |||
| 103 | coerce 'Quote', | ||
| 104 | from HashRef, via { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::TpmAttestation::Quote'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedQuote', | ||
| 107 | as ArrayRef[Quote()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedQuote', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::TpmAttestation::Quote'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringQuote', | ||
| 113 | as HashRef[Quote()]; | ||
| 114 | |||
| 115 | declare 'PcrValuesEntry', | ||
| 116 | as InstanceOf['Google::Cloud::Confidentialcomputing::V1alpha1::Service::TpmAttestation::Quote::PcrValuesEntry']; | ||
| 117 | |||
| 118 | coerce 'PcrValuesEntry', | ||
| 119 | from HashRef, via { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::TpmAttestation::Quote::PcrValuesEntry'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedPcrValuesEntry', | ||
| 122 | as ArrayRef[PcrValuesEntry()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedPcrValuesEntry', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Confidentialcomputing::V1alpha1::Service::TpmAttestation::Quote::PcrValuesEntry'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringPcrValuesEntry', | ||
| 128 | as HashRef[PcrValuesEntry()]; | ||
| 129 | |||
| 130 | 1; | ||
| 131 | |||
| 132 | __END__ |