| 1 | package Google::Cloud::Advisorynotifications::V1::Service::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 'NotificationView', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'LocalizationState', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'NotificationType', | ||
| 17 | as (Int | Str); | ||
| 18 | |||
| 19 | declare 'Notification', | ||
| 20 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::Notification']; | ||
| 21 | |||
| 22 | coerce 'Notification', | ||
| 23 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::Notification'->new($_) }; | ||
| 24 | |||
| 25 | declare 'RepeatedNotification', | ||
| 26 | as ArrayRef[Notification()]; | ||
| 27 | |||
| 28 | coerce 'RepeatedNotification', | ||
| 29 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::Notification'->new($_) } @$_ ] }; | ||
| 30 | |||
| 31 | declare 'MapStringNotification', | ||
| 32 | as HashRef[Notification()]; | ||
| 33 | |||
| 34 | declare 'Text', | ||
| 35 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::Text']; | ||
| 36 | |||
| 37 | coerce 'Text', | ||
| 38 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::Text'->new($_) }; | ||
| 39 | |||
| 40 | declare 'RepeatedText', | ||
| 41 | as ArrayRef[Text()]; | ||
| 42 | |||
| 43 | coerce 'RepeatedText', | ||
| 44 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::Text'->new($_) } @$_ ] }; | ||
| 45 | |||
| 46 | declare 'MapStringText', | ||
| 47 | as HashRef[Text()]; | ||
| 48 | |||
| 49 | declare 'Subject', | ||
| 50 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::Subject']; | ||
| 51 | |||
| 52 | coerce 'Subject', | ||
| 53 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::Subject'->new($_) }; | ||
| 54 | |||
| 55 | declare 'RepeatedSubject', | ||
| 56 | as ArrayRef[Subject()]; | ||
| 57 | |||
| 58 | coerce 'RepeatedSubject', | ||
| 59 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::Subject'->new($_) } @$_ ] }; | ||
| 60 | |||
| 61 | declare 'MapStringSubject', | ||
| 62 | as HashRef[Subject()]; | ||
| 63 | |||
| 64 | declare 'Message', | ||
| 65 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::Message']; | ||
| 66 | |||
| 67 | coerce 'Message', | ||
| 68 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::Message'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedMessage', | ||
| 71 | as ArrayRef[Message()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedMessage', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::Message'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringMessage', | ||
| 77 | as HashRef[Message()]; | ||
| 78 | |||
| 79 | declare 'Body', | ||
| 80 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::Message::Body']; | ||
| 81 | |||
| 82 | coerce 'Body', | ||
| 83 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::Message::Body'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedBody', | ||
| 86 | as ArrayRef[Body()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedBody', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::Message::Body'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringBody', | ||
| 92 | as HashRef[Body()]; | ||
| 93 | |||
| 94 | declare 'Attachment', | ||
| 95 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::Attachment']; | ||
| 96 | |||
| 97 | coerce 'Attachment', | ||
| 98 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::Attachment'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedAttachment', | ||
| 101 | as ArrayRef[Attachment()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedAttachment', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::Attachment'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringAttachment', | ||
| 107 | as HashRef[Attachment()]; | ||
| 108 | |||
| 109 | declare 'Csv', | ||
| 110 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::Csv']; | ||
| 111 | |||
| 112 | coerce 'Csv', | ||
| 113 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::Csv'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedCsv', | ||
| 116 | as ArrayRef[Csv()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedCsv', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::Csv'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringCsv', | ||
| 122 | as HashRef[Csv()]; | ||
| 123 | |||
| 124 | declare 'CsvRow', | ||
| 125 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::Csv::CsvRow']; | ||
| 126 | |||
| 127 | coerce 'CsvRow', | ||
| 128 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::Csv::CsvRow'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedCsvRow', | ||
| 131 | as ArrayRef[CsvRow()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedCsvRow', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::Csv::CsvRow'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringCsvRow', | ||
| 137 | as HashRef[CsvRow()]; | ||
| 138 | |||
| 139 | declare 'ListNotificationsRequest', | ||
| 140 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::ListNotificationsRequest']; | ||
| 141 | |||
| 142 | coerce 'ListNotificationsRequest', | ||
| 143 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::ListNotificationsRequest'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedListNotificationsRequest', | ||
| 146 | as ArrayRef[ListNotificationsRequest()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedListNotificationsRequest', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::ListNotificationsRequest'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringListNotificationsRequest', | ||
| 152 | as HashRef[ListNotificationsRequest()]; | ||
| 153 | |||
| 154 | declare 'ListNotificationsResponse', | ||
| 155 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::ListNotificationsResponse']; | ||
| 156 | |||
| 157 | coerce 'ListNotificationsResponse', | ||
| 158 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::ListNotificationsResponse'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedListNotificationsResponse', | ||
| 161 | as ArrayRef[ListNotificationsResponse()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedListNotificationsResponse', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::ListNotificationsResponse'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringListNotificationsResponse', | ||
| 167 | as HashRef[ListNotificationsResponse()]; | ||
| 168 | |||
| 169 | declare 'GetNotificationRequest', | ||
| 170 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::GetNotificationRequest']; | ||
| 171 | |||
| 172 | coerce 'GetNotificationRequest', | ||
| 173 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::GetNotificationRequest'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedGetNotificationRequest', | ||
| 176 | as ArrayRef[GetNotificationRequest()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedGetNotificationRequest', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::GetNotificationRequest'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringGetNotificationRequest', | ||
| 182 | as HashRef[GetNotificationRequest()]; | ||
| 183 | |||
| 184 | declare 'Settings', | ||
| 185 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::Settings']; | ||
| 186 | |||
| 187 | coerce 'Settings', | ||
| 188 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::Settings'->new($_) }; | ||
| 189 | |||
| 190 | declare 'RepeatedSettings', | ||
| 191 | as ArrayRef[Settings()]; | ||
| 192 | |||
| 193 | coerce 'RepeatedSettings', | ||
| 194 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::Settings'->new($_) } @$_ ] }; | ||
| 195 | |||
| 196 | declare 'MapStringSettings', | ||
| 197 | as HashRef[Settings()]; | ||
| 198 | |||
| 199 | declare 'NotificationSettingsEntry', | ||
| 200 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::Settings::NotificationSettingsEntry']; | ||
| 201 | |||
| 202 | coerce 'NotificationSettingsEntry', | ||
| 203 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::Settings::NotificationSettingsEntry'->new($_) }; | ||
| 204 | |||
| 205 | declare 'RepeatedNotificationSettingsEntry', | ||
| 206 | as ArrayRef[NotificationSettingsEntry()]; | ||
| 207 | |||
| 208 | coerce 'RepeatedNotificationSettingsEntry', | ||
| 209 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::Settings::NotificationSettingsEntry'->new($_) } @$_ ] }; | ||
| 210 | |||
| 211 | declare 'MapStringNotificationSettingsEntry', | ||
| 212 | as HashRef[NotificationSettingsEntry()]; | ||
| 213 | |||
| 214 | declare 'NotificationSettings', | ||
| 215 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::NotificationSettings']; | ||
| 216 | |||
| 217 | coerce 'NotificationSettings', | ||
| 218 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::NotificationSettings'->new($_) }; | ||
| 219 | |||
| 220 | declare 'RepeatedNotificationSettings', | ||
| 221 | as ArrayRef[NotificationSettings()]; | ||
| 222 | |||
| 223 | coerce 'RepeatedNotificationSettings', | ||
| 224 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::NotificationSettings'->new($_) } @$_ ] }; | ||
| 225 | |||
| 226 | declare 'MapStringNotificationSettings', | ||
| 227 | as HashRef[NotificationSettings()]; | ||
| 228 | |||
| 229 | declare 'GetSettingsRequest', | ||
| 230 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::GetSettingsRequest']; | ||
| 231 | |||
| 232 | coerce 'GetSettingsRequest', | ||
| 233 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::GetSettingsRequest'->new($_) }; | ||
| 234 | |||
| 235 | declare 'RepeatedGetSettingsRequest', | ||
| 236 | as ArrayRef[GetSettingsRequest()]; | ||
| 237 | |||
| 238 | coerce 'RepeatedGetSettingsRequest', | ||
| 239 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::GetSettingsRequest'->new($_) } @$_ ] }; | ||
| 240 | |||
| 241 | declare 'MapStringGetSettingsRequest', | ||
| 242 | as HashRef[GetSettingsRequest()]; | ||
| 243 | |||
| 244 | declare 'UpdateSettingsRequest', | ||
| 245 | as InstanceOf['Google::Cloud::Advisorynotifications::V1::Service::UpdateSettingsRequest']; | ||
| 246 | |||
| 247 | coerce 'UpdateSettingsRequest', | ||
| 248 | from HashRef, via { 'Google::Cloud::Advisorynotifications::V1::Service::UpdateSettingsRequest'->new($_) }; | ||
| 249 | |||
| 250 | declare 'RepeatedUpdateSettingsRequest', | ||
| 251 | as ArrayRef[UpdateSettingsRequest()]; | ||
| 252 | |||
| 253 | coerce 'RepeatedUpdateSettingsRequest', | ||
| 254 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Advisorynotifications::V1::Service::UpdateSettingsRequest'->new($_) } @$_ ] }; | ||
| 255 | |||
| 256 | declare 'MapStringUpdateSettingsRequest', | ||
| 257 | as HashRef[UpdateSettingsRequest()]; | ||
| 258 | |||
| 259 | 1; | ||
| 260 | |||
| 261 | __END__ |