| 1 | package Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::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 'OSPolicy', | ||
| 11 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy']; | ||
| 12 | |||
| 13 | coerce 'OSPolicy', | ||
| 14 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedOSPolicy', | ||
| 17 | as ArrayRef[OSPolicy()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedOSPolicy', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringOSPolicy', | ||
| 23 | as HashRef[OSPolicy()]; | ||
| 24 | |||
| 25 | declare 'Mode', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'Resource', | ||
| 29 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource']; | ||
| 30 | |||
| 31 | coerce 'Resource', | ||
| 32 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedResource', | ||
| 35 | as ArrayRef[Resource()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedResource', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringResource', | ||
| 41 | as HashRef[Resource()]; | ||
| 42 | |||
| 43 | declare 'File', | ||
| 44 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::File']; | ||
| 45 | |||
| 46 | coerce 'File', | ||
| 47 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::File'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedFile', | ||
| 50 | as ArrayRef[File()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedFile', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::File'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringFile', | ||
| 56 | as HashRef[File()]; | ||
| 57 | |||
| 58 | declare 'Remote', | ||
| 59 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::File::Remote']; | ||
| 60 | |||
| 61 | coerce 'Remote', | ||
| 62 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::File::Remote'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedRemote', | ||
| 65 | as ArrayRef[Remote()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedRemote', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::File::Remote'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringRemote', | ||
| 71 | as HashRef[Remote()]; | ||
| 72 | |||
| 73 | declare 'Gcs', | ||
| 74 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::File::Gcs']; | ||
| 75 | |||
| 76 | coerce 'Gcs', | ||
| 77 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::File::Gcs'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedGcs', | ||
| 80 | as ArrayRef[Gcs()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedGcs', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::File::Gcs'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringGcs', | ||
| 86 | as HashRef[Gcs()]; | ||
| 87 | |||
| 88 | declare 'PackageResource', | ||
| 89 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource']; | ||
| 90 | |||
| 91 | coerce 'PackageResource', | ||
| 92 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedPackageResource', | ||
| 95 | as ArrayRef[PackageResource()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedPackageResource', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringPackageResource', | ||
| 101 | as HashRef[PackageResource()]; | ||
| 102 | |||
| 103 | declare 'DesiredState', | ||
| 104 | as (Int | Str); | ||
| 105 | |||
| 106 | declare 'Deb', | ||
| 107 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::Deb']; | ||
| 108 | |||
| 109 | coerce 'Deb', | ||
| 110 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::Deb'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedDeb', | ||
| 113 | as ArrayRef[Deb()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedDeb', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::Deb'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringDeb', | ||
| 119 | as HashRef[Deb()]; | ||
| 120 | |||
| 121 | declare 'APT', | ||
| 122 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::APT']; | ||
| 123 | |||
| 124 | coerce 'APT', | ||
| 125 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::APT'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedAPT', | ||
| 128 | as ArrayRef[APT()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedAPT', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::APT'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringAPT', | ||
| 134 | as HashRef[APT()]; | ||
| 135 | |||
| 136 | declare 'RPM', | ||
| 137 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::RPM']; | ||
| 138 | |||
| 139 | coerce 'RPM', | ||
| 140 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::RPM'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedRPM', | ||
| 143 | as ArrayRef[RPM()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedRPM', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::RPM'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringRPM', | ||
| 149 | as HashRef[RPM()]; | ||
| 150 | |||
| 151 | declare 'YUM', | ||
| 152 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::YUM']; | ||
| 153 | |||
| 154 | coerce 'YUM', | ||
| 155 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::YUM'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedYUM', | ||
| 158 | as ArrayRef[YUM()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedYUM', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::YUM'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringYUM', | ||
| 164 | as HashRef[YUM()]; | ||
| 165 | |||
| 166 | declare 'Zypper', | ||
| 167 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::Zypper']; | ||
| 168 | |||
| 169 | coerce 'Zypper', | ||
| 170 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::Zypper'->new($_) }; | ||
| 171 | |||
| 172 | declare 'RepeatedZypper', | ||
| 173 | as ArrayRef[Zypper()]; | ||
| 174 | |||
| 175 | coerce 'RepeatedZypper', | ||
| 176 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::Zypper'->new($_) } @$_ ] }; | ||
| 177 | |||
| 178 | declare 'MapStringZypper', | ||
| 179 | as HashRef[Zypper()]; | ||
| 180 | |||
| 181 | declare 'GooGet', | ||
| 182 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::GooGet']; | ||
| 183 | |||
| 184 | coerce 'GooGet', | ||
| 185 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::GooGet'->new($_) }; | ||
| 186 | |||
| 187 | declare 'RepeatedGooGet', | ||
| 188 | as ArrayRef[GooGet()]; | ||
| 189 | |||
| 190 | coerce 'RepeatedGooGet', | ||
| 191 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::GooGet'->new($_) } @$_ ] }; | ||
| 192 | |||
| 193 | declare 'MapStringGooGet', | ||
| 194 | as HashRef[GooGet()]; | ||
| 195 | |||
| 196 | declare 'MSI', | ||
| 197 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::MSI']; | ||
| 198 | |||
| 199 | coerce 'MSI', | ||
| 200 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::MSI'->new($_) }; | ||
| 201 | |||
| 202 | declare 'RepeatedMSI', | ||
| 203 | as ArrayRef[MSI()]; | ||
| 204 | |||
| 205 | coerce 'RepeatedMSI', | ||
| 206 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::PackageResource::MSI'->new($_) } @$_ ] }; | ||
| 207 | |||
| 208 | declare 'MapStringMSI', | ||
| 209 | as HashRef[MSI()]; | ||
| 210 | |||
| 211 | declare 'RepositoryResource', | ||
| 212 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource']; | ||
| 213 | |||
| 214 | coerce 'RepositoryResource', | ||
| 215 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource'->new($_) }; | ||
| 216 | |||
| 217 | declare 'RepeatedRepositoryResource', | ||
| 218 | as ArrayRef[RepositoryResource()]; | ||
| 219 | |||
| 220 | coerce 'RepeatedRepositoryResource', | ||
| 221 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource'->new($_) } @$_ ] }; | ||
| 222 | |||
| 223 | declare 'MapStringRepositoryResource', | ||
| 224 | as HashRef[RepositoryResource()]; | ||
| 225 | |||
| 226 | declare 'AptRepository', | ||
| 227 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::AptRepository']; | ||
| 228 | |||
| 229 | coerce 'AptRepository', | ||
| 230 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::AptRepository'->new($_) }; | ||
| 231 | |||
| 232 | declare 'RepeatedAptRepository', | ||
| 233 | as ArrayRef[AptRepository()]; | ||
| 234 | |||
| 235 | coerce 'RepeatedAptRepository', | ||
| 236 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::AptRepository'->new($_) } @$_ ] }; | ||
| 237 | |||
| 238 | declare 'MapStringAptRepository', | ||
| 239 | as HashRef[AptRepository()]; | ||
| 240 | |||
| 241 | declare 'ArchiveType', | ||
| 242 | as (Int | Str); | ||
| 243 | |||
| 244 | declare 'YumRepository', | ||
| 245 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::YumRepository']; | ||
| 246 | |||
| 247 | coerce 'YumRepository', | ||
| 248 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::YumRepository'->new($_) }; | ||
| 249 | |||
| 250 | declare 'RepeatedYumRepository', | ||
| 251 | as ArrayRef[YumRepository()]; | ||
| 252 | |||
| 253 | coerce 'RepeatedYumRepository', | ||
| 254 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::YumRepository'->new($_) } @$_ ] }; | ||
| 255 | |||
| 256 | declare 'MapStringYumRepository', | ||
| 257 | as HashRef[YumRepository()]; | ||
| 258 | |||
| 259 | declare 'ZypperRepository', | ||
| 260 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::ZypperRepository']; | ||
| 261 | |||
| 262 | coerce 'ZypperRepository', | ||
| 263 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::ZypperRepository'->new($_) }; | ||
| 264 | |||
| 265 | declare 'RepeatedZypperRepository', | ||
| 266 | as ArrayRef[ZypperRepository()]; | ||
| 267 | |||
| 268 | coerce 'RepeatedZypperRepository', | ||
| 269 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::ZypperRepository'->new($_) } @$_ ] }; | ||
| 270 | |||
| 271 | declare 'MapStringZypperRepository', | ||
| 272 | as HashRef[ZypperRepository()]; | ||
| 273 | |||
| 274 | declare 'GooRepository', | ||
| 275 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::GooRepository']; | ||
| 276 | |||
| 277 | coerce 'GooRepository', | ||
| 278 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::GooRepository'->new($_) }; | ||
| 279 | |||
| 280 | declare 'RepeatedGooRepository', | ||
| 281 | as ArrayRef[GooRepository()]; | ||
| 282 | |||
| 283 | coerce 'RepeatedGooRepository', | ||
| 284 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::RepositoryResource::GooRepository'->new($_) } @$_ ] }; | ||
| 285 | |||
| 286 | declare 'MapStringGooRepository', | ||
| 287 | as HashRef[GooRepository()]; | ||
| 288 | |||
| 289 | declare 'ExecResource', | ||
| 290 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::ExecResource']; | ||
| 291 | |||
| 292 | coerce 'ExecResource', | ||
| 293 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::ExecResource'->new($_) }; | ||
| 294 | |||
| 295 | declare 'RepeatedExecResource', | ||
| 296 | as ArrayRef[ExecResource()]; | ||
| 297 | |||
| 298 | coerce 'RepeatedExecResource', | ||
| 299 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::ExecResource'->new($_) } @$_ ] }; | ||
| 300 | |||
| 301 | declare 'MapStringExecResource', | ||
| 302 | as HashRef[ExecResource()]; | ||
| 303 | |||
| 304 | declare 'Exec', | ||
| 305 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::ExecResource::Exec']; | ||
| 306 | |||
| 307 | coerce 'Exec', | ||
| 308 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::ExecResource::Exec'->new($_) }; | ||
| 309 | |||
| 310 | declare 'RepeatedExec', | ||
| 311 | as ArrayRef[Exec()]; | ||
| 312 | |||
| 313 | coerce 'RepeatedExec', | ||
| 314 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::ExecResource::Exec'->new($_) } @$_ ] }; | ||
| 315 | |||
| 316 | declare 'MapStringExec', | ||
| 317 | as HashRef[Exec()]; | ||
| 318 | |||
| 319 | declare 'Interpreter', | ||
| 320 | as (Int | Str); | ||
| 321 | |||
| 322 | declare 'FileResource', | ||
| 323 | as InstanceOf['Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::FileResource']; | ||
| 324 | |||
| 325 | coerce 'FileResource', | ||
| 326 | from HashRef, via { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::FileResource'->new($_) }; | ||
| 327 | |||
| 328 | declare 'RepeatedFileResource', | ||
| 329 | as ArrayRef[FileResource()]; | ||
| 330 | |||
| 331 | coerce 'RepeatedFileResource', | ||
| 332 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Osconfig::Agentendpoint::V1::OsPolicy::OSPolicy::Resource::FileResource'->new($_) } @$_ ] }; | ||
| 333 | |||
| 334 | declare 'MapStringFileResource', | ||
| 335 | as HashRef[FileResource()]; | ||
| 336 | |||
| 337 | declare 'DesiredState', | ||
| 338 | as (Int | Str); | ||
| 339 | |||
| 340 | 1; | ||
| 341 | |||
| 342 | __END__ |