| 1 | package Google::Cloud::Channel::V1::Entitlements::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 'Entitlement', | ||
| 11 | as InstanceOf['Google::Cloud::Channel::V1::Entitlements::Entitlement']; | ||
| 12 | |||
| 13 | coerce 'Entitlement', | ||
| 14 | from HashRef, via { 'Google::Cloud::Channel::V1::Entitlements::Entitlement'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedEntitlement', | ||
| 17 | as ArrayRef[Entitlement()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedEntitlement', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Entitlements::Entitlement'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringEntitlement', | ||
| 23 | as HashRef[Entitlement()]; | ||
| 24 | |||
| 25 | declare 'ProvisioningState', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'SuspensionReason', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'Parameter', | ||
| 32 | as InstanceOf['Google::Cloud::Channel::V1::Entitlements::Parameter']; | ||
| 33 | |||
| 34 | coerce 'Parameter', | ||
| 35 | from HashRef, via { 'Google::Cloud::Channel::V1::Entitlements::Parameter'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedParameter', | ||
| 38 | as ArrayRef[Parameter()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedParameter', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Entitlements::Parameter'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringParameter', | ||
| 44 | as HashRef[Parameter()]; | ||
| 45 | |||
| 46 | declare 'AssociationInfo', | ||
| 47 | as InstanceOf['Google::Cloud::Channel::V1::Entitlements::AssociationInfo']; | ||
| 48 | |||
| 49 | coerce 'AssociationInfo', | ||
| 50 | from HashRef, via { 'Google::Cloud::Channel::V1::Entitlements::AssociationInfo'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedAssociationInfo', | ||
| 53 | as ArrayRef[AssociationInfo()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedAssociationInfo', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Entitlements::AssociationInfo'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringAssociationInfo', | ||
| 59 | as HashRef[AssociationInfo()]; | ||
| 60 | |||
| 61 | declare 'ProvisionedService', | ||
| 62 | as InstanceOf['Google::Cloud::Channel::V1::Entitlements::ProvisionedService']; | ||
| 63 | |||
| 64 | coerce 'ProvisionedService', | ||
| 65 | from HashRef, via { 'Google::Cloud::Channel::V1::Entitlements::ProvisionedService'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedProvisionedService', | ||
| 68 | as ArrayRef[ProvisionedService()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedProvisionedService', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Entitlements::ProvisionedService'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringProvisionedService', | ||
| 74 | as HashRef[ProvisionedService()]; | ||
| 75 | |||
| 76 | declare 'CommitmentSettings', | ||
| 77 | as InstanceOf['Google::Cloud::Channel::V1::Entitlements::CommitmentSettings']; | ||
| 78 | |||
| 79 | coerce 'CommitmentSettings', | ||
| 80 | from HashRef, via { 'Google::Cloud::Channel::V1::Entitlements::CommitmentSettings'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedCommitmentSettings', | ||
| 83 | as ArrayRef[CommitmentSettings()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedCommitmentSettings', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Entitlements::CommitmentSettings'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringCommitmentSettings', | ||
| 89 | as HashRef[CommitmentSettings()]; | ||
| 90 | |||
| 91 | declare 'RenewalSettings', | ||
| 92 | as InstanceOf['Google::Cloud::Channel::V1::Entitlements::RenewalSettings']; | ||
| 93 | |||
| 94 | coerce 'RenewalSettings', | ||
| 95 | from HashRef, via { 'Google::Cloud::Channel::V1::Entitlements::RenewalSettings'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedRenewalSettings', | ||
| 98 | as ArrayRef[RenewalSettings()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedRenewalSettings', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Entitlements::RenewalSettings'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringRenewalSettings', | ||
| 104 | as HashRef[RenewalSettings()]; | ||
| 105 | |||
| 106 | declare 'TrialSettings', | ||
| 107 | as InstanceOf['Google::Cloud::Channel::V1::Entitlements::TrialSettings']; | ||
| 108 | |||
| 109 | coerce 'TrialSettings', | ||
| 110 | from HashRef, via { 'Google::Cloud::Channel::V1::Entitlements::TrialSettings'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedTrialSettings', | ||
| 113 | as ArrayRef[TrialSettings()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedTrialSettings', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Entitlements::TrialSettings'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringTrialSettings', | ||
| 119 | as HashRef[TrialSettings()]; | ||
| 120 | |||
| 121 | declare 'TransferableSku', | ||
| 122 | as InstanceOf['Google::Cloud::Channel::V1::Entitlements::TransferableSku']; | ||
| 123 | |||
| 124 | coerce 'TransferableSku', | ||
| 125 | from HashRef, via { 'Google::Cloud::Channel::V1::Entitlements::TransferableSku'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedTransferableSku', | ||
| 128 | as ArrayRef[TransferableSku()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedTransferableSku', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Entitlements::TransferableSku'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringTransferableSku', | ||
| 134 | as HashRef[TransferableSku()]; | ||
| 135 | |||
| 136 | declare 'TransferEligibility', | ||
| 137 | as InstanceOf['Google::Cloud::Channel::V1::Entitlements::TransferEligibility']; | ||
| 138 | |||
| 139 | coerce 'TransferEligibility', | ||
| 140 | from HashRef, via { 'Google::Cloud::Channel::V1::Entitlements::TransferEligibility'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedTransferEligibility', | ||
| 143 | as ArrayRef[TransferEligibility()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedTransferEligibility', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Channel::V1::Entitlements::TransferEligibility'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringTransferEligibility', | ||
| 149 | as HashRef[TransferEligibility()]; | ||
| 150 | |||
| 151 | declare 'Reason', | ||
| 152 | as (Int | Str); | ||
| 153 | |||
| 154 | 1; | ||
| 155 | |||
| 156 | __END__ |