| 1 | package Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::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 'Job', | ||
| 11 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Job']; | ||
| 12 | |||
| 13 | coerce 'Job', | ||
| 14 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Job'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedJob', | ||
| 17 | as ArrayRef[Job()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedJob', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Job'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringJob', | ||
| 23 | as HashRef[Job()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'BucketOperation', | ||
| 29 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketOperation']; | ||
| 30 | |||
| 31 | coerce 'BucketOperation', | ||
| 32 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketOperation'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedBucketOperation', | ||
| 35 | as ArrayRef[BucketOperation()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedBucketOperation', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketOperation'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringBucketOperation', | ||
| 41 | as HashRef[BucketOperation()]; | ||
| 42 | |||
| 43 | declare 'State', | ||
| 44 | as (Int | Str); | ||
| 45 | |||
| 46 | declare 'BucketList', | ||
| 47 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketList']; | ||
| 48 | |||
| 49 | coerce 'BucketList', | ||
| 50 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketList'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedBucketList', | ||
| 53 | as ArrayRef[BucketList()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedBucketList', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketList'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringBucketList', | ||
| 59 | as HashRef[BucketList()]; | ||
| 60 | |||
| 61 | declare 'Bucket', | ||
| 62 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketList::Bucket']; | ||
| 63 | |||
| 64 | coerce 'Bucket', | ||
| 65 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketList::Bucket'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedBucket', | ||
| 68 | as ArrayRef[Bucket()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedBucket', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketList::Bucket'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringBucket', | ||
| 74 | as HashRef[Bucket()]; | ||
| 75 | |||
| 76 | declare 'Manifest', | ||
| 77 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Manifest']; | ||
| 78 | |||
| 79 | coerce 'Manifest', | ||
| 80 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Manifest'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedManifest', | ||
| 83 | as ArrayRef[Manifest()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedManifest', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Manifest'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringManifest', | ||
| 89 | as HashRef[Manifest()]; | ||
| 90 | |||
| 91 | declare 'PrefixList', | ||
| 92 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PrefixList']; | ||
| 93 | |||
| 94 | coerce 'PrefixList', | ||
| 95 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PrefixList'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedPrefixList', | ||
| 98 | as ArrayRef[PrefixList()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedPrefixList', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PrefixList'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringPrefixList', | ||
| 104 | as HashRef[PrefixList()]; | ||
| 105 | |||
| 106 | declare 'PutObjectHold', | ||
| 107 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutObjectHold']; | ||
| 108 | |||
| 109 | coerce 'PutObjectHold', | ||
| 110 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutObjectHold'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedPutObjectHold', | ||
| 113 | as ArrayRef[PutObjectHold()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedPutObjectHold', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutObjectHold'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringPutObjectHold', | ||
| 119 | as HashRef[PutObjectHold()]; | ||
| 120 | |||
| 121 | declare 'HoldStatus', | ||
| 122 | as (Int | Str); | ||
| 123 | |||
| 124 | declare 'DeleteObject', | ||
| 125 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::DeleteObject']; | ||
| 126 | |||
| 127 | coerce 'DeleteObject', | ||
| 128 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::DeleteObject'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedDeleteObject', | ||
| 131 | as ArrayRef[DeleteObject()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedDeleteObject', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::DeleteObject'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringDeleteObject', | ||
| 137 | as HashRef[DeleteObject()]; | ||
| 138 | |||
| 139 | declare 'RewriteObject', | ||
| 140 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::RewriteObject']; | ||
| 141 | |||
| 142 | coerce 'RewriteObject', | ||
| 143 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::RewriteObject'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedRewriteObject', | ||
| 146 | as ArrayRef[RewriteObject()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedRewriteObject', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::RewriteObject'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringRewriteObject', | ||
| 152 | as HashRef[RewriteObject()]; | ||
| 153 | |||
| 154 | declare 'ObjectRetention', | ||
| 155 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ObjectRetention']; | ||
| 156 | |||
| 157 | coerce 'ObjectRetention', | ||
| 158 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ObjectRetention'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedObjectRetention', | ||
| 161 | as ArrayRef[ObjectRetention()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedObjectRetention', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ObjectRetention'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringObjectRetention', | ||
| 167 | as HashRef[ObjectRetention()]; | ||
| 168 | |||
| 169 | declare 'RetentionMode', | ||
| 170 | as (Int | Str); | ||
| 171 | |||
| 172 | declare 'PutMetadata', | ||
| 173 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutMetadata']; | ||
| 174 | |||
| 175 | coerce 'PutMetadata', | ||
| 176 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutMetadata'->new($_) }; | ||
| 177 | |||
| 178 | declare 'RepeatedPutMetadata', | ||
| 179 | as ArrayRef[PutMetadata()]; | ||
| 180 | |||
| 181 | coerce 'RepeatedPutMetadata', | ||
| 182 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutMetadata'->new($_) } @$_ ] }; | ||
| 183 | |||
| 184 | declare 'MapStringPutMetadata', | ||
| 185 | as HashRef[PutMetadata()]; | ||
| 186 | |||
| 187 | declare 'CustomMetadataEntry', | ||
| 188 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutMetadata::CustomMetadataEntry']; | ||
| 189 | |||
| 190 | coerce 'CustomMetadataEntry', | ||
| 191 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutMetadata::CustomMetadataEntry'->new($_) }; | ||
| 192 | |||
| 193 | declare 'RepeatedCustomMetadataEntry', | ||
| 194 | as ArrayRef[CustomMetadataEntry()]; | ||
| 195 | |||
| 196 | coerce 'RepeatedCustomMetadataEntry', | ||
| 197 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutMetadata::CustomMetadataEntry'->new($_) } @$_ ] }; | ||
| 198 | |||
| 199 | declare 'MapStringCustomMetadataEntry', | ||
| 200 | as HashRef[CustomMetadataEntry()]; | ||
| 201 | |||
| 202 | declare 'ObjectCustomContextPayload', | ||
| 203 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ObjectCustomContextPayload']; | ||
| 204 | |||
| 205 | coerce 'ObjectCustomContextPayload', | ||
| 206 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ObjectCustomContextPayload'->new($_) }; | ||
| 207 | |||
| 208 | declare 'RepeatedObjectCustomContextPayload', | ||
| 209 | as ArrayRef[ObjectCustomContextPayload()]; | ||
| 210 | |||
| 211 | coerce 'RepeatedObjectCustomContextPayload', | ||
| 212 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ObjectCustomContextPayload'->new($_) } @$_ ] }; | ||
| 213 | |||
| 214 | declare 'MapStringObjectCustomContextPayload', | ||
| 215 | as HashRef[ObjectCustomContextPayload()]; | ||
| 216 | |||
| 217 | declare 'CustomContextUpdates', | ||
| 218 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::CustomContextUpdates']; | ||
| 219 | |||
| 220 | coerce 'CustomContextUpdates', | ||
| 221 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::CustomContextUpdates'->new($_) }; | ||
| 222 | |||
| 223 | declare 'RepeatedCustomContextUpdates', | ||
| 224 | as ArrayRef[CustomContextUpdates()]; | ||
| 225 | |||
| 226 | coerce 'RepeatedCustomContextUpdates', | ||
| 227 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::CustomContextUpdates'->new($_) } @$_ ] }; | ||
| 228 | |||
| 229 | declare 'MapStringCustomContextUpdates', | ||
| 230 | as HashRef[CustomContextUpdates()]; | ||
| 231 | |||
| 232 | declare 'UpdatesEntry', | ||
| 233 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::CustomContextUpdates::UpdatesEntry']; | ||
| 234 | |||
| 235 | coerce 'UpdatesEntry', | ||
| 236 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::CustomContextUpdates::UpdatesEntry'->new($_) }; | ||
| 237 | |||
| 238 | declare 'RepeatedUpdatesEntry', | ||
| 239 | as ArrayRef[UpdatesEntry()]; | ||
| 240 | |||
| 241 | coerce 'RepeatedUpdatesEntry', | ||
| 242 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::CustomContextUpdates::UpdatesEntry'->new($_) } @$_ ] }; | ||
| 243 | |||
| 244 | declare 'MapStringUpdatesEntry', | ||
| 245 | as HashRef[UpdatesEntry()]; | ||
| 246 | |||
| 247 | declare 'UpdateObjectCustomContext', | ||
| 248 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::UpdateObjectCustomContext']; | ||
| 249 | |||
| 250 | coerce 'UpdateObjectCustomContext', | ||
| 251 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::UpdateObjectCustomContext'->new($_) }; | ||
| 252 | |||
| 253 | declare 'RepeatedUpdateObjectCustomContext', | ||
| 254 | as ArrayRef[UpdateObjectCustomContext()]; | ||
| 255 | |||
| 256 | coerce 'RepeatedUpdateObjectCustomContext', | ||
| 257 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::UpdateObjectCustomContext'->new($_) } @$_ ] }; | ||
| 258 | |||
| 259 | declare 'MapStringUpdateObjectCustomContext', | ||
| 260 | as HashRef[UpdateObjectCustomContext()]; | ||
| 261 | |||
| 262 | declare 'ErrorSummary', | ||
| 263 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ErrorSummary']; | ||
| 264 | |||
| 265 | coerce 'ErrorSummary', | ||
| 266 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ErrorSummary'->new($_) }; | ||
| 267 | |||
| 268 | declare 'RepeatedErrorSummary', | ||
| 269 | as ArrayRef[ErrorSummary()]; | ||
| 270 | |||
| 271 | coerce 'RepeatedErrorSummary', | ||
| 272 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ErrorSummary'->new($_) } @$_ ] }; | ||
| 273 | |||
| 274 | declare 'MapStringErrorSummary', | ||
| 275 | as HashRef[ErrorSummary()]; | ||
| 276 | |||
| 277 | declare 'ErrorLogEntry', | ||
| 278 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ErrorLogEntry']; | ||
| 279 | |||
| 280 | coerce 'ErrorLogEntry', | ||
| 281 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ErrorLogEntry'->new($_) }; | ||
| 282 | |||
| 283 | declare 'RepeatedErrorLogEntry', | ||
| 284 | as ArrayRef[ErrorLogEntry()]; | ||
| 285 | |||
| 286 | coerce 'RepeatedErrorLogEntry', | ||
| 287 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ErrorLogEntry'->new($_) } @$_ ] }; | ||
| 288 | |||
| 289 | declare 'MapStringErrorLogEntry', | ||
| 290 | as HashRef[ErrorLogEntry()]; | ||
| 291 | |||
| 292 | declare 'Counters', | ||
| 293 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Counters']; | ||
| 294 | |||
| 295 | coerce 'Counters', | ||
| 296 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Counters'->new($_) }; | ||
| 297 | |||
| 298 | declare 'RepeatedCounters', | ||
| 299 | as ArrayRef[Counters()]; | ||
| 300 | |||
| 301 | coerce 'RepeatedCounters', | ||
| 302 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Counters'->new($_) } @$_ ] }; | ||
| 303 | |||
| 304 | declare 'MapStringCounters', | ||
| 305 | as HashRef[Counters()]; | ||
| 306 | |||
| 307 | declare 'LoggingConfig', | ||
| 308 | as InstanceOf['Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::LoggingConfig']; | ||
| 309 | |||
| 310 | coerce 'LoggingConfig', | ||
| 311 | from HashRef, via { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::LoggingConfig'->new($_) }; | ||
| 312 | |||
| 313 | declare 'RepeatedLoggingConfig', | ||
| 314 | as ArrayRef[LoggingConfig()]; | ||
| 315 | |||
| 316 | coerce 'RepeatedLoggingConfig', | ||
| 317 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::LoggingConfig'->new($_) } @$_ ] }; | ||
| 318 | |||
| 319 | declare 'MapStringLoggingConfig', | ||
| 320 | as HashRef[LoggingConfig()]; | ||
| 321 | |||
| 322 | declare 'LoggableAction', | ||
| 323 | as (Int | Str); | ||
| 324 | |||
| 325 | declare 'LoggableActionState', | ||
| 326 | as (Int | Str); | ||
| 327 | |||
| 328 | 1; | ||
| 329 | |||
| 330 | __END__ |