| 1 | package Google::Cloud::Servicehealth::V1::EventResources::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 'EventView', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'OrganizationEventView', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'Event', | ||
| 17 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::Event']; | ||
| 18 | |||
| 19 | coerce 'Event', | ||
| 20 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::Event'->new($_) }; | ||
| 21 | |||
| 22 | declare 'RepeatedEvent', | ||
| 23 | as ArrayRef[Event()]; | ||
| 24 | |||
| 25 | coerce 'RepeatedEvent', | ||
| 26 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::Event'->new($_) } @$_ ] }; | ||
| 27 | |||
| 28 | declare 'MapStringEvent', | ||
| 29 | as HashRef[Event()]; | ||
| 30 | |||
| 31 | declare 'EventCategory', | ||
| 32 | as (Int | Str); | ||
| 33 | |||
| 34 | declare 'DetailedCategory', | ||
| 35 | as (Int | Str); | ||
| 36 | |||
| 37 | declare 'State', | ||
| 38 | as (Int | Str); | ||
| 39 | |||
| 40 | declare 'DetailedState', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'Relevance', | ||
| 44 | as (Int | Str); | ||
| 45 | |||
| 46 | declare 'OrganizationEvent', | ||
| 47 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::OrganizationEvent']; | ||
| 48 | |||
| 49 | coerce 'OrganizationEvent', | ||
| 50 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::OrganizationEvent'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedOrganizationEvent', | ||
| 53 | as ArrayRef[OrganizationEvent()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedOrganizationEvent', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::OrganizationEvent'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringOrganizationEvent', | ||
| 59 | as HashRef[OrganizationEvent()]; | ||
| 60 | |||
| 61 | declare 'EventCategory', | ||
| 62 | as (Int | Str); | ||
| 63 | |||
| 64 | declare 'DetailedCategory', | ||
| 65 | as (Int | Str); | ||
| 66 | |||
| 67 | declare 'State', | ||
| 68 | as (Int | Str); | ||
| 69 | |||
| 70 | declare 'DetailedState', | ||
| 71 | as (Int | Str); | ||
| 72 | |||
| 73 | declare 'EventUpdate', | ||
| 74 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::EventUpdate']; | ||
| 75 | |||
| 76 | coerce 'EventUpdate', | ||
| 77 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::EventUpdate'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedEventUpdate', | ||
| 80 | as ArrayRef[EventUpdate()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedEventUpdate', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::EventUpdate'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringEventUpdate', | ||
| 86 | as HashRef[EventUpdate()]; | ||
| 87 | |||
| 88 | declare 'Location', | ||
| 89 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::Location']; | ||
| 90 | |||
| 91 | coerce 'Location', | ||
| 92 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::Location'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedLocation', | ||
| 95 | as ArrayRef[Location()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedLocation', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::Location'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringLocation', | ||
| 101 | as HashRef[Location()]; | ||
| 102 | |||
| 103 | declare 'Product', | ||
| 104 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::Product']; | ||
| 105 | |||
| 106 | coerce 'Product', | ||
| 107 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::Product'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedProduct', | ||
| 110 | as ArrayRef[Product()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedProduct', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::Product'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringProduct', | ||
| 116 | as HashRef[Product()]; | ||
| 117 | |||
| 118 | declare 'EventImpact', | ||
| 119 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::EventImpact']; | ||
| 120 | |||
| 121 | coerce 'EventImpact', | ||
| 122 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::EventImpact'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedEventImpact', | ||
| 125 | as ArrayRef[EventImpact()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedEventImpact', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::EventImpact'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringEventImpact', | ||
| 131 | as HashRef[EventImpact()]; | ||
| 132 | |||
| 133 | declare 'OrganizationImpact', | ||
| 134 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::OrganizationImpact']; | ||
| 135 | |||
| 136 | coerce 'OrganizationImpact', | ||
| 137 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::OrganizationImpact'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedOrganizationImpact', | ||
| 140 | as ArrayRef[OrganizationImpact()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedOrganizationImpact', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::OrganizationImpact'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringOrganizationImpact', | ||
| 146 | as HashRef[OrganizationImpact()]; | ||
| 147 | |||
| 148 | declare 'Asset', | ||
| 149 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::Asset']; | ||
| 150 | |||
| 151 | coerce 'Asset', | ||
| 152 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::Asset'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedAsset', | ||
| 155 | as ArrayRef[Asset()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedAsset', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::Asset'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringAsset', | ||
| 161 | as HashRef[Asset()]; | ||
| 162 | |||
| 163 | declare 'ListEventsRequest', | ||
| 164 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::ListEventsRequest']; | ||
| 165 | |||
| 166 | coerce 'ListEventsRequest', | ||
| 167 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::ListEventsRequest'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedListEventsRequest', | ||
| 170 | as ArrayRef[ListEventsRequest()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedListEventsRequest', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::ListEventsRequest'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringListEventsRequest', | ||
| 176 | as HashRef[ListEventsRequest()]; | ||
| 177 | |||
| 178 | declare 'ListEventsResponse', | ||
| 179 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::ListEventsResponse']; | ||
| 180 | |||
| 181 | coerce 'ListEventsResponse', | ||
| 182 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::ListEventsResponse'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedListEventsResponse', | ||
| 185 | as ArrayRef[ListEventsResponse()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedListEventsResponse', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::ListEventsResponse'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringListEventsResponse', | ||
| 191 | as HashRef[ListEventsResponse()]; | ||
| 192 | |||
| 193 | declare 'GetEventRequest', | ||
| 194 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::GetEventRequest']; | ||
| 195 | |||
| 196 | coerce 'GetEventRequest', | ||
| 197 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::GetEventRequest'->new($_) }; | ||
| 198 | |||
| 199 | declare 'RepeatedGetEventRequest', | ||
| 200 | as ArrayRef[GetEventRequest()]; | ||
| 201 | |||
| 202 | coerce 'RepeatedGetEventRequest', | ||
| 203 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::GetEventRequest'->new($_) } @$_ ] }; | ||
| 204 | |||
| 205 | declare 'MapStringGetEventRequest', | ||
| 206 | as HashRef[GetEventRequest()]; | ||
| 207 | |||
| 208 | declare 'ListOrganizationEventsRequest', | ||
| 209 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationEventsRequest']; | ||
| 210 | |||
| 211 | coerce 'ListOrganizationEventsRequest', | ||
| 212 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationEventsRequest'->new($_) }; | ||
| 213 | |||
| 214 | declare 'RepeatedListOrganizationEventsRequest', | ||
| 215 | as ArrayRef[ListOrganizationEventsRequest()]; | ||
| 216 | |||
| 217 | coerce 'RepeatedListOrganizationEventsRequest', | ||
| 218 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationEventsRequest'->new($_) } @$_ ] }; | ||
| 219 | |||
| 220 | declare 'MapStringListOrganizationEventsRequest', | ||
| 221 | as HashRef[ListOrganizationEventsRequest()]; | ||
| 222 | |||
| 223 | declare 'ListOrganizationEventsResponse', | ||
| 224 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationEventsResponse']; | ||
| 225 | |||
| 226 | coerce 'ListOrganizationEventsResponse', | ||
| 227 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationEventsResponse'->new($_) }; | ||
| 228 | |||
| 229 | declare 'RepeatedListOrganizationEventsResponse', | ||
| 230 | as ArrayRef[ListOrganizationEventsResponse()]; | ||
| 231 | |||
| 232 | coerce 'RepeatedListOrganizationEventsResponse', | ||
| 233 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationEventsResponse'->new($_) } @$_ ] }; | ||
| 234 | |||
| 235 | declare 'MapStringListOrganizationEventsResponse', | ||
| 236 | as HashRef[ListOrganizationEventsResponse()]; | ||
| 237 | |||
| 238 | declare 'GetOrganizationEventRequest', | ||
| 239 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::GetOrganizationEventRequest']; | ||
| 240 | |||
| 241 | coerce 'GetOrganizationEventRequest', | ||
| 242 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::GetOrganizationEventRequest'->new($_) }; | ||
| 243 | |||
| 244 | declare 'RepeatedGetOrganizationEventRequest', | ||
| 245 | as ArrayRef[GetOrganizationEventRequest()]; | ||
| 246 | |||
| 247 | coerce 'RepeatedGetOrganizationEventRequest', | ||
| 248 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::GetOrganizationEventRequest'->new($_) } @$_ ] }; | ||
| 249 | |||
| 250 | declare 'MapStringGetOrganizationEventRequest', | ||
| 251 | as HashRef[GetOrganizationEventRequest()]; | ||
| 252 | |||
| 253 | declare 'ListOrganizationImpactsRequest', | ||
| 254 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationImpactsRequest']; | ||
| 255 | |||
| 256 | coerce 'ListOrganizationImpactsRequest', | ||
| 257 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationImpactsRequest'->new($_) }; | ||
| 258 | |||
| 259 | declare 'RepeatedListOrganizationImpactsRequest', | ||
| 260 | as ArrayRef[ListOrganizationImpactsRequest()]; | ||
| 261 | |||
| 262 | coerce 'RepeatedListOrganizationImpactsRequest', | ||
| 263 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationImpactsRequest'->new($_) } @$_ ] }; | ||
| 264 | |||
| 265 | declare 'MapStringListOrganizationImpactsRequest', | ||
| 266 | as HashRef[ListOrganizationImpactsRequest()]; | ||
| 267 | |||
| 268 | declare 'ListOrganizationImpactsResponse', | ||
| 269 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationImpactsResponse']; | ||
| 270 | |||
| 271 | coerce 'ListOrganizationImpactsResponse', | ||
| 272 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationImpactsResponse'->new($_) }; | ||
| 273 | |||
| 274 | declare 'RepeatedListOrganizationImpactsResponse', | ||
| 275 | as ArrayRef[ListOrganizationImpactsResponse()]; | ||
| 276 | |||
| 277 | coerce 'RepeatedListOrganizationImpactsResponse', | ||
| 278 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::ListOrganizationImpactsResponse'->new($_) } @$_ ] }; | ||
| 279 | |||
| 280 | declare 'MapStringListOrganizationImpactsResponse', | ||
| 281 | as HashRef[ListOrganizationImpactsResponse()]; | ||
| 282 | |||
| 283 | declare 'GetOrganizationImpactRequest', | ||
| 284 | as InstanceOf['Google::Cloud::Servicehealth::V1::EventResources::GetOrganizationImpactRequest']; | ||
| 285 | |||
| 286 | coerce 'GetOrganizationImpactRequest', | ||
| 287 | from HashRef, via { 'Google::Cloud::Servicehealth::V1::EventResources::GetOrganizationImpactRequest'->new($_) }; | ||
| 288 | |||
| 289 | declare 'RepeatedGetOrganizationImpactRequest', | ||
| 290 | as ArrayRef[GetOrganizationImpactRequest()]; | ||
| 291 | |||
| 292 | coerce 'RepeatedGetOrganizationImpactRequest', | ||
| 293 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Servicehealth::V1::EventResources::GetOrganizationImpactRequest'->new($_) } @$_ ] }; | ||
| 294 | |||
| 295 | declare 'MapStringGetOrganizationImpactRequest', | ||
| 296 | as HashRef[GetOrganizationImpactRequest()]; | ||
| 297 | |||
| 298 | 1; | ||
| 299 | |||
| 300 | __END__ |