Class: Google::Apis::ConnectorsV1::CustomConnectorVersion

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb

Overview

CustomConnectorVersion indicates a specific version of a connector.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomConnectorVersion

Returns a new instance of CustomConnectorVersion.



1411
1412
1413
# File 'lib/google/apis/connectors_v1/classes.rb', line 1411

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auth_configGoogle::Apis::ConnectorsV1::AuthConfig

AuthConfig defines details of a authentication type. Corresponds to the JSON property authConfig



1344
1345
1346
# File 'lib/google/apis/connectors_v1/classes.rb', line 1344

def auth_config
  @auth_config
end

#backend_variable_templatesArray<Google::Apis::ConnectorsV1::ConfigVariableTemplate>

Optional. Backend variables config templates. This translates to additional variable templates in connection. Corresponds to the JSON property backendVariableTemplates



1350
1351
1352
# File 'lib/google/apis/connectors_v1/classes.rb', line 1350

def backend_variable_templates
  @backend_variable_templates
end

#create_timeString

Output only. Created time. Corresponds to the JSON property createTime

Returns:

  • (String)


1355
1356
1357
# File 'lib/google/apis/connectors_v1/classes.rb', line 1355

def create_time
  @create_time
end

#destination_configsArray<Google::Apis::ConnectorsV1::DestinationConfig>

Optional. Destination config(s) for accessing connector facade/ proxy. This is used only when enable_backend_destination_config is true. Corresponds to the JSON property destinationConfigs



1361
1362
1363
# File 'lib/google/apis/connectors_v1/classes.rb', line 1361

def destination_configs
  @destination_configs
end

#enable_backend_destination_configBoolean Also known as: enable_backend_destination_config?

Optional. When enabled, the connector will be a facade/ proxy, and connects to the destination provided during connection creation. Corresponds to the JSON property enableBackendDestinationConfig

Returns:

  • (Boolean)


1367
1368
1369
# File 'lib/google/apis/connectors_v1/classes.rb', line 1367

def enable_backend_destination_config
  @enable_backend_destination_config
end

#labelsHash<String,String>

Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/ docs/labeling-resources Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1375
1376
1377
# File 'lib/google/apis/connectors_v1/classes.rb', line 1375

def labels
  @labels
end

#nameString

Output only. Identifier. Resource name of the Version. Format: projects/ project/locations/location/customConnectors/custom_connector/ customConnectorVersions/custom_connector_version Corresponds to the JSON property name

Returns:

  • (String)


1382
1383
1384
# File 'lib/google/apis/connectors_v1/classes.rb', line 1382

def name
  @name
end

#service_accountString

Optional. Service account used by runtime plane to access auth config secrets. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


1387
1388
1389
# File 'lib/google/apis/connectors_v1/classes.rb', line 1387

def 
  @service_account
end

#spec_locationString

Optional. Location of the custom connector spec. The location can be either a public url like https://public-url.com/spec Or a Google Cloud Storage location like gs:/// Corresponds to the JSON property specLocation

Returns:

  • (String)


1394
1395
1396
# File 'lib/google/apis/connectors_v1/classes.rb', line 1394

def spec_location
  @spec_location
end

#spec_server_urlsArray<String>

Output only. Server URLs parsed from the spec. Corresponds to the JSON property specServerUrls

Returns:

  • (Array<String>)


1399
1400
1401
# File 'lib/google/apis/connectors_v1/classes.rb', line 1399

def spec_server_urls
  @spec_server_urls
end

#stateString

Output only. State of the custom connector version. Corresponds to the JSON property state

Returns:

  • (String)


1404
1405
1406
# File 'lib/google/apis/connectors_v1/classes.rb', line 1404

def state
  @state
end

#update_timeString

Output only. Updated time. Corresponds to the JSON property updateTime

Returns:

  • (String)


1409
1410
1411
# File 'lib/google/apis/connectors_v1/classes.rb', line 1409

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
# File 'lib/google/apis/connectors_v1/classes.rb', line 1416

def update!(**args)
  @auth_config = args[:auth_config] if args.key?(:auth_config)
  @backend_variable_templates = args[:backend_variable_templates] if args.key?(:backend_variable_templates)
  @create_time = args[:create_time] if args.key?(:create_time)
  @destination_configs = args[:destination_configs] if args.key?(:destination_configs)
  @enable_backend_destination_config = args[:enable_backend_destination_config] if args.key?(:enable_backend_destination_config)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @service_account = args[:service_account] if args.key?(:service_account)
  @spec_location = args[:spec_location] if args.key?(:spec_location)
  @spec_server_urls = args[:spec_server_urls] if args.key?(:spec_server_urls)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end