| 1 | package Google::Cloud::Connectors::V1::ConnectorVersion::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 'ConnectorVersionView', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'ConnectorVersion', | ||
| 14 | as InstanceOf['Google::Cloud::Connectors::V1::ConnectorVersion::ConnectorVersion']; | ||
| 15 | |||
| 16 | coerce 'ConnectorVersion', | ||
| 17 | from HashRef, via { 'Google::Cloud::Connectors::V1::ConnectorVersion::ConnectorVersion'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedConnectorVersion', | ||
| 20 | as ArrayRef[ConnectorVersion()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedConnectorVersion', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::ConnectorVersion::ConnectorVersion'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringConnectorVersion', | ||
| 26 | as HashRef[ConnectorVersion()]; | ||
| 27 | |||
| 28 | declare 'LabelsEntry', | ||
| 29 | as InstanceOf['Google::Cloud::Connectors::V1::ConnectorVersion::ConnectorVersion::LabelsEntry']; | ||
| 30 | |||
| 31 | coerce 'LabelsEntry', | ||
| 32 | from HashRef, via { 'Google::Cloud::Connectors::V1::ConnectorVersion::ConnectorVersion::LabelsEntry'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedLabelsEntry', | ||
| 35 | as ArrayRef[LabelsEntry()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedLabelsEntry', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::ConnectorVersion::ConnectorVersion::LabelsEntry'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringLabelsEntry', | ||
| 41 | as HashRef[LabelsEntry()]; | ||
| 42 | |||
| 43 | declare 'GetConnectorVersionRequest', | ||
| 44 | as InstanceOf['Google::Cloud::Connectors::V1::ConnectorVersion::GetConnectorVersionRequest']; | ||
| 45 | |||
| 46 | coerce 'GetConnectorVersionRequest', | ||
| 47 | from HashRef, via { 'Google::Cloud::Connectors::V1::ConnectorVersion::GetConnectorVersionRequest'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedGetConnectorVersionRequest', | ||
| 50 | as ArrayRef[GetConnectorVersionRequest()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedGetConnectorVersionRequest', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::ConnectorVersion::GetConnectorVersionRequest'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringGetConnectorVersionRequest', | ||
| 56 | as HashRef[GetConnectorVersionRequest()]; | ||
| 57 | |||
| 58 | declare 'ListConnectorVersionsRequest', | ||
| 59 | as InstanceOf['Google::Cloud::Connectors::V1::ConnectorVersion::ListConnectorVersionsRequest']; | ||
| 60 | |||
| 61 | coerce 'ListConnectorVersionsRequest', | ||
| 62 | from HashRef, via { 'Google::Cloud::Connectors::V1::ConnectorVersion::ListConnectorVersionsRequest'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedListConnectorVersionsRequest', | ||
| 65 | as ArrayRef[ListConnectorVersionsRequest()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedListConnectorVersionsRequest', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::ConnectorVersion::ListConnectorVersionsRequest'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringListConnectorVersionsRequest', | ||
| 71 | as HashRef[ListConnectorVersionsRequest()]; | ||
| 72 | |||
| 73 | declare 'ListConnectorVersionsResponse', | ||
| 74 | as InstanceOf['Google::Cloud::Connectors::V1::ConnectorVersion::ListConnectorVersionsResponse']; | ||
| 75 | |||
| 76 | coerce 'ListConnectorVersionsResponse', | ||
| 77 | from HashRef, via { 'Google::Cloud::Connectors::V1::ConnectorVersion::ListConnectorVersionsResponse'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedListConnectorVersionsResponse', | ||
| 80 | as ArrayRef[ListConnectorVersionsResponse()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedListConnectorVersionsResponse', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::ConnectorVersion::ListConnectorVersionsResponse'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringListConnectorVersionsResponse', | ||
| 86 | as HashRef[ListConnectorVersionsResponse()]; | ||
| 87 | |||
| 88 | declare 'SupportedRuntimeFeatures', | ||
| 89 | as InstanceOf['Google::Cloud::Connectors::V1::ConnectorVersion::SupportedRuntimeFeatures']; | ||
| 90 | |||
| 91 | coerce 'SupportedRuntimeFeatures', | ||
| 92 | from HashRef, via { 'Google::Cloud::Connectors::V1::ConnectorVersion::SupportedRuntimeFeatures'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedSupportedRuntimeFeatures', | ||
| 95 | as ArrayRef[SupportedRuntimeFeatures()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedSupportedRuntimeFeatures', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::ConnectorVersion::SupportedRuntimeFeatures'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringSupportedRuntimeFeatures', | ||
| 101 | as HashRef[SupportedRuntimeFeatures()]; | ||
| 102 | |||
| 103 | declare 'EgressControlConfig', | ||
| 104 | as InstanceOf['Google::Cloud::Connectors::V1::ConnectorVersion::EgressControlConfig']; | ||
| 105 | |||
| 106 | coerce 'EgressControlConfig', | ||
| 107 | from HashRef, via { 'Google::Cloud::Connectors::V1::ConnectorVersion::EgressControlConfig'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedEgressControlConfig', | ||
| 110 | as ArrayRef[EgressControlConfig()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedEgressControlConfig', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::ConnectorVersion::EgressControlConfig'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringEgressControlConfig', | ||
| 116 | as HashRef[EgressControlConfig()]; | ||
| 117 | |||
| 118 | declare 'ExtractionRules', | ||
| 119 | as InstanceOf['Google::Cloud::Connectors::V1::ConnectorVersion::ExtractionRules']; | ||
| 120 | |||
| 121 | coerce 'ExtractionRules', | ||
| 122 | from HashRef, via { 'Google::Cloud::Connectors::V1::ConnectorVersion::ExtractionRules'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedExtractionRules', | ||
| 125 | as ArrayRef[ExtractionRules()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedExtractionRules', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::ConnectorVersion::ExtractionRules'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringExtractionRules', | ||
| 131 | as HashRef[ExtractionRules()]; | ||
| 132 | |||
| 133 | declare 'ExtractionRule', | ||
| 134 | as InstanceOf['Google::Cloud::Connectors::V1::ConnectorVersion::ExtractionRule']; | ||
| 135 | |||
| 136 | coerce 'ExtractionRule', | ||
| 137 | from HashRef, via { 'Google::Cloud::Connectors::V1::ConnectorVersion::ExtractionRule'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedExtractionRule', | ||
| 140 | as ArrayRef[ExtractionRule()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedExtractionRule', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::ConnectorVersion::ExtractionRule'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringExtractionRule', | ||
| 146 | as HashRef[ExtractionRule()]; | ||
| 147 | |||
| 148 | declare 'SourceType', | ||
| 149 | as (Int | Str); | ||
| 150 | |||
| 151 | declare 'Source', | ||
| 152 | as InstanceOf['Google::Cloud::Connectors::V1::ConnectorVersion::ExtractionRule::Source']; | ||
| 153 | |||
| 154 | coerce 'Source', | ||
| 155 | from HashRef, via { 'Google::Cloud::Connectors::V1::ConnectorVersion::ExtractionRule::Source'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedSource', | ||
| 158 | as ArrayRef[Source()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedSource', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::ConnectorVersion::ExtractionRule::Source'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringSource', | ||
| 164 | as HashRef[Source()]; | ||
| 165 | |||
| 166 | 1; | ||
| 167 | |||
| 168 | __END__ |