| 1 | package Google::Cloud::Retail::V2alpha::Project::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 'LoggingConfig', | ||
| 11 | as InstanceOf['Google::Cloud::Retail::V2alpha::Project::LoggingConfig']; | ||
| 12 | |||
| 13 | coerce 'LoggingConfig', | ||
| 14 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Project::LoggingConfig'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedLoggingConfig', | ||
| 17 | as ArrayRef[LoggingConfig()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedLoggingConfig', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Project::LoggingConfig'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringLoggingConfig', | ||
| 23 | as HashRef[LoggingConfig()]; | ||
| 24 | |||
| 25 | declare 'LoggingLevel', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'LogGenerationRule', | ||
| 29 | as InstanceOf['Google::Cloud::Retail::V2alpha::Project::LoggingConfig::LogGenerationRule']; | ||
| 30 | |||
| 31 | coerce 'LogGenerationRule', | ||
| 32 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Project::LoggingConfig::LogGenerationRule'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedLogGenerationRule', | ||
| 35 | as ArrayRef[LogGenerationRule()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedLogGenerationRule', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Project::LoggingConfig::LogGenerationRule'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringLogGenerationRule', | ||
| 41 | as HashRef[LogGenerationRule()]; | ||
| 42 | |||
| 43 | declare 'ServiceLogGenerationRule', | ||
| 44 | as InstanceOf['Google::Cloud::Retail::V2alpha::Project::LoggingConfig::ServiceLogGenerationRule']; | ||
| 45 | |||
| 46 | coerce 'ServiceLogGenerationRule', | ||
| 47 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Project::LoggingConfig::ServiceLogGenerationRule'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedServiceLogGenerationRule', | ||
| 50 | as ArrayRef[ServiceLogGenerationRule()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedServiceLogGenerationRule', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Project::LoggingConfig::ServiceLogGenerationRule'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringServiceLogGenerationRule', | ||
| 56 | as HashRef[ServiceLogGenerationRule()]; | ||
| 57 | |||
| 58 | declare 'Project', | ||
| 59 | as InstanceOf['Google::Cloud::Retail::V2alpha::Project::Project']; | ||
| 60 | |||
| 61 | coerce 'Project', | ||
| 62 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Project::Project'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedProject', | ||
| 65 | as ArrayRef[Project()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedProject', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Project::Project'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringProject', | ||
| 71 | as HashRef[Project()]; | ||
| 72 | |||
| 73 | declare 'AlertConfig', | ||
| 74 | as InstanceOf['Google::Cloud::Retail::V2alpha::Project::AlertConfig']; | ||
| 75 | |||
| 76 | coerce 'AlertConfig', | ||
| 77 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Project::AlertConfig'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedAlertConfig', | ||
| 80 | as ArrayRef[AlertConfig()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedAlertConfig', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Project::AlertConfig'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringAlertConfig', | ||
| 86 | as HashRef[AlertConfig()]; | ||
| 87 | |||
| 88 | declare 'AlertPolicy', | ||
| 89 | as InstanceOf['Google::Cloud::Retail::V2alpha::Project::AlertConfig::AlertPolicy']; | ||
| 90 | |||
| 91 | coerce 'AlertPolicy', | ||
| 92 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Project::AlertConfig::AlertPolicy'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedAlertPolicy', | ||
| 95 | as ArrayRef[AlertPolicy()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedAlertPolicy', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Project::AlertConfig::AlertPolicy'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringAlertPolicy', | ||
| 101 | as HashRef[AlertPolicy()]; | ||
| 102 | |||
| 103 | declare 'EnrollStatus', | ||
| 104 | as (Int | Str); | ||
| 105 | |||
| 106 | declare 'Recipient', | ||
| 107 | as InstanceOf['Google::Cloud::Retail::V2alpha::Project::AlertConfig::AlertPolicy::Recipient']; | ||
| 108 | |||
| 109 | coerce 'Recipient', | ||
| 110 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Project::AlertConfig::AlertPolicy::Recipient'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedRecipient', | ||
| 113 | as ArrayRef[Recipient()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedRecipient', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Project::AlertConfig::AlertPolicy::Recipient'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringRecipient', | ||
| 119 | as HashRef[Recipient()]; | ||
| 120 | |||
| 121 | 1; | ||
| 122 | |||
| 123 | __END__ |