| 1 | package Google::Cloud::Dataplex::V1::DataDiscovery::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 'DataDiscoverySpec', | ||
| 11 | as InstanceOf['Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec']; | ||
| 12 | |||
| 13 | coerce 'DataDiscoverySpec', | ||
| 14 | from HashRef, via { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDataDiscoverySpec', | ||
| 17 | as ArrayRef[DataDiscoverySpec()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDataDiscoverySpec', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDataDiscoverySpec', | ||
| 23 | as HashRef[DataDiscoverySpec()]; | ||
| 24 | |||
| 25 | declare 'BigQueryPublishingConfig', | ||
| 26 | as InstanceOf['Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::BigQueryPublishingConfig']; | ||
| 27 | |||
| 28 | coerce 'BigQueryPublishingConfig', | ||
| 29 | from HashRef, via { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::BigQueryPublishingConfig'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedBigQueryPublishingConfig', | ||
| 32 | as ArrayRef[BigQueryPublishingConfig()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedBigQueryPublishingConfig', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::BigQueryPublishingConfig'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringBigQueryPublishingConfig', | ||
| 38 | as HashRef[BigQueryPublishingConfig()]; | ||
| 39 | |||
| 40 | declare 'TableType', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'StorageConfig', | ||
| 44 | as InstanceOf['Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig']; | ||
| 45 | |||
| 46 | coerce 'StorageConfig', | ||
| 47 | from HashRef, via { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedStorageConfig', | ||
| 50 | as ArrayRef[StorageConfig()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedStorageConfig', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringStorageConfig', | ||
| 56 | as HashRef[StorageConfig()]; | ||
| 57 | |||
| 58 | declare 'CsvOptions', | ||
| 59 | as InstanceOf['Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig::CsvOptions']; | ||
| 60 | |||
| 61 | coerce 'CsvOptions', | ||
| 62 | from HashRef, via { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig::CsvOptions'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedCsvOptions', | ||
| 65 | as ArrayRef[CsvOptions()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedCsvOptions', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig::CsvOptions'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringCsvOptions', | ||
| 71 | as HashRef[CsvOptions()]; | ||
| 72 | |||
| 73 | declare 'JsonOptions', | ||
| 74 | as InstanceOf['Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig::JsonOptions']; | ||
| 75 | |||
| 76 | coerce 'JsonOptions', | ||
| 77 | from HashRef, via { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig::JsonOptions'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedJsonOptions', | ||
| 80 | as ArrayRef[JsonOptions()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedJsonOptions', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig::JsonOptions'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringJsonOptions', | ||
| 86 | as HashRef[JsonOptions()]; | ||
| 87 | |||
| 88 | declare 'UnstructuredDataOptions', | ||
| 89 | as InstanceOf['Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig::UnstructuredDataOptions']; | ||
| 90 | |||
| 91 | coerce 'UnstructuredDataOptions', | ||
| 92 | from HashRef, via { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig::UnstructuredDataOptions'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedUnstructuredDataOptions', | ||
| 95 | as ArrayRef[UnstructuredDataOptions()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedUnstructuredDataOptions', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoverySpec::StorageConfig::UnstructuredDataOptions'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringUnstructuredDataOptions', | ||
| 101 | as HashRef[UnstructuredDataOptions()]; | ||
| 102 | |||
| 103 | declare 'DataDiscoveryResult', | ||
| 104 | as InstanceOf['Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoveryResult']; | ||
| 105 | |||
| 106 | coerce 'DataDiscoveryResult', | ||
| 107 | from HashRef, via { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoveryResult'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedDataDiscoveryResult', | ||
| 110 | as ArrayRef[DataDiscoveryResult()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedDataDiscoveryResult', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoveryResult'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringDataDiscoveryResult', | ||
| 116 | as HashRef[DataDiscoveryResult()]; | ||
| 117 | |||
| 118 | declare 'BigQueryPublishing', | ||
| 119 | as InstanceOf['Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoveryResult::BigQueryPublishing']; | ||
| 120 | |||
| 121 | coerce 'BigQueryPublishing', | ||
| 122 | from HashRef, via { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoveryResult::BigQueryPublishing'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedBigQueryPublishing', | ||
| 125 | as ArrayRef[BigQueryPublishing()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedBigQueryPublishing', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoveryResult::BigQueryPublishing'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringBigQueryPublishing', | ||
| 131 | as HashRef[BigQueryPublishing()]; | ||
| 132 | |||
| 133 | declare 'ScanStatistics', | ||
| 134 | as InstanceOf['Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoveryResult::ScanStatistics']; | ||
| 135 | |||
| 136 | coerce 'ScanStatistics', | ||
| 137 | from HashRef, via { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoveryResult::ScanStatistics'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedScanStatistics', | ||
| 140 | as ArrayRef[ScanStatistics()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedScanStatistics', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::DataDiscovery::DataDiscoveryResult::ScanStatistics'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringScanStatistics', | ||
| 146 | as HashRef[ScanStatistics()]; | ||
| 147 | |||
| 148 | 1; | ||
| 149 | |||
| 150 | __END__ |