| 1 | package Google::Cloud::Apphub::V1::Application::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 'Application', | ||
| 11 | as InstanceOf['Google::Cloud::Apphub::V1::Application::Application']; | ||
| 12 | |||
| 13 | coerce 'Application', | ||
| 14 | from HashRef, via { 'Google::Cloud::Apphub::V1::Application::Application'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedApplication', | ||
| 17 | as ArrayRef[Application()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedApplication', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apphub::V1::Application::Application'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringApplication', | ||
| 23 | as HashRef[Application()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'ApplicationType', | ||
| 29 | as InstanceOf['Google::Cloud::Apphub::V1::Application::ApplicationType']; | ||
| 30 | |||
| 31 | coerce 'ApplicationType', | ||
| 32 | from HashRef, via { 'Google::Cloud::Apphub::V1::Application::ApplicationType'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedApplicationType', | ||
| 35 | as ArrayRef[ApplicationType()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedApplicationType', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apphub::V1::Application::ApplicationType'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringApplicationType', | ||
| 41 | as HashRef[ApplicationType()]; | ||
| 42 | |||
| 43 | declare 'Type', | ||
| 44 | as (Int | Str); | ||
| 45 | |||
| 46 | declare 'Scope', | ||
| 47 | as InstanceOf['Google::Cloud::Apphub::V1::Application::Scope']; | ||
| 48 | |||
| 49 | coerce 'Scope', | ||
| 50 | from HashRef, via { 'Google::Cloud::Apphub::V1::Application::Scope'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedScope', | ||
| 53 | as ArrayRef[Scope()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedScope', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apphub::V1::Application::Scope'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringScope', | ||
| 59 | as HashRef[Scope()]; | ||
| 60 | |||
| 61 | declare 'Type', | ||
| 62 | as (Int | Str); | ||
| 63 | |||
| 64 | declare 'ApplicationProperties', | ||
| 65 | as InstanceOf['Google::Cloud::Apphub::V1::Application::ApplicationProperties']; | ||
| 66 | |||
| 67 | coerce 'ApplicationProperties', | ||
| 68 | from HashRef, via { 'Google::Cloud::Apphub::V1::Application::ApplicationProperties'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedApplicationProperties', | ||
| 71 | as ArrayRef[ApplicationProperties()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedApplicationProperties', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apphub::V1::Application::ApplicationProperties'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringApplicationProperties', | ||
| 77 | as HashRef[ApplicationProperties()]; | ||
| 78 | |||
| 79 | declare 'ExtendedMetadataEntry', | ||
| 80 | as InstanceOf['Google::Cloud::Apphub::V1::Application::ApplicationProperties::ExtendedMetadataEntry']; | ||
| 81 | |||
| 82 | coerce 'ExtendedMetadataEntry', | ||
| 83 | from HashRef, via { 'Google::Cloud::Apphub::V1::Application::ApplicationProperties::ExtendedMetadataEntry'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedExtendedMetadataEntry', | ||
| 86 | as ArrayRef[ExtendedMetadataEntry()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedExtendedMetadataEntry', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Apphub::V1::Application::ApplicationProperties::ExtendedMetadataEntry'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringExtendedMetadataEntry', | ||
| 92 | as HashRef[ExtendedMetadataEntry()]; | ||
| 93 | |||
| 94 | 1; | ||
| 95 | |||
| 96 | __END__ |