| 1 | package Google::Cloud::Run::V2::Build::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 'SubmitBuildRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Run::V2::Build::SubmitBuildRequest']; | ||
| 12 | |||
| 13 | coerce 'SubmitBuildRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Run::V2::Build::SubmitBuildRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedSubmitBuildRequest', | ||
| 17 | as ArrayRef[SubmitBuildRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedSubmitBuildRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Build::SubmitBuildRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringSubmitBuildRequest', | ||
| 23 | as HashRef[SubmitBuildRequest()]; | ||
| 24 | |||
| 25 | declare 'DockerBuild', | ||
| 26 | as InstanceOf['Google::Cloud::Run::V2::Build::SubmitBuildRequest::DockerBuild']; | ||
| 27 | |||
| 28 | coerce 'DockerBuild', | ||
| 29 | from HashRef, via { 'Google::Cloud::Run::V2::Build::SubmitBuildRequest::DockerBuild'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedDockerBuild', | ||
| 32 | as ArrayRef[DockerBuild()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedDockerBuild', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Build::SubmitBuildRequest::DockerBuild'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringDockerBuild', | ||
| 38 | as HashRef[DockerBuild()]; | ||
| 39 | |||
| 40 | declare 'BuildpacksBuild', | ||
| 41 | as InstanceOf['Google::Cloud::Run::V2::Build::SubmitBuildRequest::BuildpacksBuild']; | ||
| 42 | |||
| 43 | coerce 'BuildpacksBuild', | ||
| 44 | from HashRef, via { 'Google::Cloud::Run::V2::Build::SubmitBuildRequest::BuildpacksBuild'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedBuildpacksBuild', | ||
| 47 | as ArrayRef[BuildpacksBuild()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedBuildpacksBuild', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Build::SubmitBuildRequest::BuildpacksBuild'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringBuildpacksBuild', | ||
| 53 | as HashRef[BuildpacksBuild()]; | ||
| 54 | |||
| 55 | declare 'EnvironmentVariablesEntry', | ||
| 56 | as InstanceOf['Google::Cloud::Run::V2::Build::SubmitBuildRequest::BuildpacksBuild::EnvironmentVariablesEntry']; | ||
| 57 | |||
| 58 | coerce 'EnvironmentVariablesEntry', | ||
| 59 | from HashRef, via { 'Google::Cloud::Run::V2::Build::SubmitBuildRequest::BuildpacksBuild::EnvironmentVariablesEntry'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedEnvironmentVariablesEntry', | ||
| 62 | as ArrayRef[EnvironmentVariablesEntry()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedEnvironmentVariablesEntry', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Build::SubmitBuildRequest::BuildpacksBuild::EnvironmentVariablesEntry'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringEnvironmentVariablesEntry', | ||
| 68 | as HashRef[EnvironmentVariablesEntry()]; | ||
| 69 | |||
| 70 | declare 'SubmitBuildResponse', | ||
| 71 | as InstanceOf['Google::Cloud::Run::V2::Build::SubmitBuildResponse']; | ||
| 72 | |||
| 73 | coerce 'SubmitBuildResponse', | ||
| 74 | from HashRef, via { 'Google::Cloud::Run::V2::Build::SubmitBuildResponse'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedSubmitBuildResponse', | ||
| 77 | as ArrayRef[SubmitBuildResponse()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedSubmitBuildResponse', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Build::SubmitBuildResponse'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringSubmitBuildResponse', | ||
| 83 | as HashRef[SubmitBuildResponse()]; | ||
| 84 | |||
| 85 | declare 'StorageSource', | ||
| 86 | as InstanceOf['Google::Cloud::Run::V2::Build::StorageSource']; | ||
| 87 | |||
| 88 | coerce 'StorageSource', | ||
| 89 | from HashRef, via { 'Google::Cloud::Run::V2::Build::StorageSource'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedStorageSource', | ||
| 92 | as ArrayRef[StorageSource()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedStorageSource', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Build::StorageSource'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringStorageSource', | ||
| 98 | as HashRef[StorageSource()]; | ||
| 99 | |||
| 100 | 1; | ||
| 101 | |||
| 102 | __END__ |