| 1 | package Google::Cloud::Discoveryengine::V1::DataConnector::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 'ConnectorType', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'DataConnector', | ||
| 14 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector']; | ||
| 15 | |||
| 16 | coerce 'DataConnector', | ||
| 17 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedDataConnector', | ||
| 20 | as ArrayRef[DataConnector()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedDataConnector', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringDataConnector', | ||
| 26 | as HashRef[DataConnector()]; | ||
| 27 | |||
| 28 | declare 'State', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'SyncMode', | ||
| 32 | as (Int | Str); | ||
| 33 | |||
| 34 | declare 'ConnectorMode', | ||
| 35 | as (Int | Str); | ||
| 36 | |||
| 37 | declare 'BlockingReason', | ||
| 38 | as (Int | Str); | ||
| 39 | |||
| 40 | declare 'SourceEntity', | ||
| 41 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::SourceEntity']; | ||
| 42 | |||
| 43 | coerce 'SourceEntity', | ||
| 44 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::SourceEntity'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedSourceEntity', | ||
| 47 | as ArrayRef[SourceEntity()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedSourceEntity', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::SourceEntity'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringSourceEntity', | ||
| 53 | as HashRef[SourceEntity()]; | ||
| 54 | |||
| 55 | declare 'KeyPropertyMappingsEntry', | ||
| 56 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::SourceEntity::KeyPropertyMappingsEntry']; | ||
| 57 | |||
| 58 | coerce 'KeyPropertyMappingsEntry', | ||
| 59 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::SourceEntity::KeyPropertyMappingsEntry'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedKeyPropertyMappingsEntry', | ||
| 62 | as ArrayRef[KeyPropertyMappingsEntry()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedKeyPropertyMappingsEntry', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::SourceEntity::KeyPropertyMappingsEntry'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringKeyPropertyMappingsEntry', | ||
| 68 | as HashRef[KeyPropertyMappingsEntry()]; | ||
| 69 | |||
| 70 | declare 'EndUserConfig', | ||
| 71 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::EndUserConfig']; | ||
| 72 | |||
| 73 | coerce 'EndUserConfig', | ||
| 74 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::EndUserConfig'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedEndUserConfig', | ||
| 77 | as ArrayRef[EndUserConfig()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedEndUserConfig', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::EndUserConfig'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringEndUserConfig', | ||
| 83 | as HashRef[EndUserConfig()]; | ||
| 84 | |||
| 85 | declare 'FederatedConfig', | ||
| 86 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::FederatedConfig']; | ||
| 87 | |||
| 88 | coerce 'FederatedConfig', | ||
| 89 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::FederatedConfig'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedFederatedConfig', | ||
| 92 | as ArrayRef[FederatedConfig()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedFederatedConfig', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::FederatedConfig'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringFederatedConfig', | ||
| 98 | as HashRef[FederatedConfig()]; | ||
| 99 | |||
| 100 | declare 'RealtimeSyncConfig', | ||
| 101 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::RealtimeSyncConfig']; | ||
| 102 | |||
| 103 | coerce 'RealtimeSyncConfig', | ||
| 104 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::RealtimeSyncConfig'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedRealtimeSyncConfig', | ||
| 107 | as ArrayRef[RealtimeSyncConfig()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedRealtimeSyncConfig', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::RealtimeSyncConfig'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringRealtimeSyncConfig', | ||
| 113 | as HashRef[RealtimeSyncConfig()]; | ||
| 114 | |||
| 115 | declare 'StreamingError', | ||
| 116 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::RealtimeSyncConfig::StreamingError']; | ||
| 117 | |||
| 118 | coerce 'StreamingError', | ||
| 119 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::RealtimeSyncConfig::StreamingError'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedStreamingError', | ||
| 122 | as ArrayRef[StreamingError()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedStreamingError', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::RealtimeSyncConfig::StreamingError'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringStreamingError', | ||
| 128 | as HashRef[StreamingError()]; | ||
| 129 | |||
| 130 | declare 'StreamingErrorReason', | ||
| 131 | as (Int | Str); | ||
| 132 | |||
| 133 | declare 'ConnectorMetadata', | ||
| 134 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::ConnectorMetadata']; | ||
| 135 | |||
| 136 | coerce 'ConnectorMetadata', | ||
| 137 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::ConnectorMetadata'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedConnectorMetadata', | ||
| 140 | as ArrayRef[ConnectorMetadata()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedConnectorMetadata', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::DataConnector::ConnectorMetadata'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringConnectorMetadata', | ||
| 146 | as HashRef[ConnectorMetadata()]; | ||
| 147 | |||
| 148 | declare 'DestinationConfig', | ||
| 149 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::DestinationConfig']; | ||
| 150 | |||
| 151 | coerce 'DestinationConfig', | ||
| 152 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::DestinationConfig'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedDestinationConfig', | ||
| 155 | as ArrayRef[DestinationConfig()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedDestinationConfig', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::DestinationConfig'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringDestinationConfig', | ||
| 161 | as HashRef[DestinationConfig()]; | ||
| 162 | |||
| 163 | declare 'Destination', | ||
| 164 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::DestinationConfig::Destination']; | ||
| 165 | |||
| 166 | coerce 'Destination', | ||
| 167 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::DestinationConfig::Destination'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedDestination', | ||
| 170 | as ArrayRef[Destination()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedDestination', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::DestinationConfig::Destination'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringDestination', | ||
| 176 | as HashRef[Destination()]; | ||
| 177 | |||
| 178 | declare 'ActionConfig', | ||
| 179 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::ActionConfig']; | ||
| 180 | |||
| 181 | coerce 'ActionConfig', | ||
| 182 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::ActionConfig'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedActionConfig', | ||
| 185 | as ArrayRef[ActionConfig()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedActionConfig', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::ActionConfig'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringActionConfig', | ||
| 191 | as HashRef[ActionConfig()]; | ||
| 192 | |||
| 193 | declare 'ScopeList', | ||
| 194 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::ActionConfig::ScopeList']; | ||
| 195 | |||
| 196 | coerce 'ScopeList', | ||
| 197 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::ActionConfig::ScopeList'->new($_) }; | ||
| 198 | |||
| 199 | declare 'RepeatedScopeList', | ||
| 200 | as ArrayRef[ScopeList()]; | ||
| 201 | |||
| 202 | coerce 'RepeatedScopeList', | ||
| 203 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::ActionConfig::ScopeList'->new($_) } @$_ ] }; | ||
| 204 | |||
| 205 | declare 'MapStringScopeList', | ||
| 206 | as HashRef[ScopeList()]; | ||
| 207 | |||
| 208 | declare 'UserDefinedScopesMappingEntry', | ||
| 209 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::ActionConfig::UserDefinedScopesMappingEntry']; | ||
| 210 | |||
| 211 | coerce 'UserDefinedScopesMappingEntry', | ||
| 212 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::ActionConfig::UserDefinedScopesMappingEntry'->new($_) }; | ||
| 213 | |||
| 214 | declare 'RepeatedUserDefinedScopesMappingEntry', | ||
| 215 | as ArrayRef[UserDefinedScopesMappingEntry()]; | ||
| 216 | |||
| 217 | coerce 'RepeatedUserDefinedScopesMappingEntry', | ||
| 218 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::ActionConfig::UserDefinedScopesMappingEntry'->new($_) } @$_ ] }; | ||
| 219 | |||
| 220 | declare 'MapStringUserDefinedScopesMappingEntry', | ||
| 221 | as HashRef[UserDefinedScopesMappingEntry()]; | ||
| 222 | |||
| 223 | declare 'IdentityScheduleConfig', | ||
| 224 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::IdentityScheduleConfig']; | ||
| 225 | |||
| 226 | coerce 'IdentityScheduleConfig', | ||
| 227 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::IdentityScheduleConfig'->new($_) }; | ||
| 228 | |||
| 229 | declare 'RepeatedIdentityScheduleConfig', | ||
| 230 | as ArrayRef[IdentityScheduleConfig()]; | ||
| 231 | |||
| 232 | coerce 'RepeatedIdentityScheduleConfig', | ||
| 233 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::IdentityScheduleConfig'->new($_) } @$_ ] }; | ||
| 234 | |||
| 235 | declare 'MapStringIdentityScheduleConfig', | ||
| 236 | as HashRef[IdentityScheduleConfig()]; | ||
| 237 | |||
| 238 | declare 'BAPConfig', | ||
| 239 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::BAPConfig']; | ||
| 240 | |||
| 241 | coerce 'BAPConfig', | ||
| 242 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::BAPConfig'->new($_) }; | ||
| 243 | |||
| 244 | declare 'RepeatedBAPConfig', | ||
| 245 | as ArrayRef[BAPConfig()]; | ||
| 246 | |||
| 247 | coerce 'RepeatedBAPConfig', | ||
| 248 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::BAPConfig'->new($_) } @$_ ] }; | ||
| 249 | |||
| 250 | declare 'MapStringBAPConfig', | ||
| 251 | as HashRef[BAPConfig()]; | ||
| 252 | |||
| 253 | declare 'ConnectorMode', | ||
| 254 | as (Int | Str); | ||
| 255 | |||
| 256 | declare 'ToolspecOverride', | ||
| 257 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::BAPConfig::ToolspecOverride']; | ||
| 258 | |||
| 259 | coerce 'ToolspecOverride', | ||
| 260 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::BAPConfig::ToolspecOverride'->new($_) }; | ||
| 261 | |||
| 262 | declare 'RepeatedToolspecOverride', | ||
| 263 | as ArrayRef[ToolspecOverride()]; | ||
| 264 | |||
| 265 | coerce 'RepeatedToolspecOverride', | ||
| 266 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::BAPConfig::ToolspecOverride'->new($_) } @$_ ] }; | ||
| 267 | |||
| 268 | declare 'MapStringToolspecOverride', | ||
| 269 | as HashRef[ToolspecOverride()]; | ||
| 270 | |||
| 271 | declare 'CliConfig', | ||
| 272 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::CliConfig']; | ||
| 273 | |||
| 274 | coerce 'CliConfig', | ||
| 275 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::CliConfig'->new($_) }; | ||
| 276 | |||
| 277 | declare 'RepeatedCliConfig', | ||
| 278 | as ArrayRef[CliConfig()]; | ||
| 279 | |||
| 280 | coerce 'RepeatedCliConfig', | ||
| 281 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::CliConfig'->new($_) } @$_ ] }; | ||
| 282 | |||
| 283 | declare 'MapStringCliConfig', | ||
| 284 | as HashRef[CliConfig()]; | ||
| 285 | |||
| 286 | declare 'AlertPolicyConfig', | ||
| 287 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::AlertPolicyConfig']; | ||
| 288 | |||
| 289 | coerce 'AlertPolicyConfig', | ||
| 290 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::AlertPolicyConfig'->new($_) }; | ||
| 291 | |||
| 292 | declare 'RepeatedAlertPolicyConfig', | ||
| 293 | as ArrayRef[AlertPolicyConfig()]; | ||
| 294 | |||
| 295 | coerce 'RepeatedAlertPolicyConfig', | ||
| 296 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::AlertPolicyConfig'->new($_) } @$_ ] }; | ||
| 297 | |||
| 298 | declare 'MapStringAlertPolicyConfig', | ||
| 299 | as HashRef[AlertPolicyConfig()]; | ||
| 300 | |||
| 301 | declare 'AlertEnrollment', | ||
| 302 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::AlertPolicyConfig::AlertEnrollment']; | ||
| 303 | |||
| 304 | coerce 'AlertEnrollment', | ||
| 305 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::AlertPolicyConfig::AlertEnrollment'->new($_) }; | ||
| 306 | |||
| 307 | declare 'RepeatedAlertEnrollment', | ||
| 308 | as ArrayRef[AlertEnrollment()]; | ||
| 309 | |||
| 310 | coerce 'RepeatedAlertEnrollment', | ||
| 311 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::AlertPolicyConfig::AlertEnrollment'->new($_) } @$_ ] }; | ||
| 312 | |||
| 313 | declare 'MapStringAlertEnrollment', | ||
| 314 | as HashRef[AlertEnrollment()]; | ||
| 315 | |||
| 316 | declare 'EnrollStates', | ||
| 317 | as (Int | Str); | ||
| 318 | |||
| 319 | declare 'Tenant', | ||
| 320 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::Tenant']; | ||
| 321 | |||
| 322 | coerce 'Tenant', | ||
| 323 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::Tenant'->new($_) }; | ||
| 324 | |||
| 325 | declare 'RepeatedTenant', | ||
| 326 | as ArrayRef[Tenant()]; | ||
| 327 | |||
| 328 | coerce 'RepeatedTenant', | ||
| 329 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::Tenant'->new($_) } @$_ ] }; | ||
| 330 | |||
| 331 | declare 'MapStringTenant', | ||
| 332 | as HashRef[Tenant()]; | ||
| 333 | |||
| 334 | declare 'DynamicTool', | ||
| 335 | as InstanceOf['Google::Cloud::Discoveryengine::V1::DataConnector::DynamicTool']; | ||
| 336 | |||
| 337 | coerce 'DynamicTool', | ||
| 338 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1::DataConnector::DynamicTool'->new($_) }; | ||
| 339 | |||
| 340 | declare 'RepeatedDynamicTool', | ||
| 341 | as ArrayRef[DynamicTool()]; | ||
| 342 | |||
| 343 | coerce 'RepeatedDynamicTool', | ||
| 344 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1::DataConnector::DynamicTool'->new($_) } @$_ ] }; | ||
| 345 | |||
| 346 | declare 'MapStringDynamicTool', | ||
| 347 | as HashRef[DynamicTool()]; | ||
| 348 | |||
| 349 | 1; | ||
| 350 | |||
| 351 | __END__ |