| 1 | package Google::Cloud::Notebooks::V1::Instance::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 'ReservationAffinity', | ||
| 11 | as InstanceOf['Google::Cloud::Notebooks::V1::Instance::ReservationAffinity']; | ||
| 12 | |||
| 13 | coerce 'ReservationAffinity', | ||
| 14 | from HashRef, via { 'Google::Cloud::Notebooks::V1::Instance::ReservationAffinity'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedReservationAffinity', | ||
| 17 | as ArrayRef[ReservationAffinity()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedReservationAffinity', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Instance::ReservationAffinity'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringReservationAffinity', | ||
| 23 | as HashRef[ReservationAffinity()]; | ||
| 24 | |||
| 25 | declare 'Type', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'Instance', | ||
| 29 | as InstanceOf['Google::Cloud::Notebooks::V1::Instance::Instance']; | ||
| 30 | |||
| 31 | coerce 'Instance', | ||
| 32 | from HashRef, via { 'Google::Cloud::Notebooks::V1::Instance::Instance'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedInstance', | ||
| 35 | as ArrayRef[Instance()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedInstance', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Instance::Instance'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringInstance', | ||
| 41 | as HashRef[Instance()]; | ||
| 42 | |||
| 43 | declare 'AcceleratorType', | ||
| 44 | as (Int | Str); | ||
| 45 | |||
| 46 | declare 'State', | ||
| 47 | as (Int | Str); | ||
| 48 | |||
| 49 | declare 'DiskType', | ||
| 50 | as (Int | Str); | ||
| 51 | |||
| 52 | declare 'DiskEncryption', | ||
| 53 | as (Int | Str); | ||
| 54 | |||
| 55 | declare 'NicType', | ||
| 56 | as (Int | Str); | ||
| 57 | |||
| 58 | declare 'AcceleratorConfig', | ||
| 59 | as InstanceOf['Google::Cloud::Notebooks::V1::Instance::Instance::AcceleratorConfig']; | ||
| 60 | |||
| 61 | coerce 'AcceleratorConfig', | ||
| 62 | from HashRef, via { 'Google::Cloud::Notebooks::V1::Instance::Instance::AcceleratorConfig'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedAcceleratorConfig', | ||
| 65 | as ArrayRef[AcceleratorConfig()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedAcceleratorConfig', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Instance::Instance::AcceleratorConfig'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringAcceleratorConfig', | ||
| 71 | as HashRef[AcceleratorConfig()]; | ||
| 72 | |||
| 73 | declare 'Disk', | ||
| 74 | as InstanceOf['Google::Cloud::Notebooks::V1::Instance::Instance::Disk']; | ||
| 75 | |||
| 76 | coerce 'Disk', | ||
| 77 | from HashRef, via { 'Google::Cloud::Notebooks::V1::Instance::Instance::Disk'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedDisk', | ||
| 80 | as ArrayRef[Disk()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedDisk', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Instance::Instance::Disk'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringDisk', | ||
| 86 | as HashRef[Disk()]; | ||
| 87 | |||
| 88 | declare 'GuestOsFeature', | ||
| 89 | as InstanceOf['Google::Cloud::Notebooks::V1::Instance::Instance::Disk::GuestOsFeature']; | ||
| 90 | |||
| 91 | coerce 'GuestOsFeature', | ||
| 92 | from HashRef, via { 'Google::Cloud::Notebooks::V1::Instance::Instance::Disk::GuestOsFeature'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedGuestOsFeature', | ||
| 95 | as ArrayRef[GuestOsFeature()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedGuestOsFeature', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Instance::Instance::Disk::GuestOsFeature'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringGuestOsFeature', | ||
| 101 | as HashRef[GuestOsFeature()]; | ||
| 102 | |||
| 103 | declare 'ShieldedInstanceConfig', | ||
| 104 | as InstanceOf['Google::Cloud::Notebooks::V1::Instance::Instance::ShieldedInstanceConfig']; | ||
| 105 | |||
| 106 | coerce 'ShieldedInstanceConfig', | ||
| 107 | from HashRef, via { 'Google::Cloud::Notebooks::V1::Instance::Instance::ShieldedInstanceConfig'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedShieldedInstanceConfig', | ||
| 110 | as ArrayRef[ShieldedInstanceConfig()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedShieldedInstanceConfig', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Instance::Instance::ShieldedInstanceConfig'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringShieldedInstanceConfig', | ||
| 116 | as HashRef[ShieldedInstanceConfig()]; | ||
| 117 | |||
| 118 | declare 'UpgradeHistoryEntry', | ||
| 119 | as InstanceOf['Google::Cloud::Notebooks::V1::Instance::Instance::UpgradeHistoryEntry']; | ||
| 120 | |||
| 121 | coerce 'UpgradeHistoryEntry', | ||
| 122 | from HashRef, via { 'Google::Cloud::Notebooks::V1::Instance::Instance::UpgradeHistoryEntry'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedUpgradeHistoryEntry', | ||
| 125 | as ArrayRef[UpgradeHistoryEntry()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedUpgradeHistoryEntry', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Instance::Instance::UpgradeHistoryEntry'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringUpgradeHistoryEntry', | ||
| 131 | as HashRef[UpgradeHistoryEntry()]; | ||
| 132 | |||
| 133 | declare 'State', | ||
| 134 | as (Int | Str); | ||
| 135 | |||
| 136 | declare 'Action', | ||
| 137 | as (Int | Str); | ||
| 138 | |||
| 139 | declare 'LabelsEntry', | ||
| 140 | as InstanceOf['Google::Cloud::Notebooks::V1::Instance::Instance::LabelsEntry']; | ||
| 141 | |||
| 142 | coerce 'LabelsEntry', | ||
| 143 | from HashRef, via { 'Google::Cloud::Notebooks::V1::Instance::Instance::LabelsEntry'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedLabelsEntry', | ||
| 146 | as ArrayRef[LabelsEntry()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedLabelsEntry', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Instance::Instance::LabelsEntry'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringLabelsEntry', | ||
| 152 | as HashRef[LabelsEntry()]; | ||
| 153 | |||
| 154 | declare 'MetadataEntry', | ||
| 155 | as InstanceOf['Google::Cloud::Notebooks::V1::Instance::Instance::MetadataEntry']; | ||
| 156 | |||
| 157 | coerce 'MetadataEntry', | ||
| 158 | from HashRef, via { 'Google::Cloud::Notebooks::V1::Instance::Instance::MetadataEntry'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedMetadataEntry', | ||
| 161 | as ArrayRef[MetadataEntry()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedMetadataEntry', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Notebooks::V1::Instance::Instance::MetadataEntry'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringMetadataEntry', | ||
| 167 | as HashRef[MetadataEntry()]; | ||
| 168 | |||
| 169 | 1; | ||
| 170 | |||
| 171 | __END__ |