Class: Google::Apis::ConnectorsV1::Connection

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

Connection represents an instance of connector.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Connection

Returns a new instance of Connection.



454
455
456
# File 'lib/google/apis/connectors_v1/classes.rb', line 454

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



366
367
368
# File 'lib/google/apis/connectors_v1/classes.rb', line 366

def auth_config
  @auth_config
end

#config_variablesArray<Google::Apis::ConnectorsV1::ConfigVariable>

Optional. Configuration for configuring the connection with an external system. Corresponds to the JSON property configVariables



371
372
373
# File 'lib/google/apis/connectors_v1/classes.rb', line 371

def config_variables
  @config_variables
end

#connector_versionString

Required. Connector version on which the connection is created. The format is: projects//locations/global/providers//connectors//versions/ Corresponds to the JSON property connectorVersion

Returns:

  • (String)


377
378
379
# File 'lib/google/apis/connectors_v1/classes.rb', line 377

def connector_version
  @connector_version
end

#create_timeString

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

Returns:

  • (String)


382
383
384
# File 'lib/google/apis/connectors_v1/classes.rb', line 382

def create_time
  @create_time
end

#descriptionString

Optional. Description of the resource. Corresponds to the JSON property description

Returns:

  • (String)


387
388
389
# File 'lib/google/apis/connectors_v1/classes.rb', line 387

def description
  @description
end

#egress_backendsArray<String>

Output only. Outbound domains/hosts needs to be allowlisted. Corresponds to the JSON property egressBackends

Returns:

  • (Array<String>)


392
393
394
# File 'lib/google/apis/connectors_v1/classes.rb', line 392

def egress_backends
  @egress_backends
end

#envoy_image_locationString

Output only. GCR location where the envoy image is stored. formatted like: gcr. io/bucketName/imageName Corresponds to the JSON property envoyImageLocation

Returns:

  • (String)


398
399
400
# File 'lib/google/apis/connectors_v1/classes.rb', line 398

def envoy_image_location
  @envoy_image_location
end

#image_locationString

Output only. GCR location where the runtime image is stored. formatted like: gcr.io/bucketName/imageName Corresponds to the JSON property imageLocation

Returns:

  • (String)


404
405
406
# File 'lib/google/apis/connectors_v1/classes.rb', line 404

def image_location
  @image_location
end

#inactiveBoolean Also known as: inactive?

Optional. Inactive indicates the connection is active to use or not. Corresponds to the JSON property inactive

Returns:

  • (Boolean)


409
410
411
# File 'lib/google/apis/connectors_v1/classes.rb', line 409

def inactive
  @inactive
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>)


417
418
419
# File 'lib/google/apis/connectors_v1/classes.rb', line 417

def labels
  @labels
end

#lock_configGoogle::Apis::ConnectorsV1::LockConfig

Determines whether or no a connection is locked. If locked, a reason must be specified. Corresponds to the JSON property lockConfig



423
424
425
# File 'lib/google/apis/connectors_v1/classes.rb', line 423

def lock_config
  @lock_config
end

#nameString

Output only. Resource name of the Connection. Format: projects/project/ locations/location/connections/connection Corresponds to the JSON property name

Returns:

  • (String)


429
430
431
# File 'lib/google/apis/connectors_v1/classes.rb', line 429

def name
  @name
end

#service_accountString

Optional. Service account needed for runtime plane to access GCP resources. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


434
435
436
# File 'lib/google/apis/connectors_v1/classes.rb', line 434

def 
  @service_account
end

#service_directoryString

Output only. The name of the Service Directory service name. Used for Private Harpoon to resolve the ILB address. e.g. "projects/cloud-connectors-e2e- testing/locations/us-central1/namespaces/istio-system/services/istio- ingressgateway-connectors" Corresponds to the JSON property serviceDirectory

Returns:

  • (String)


442
443
444
# File 'lib/google/apis/connectors_v1/classes.rb', line 442

def service_directory
  @service_directory
end

#statusGoogle::Apis::ConnectorsV1::ConnectionStatus

ConnectionStatus indicates the state of the connection. Corresponds to the JSON property status



447
448
449
# File 'lib/google/apis/connectors_v1/classes.rb', line 447

def status
  @status
end

#update_timeString

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

Returns:

  • (String)


452
453
454
# File 'lib/google/apis/connectors_v1/classes.rb', line 452

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
# File 'lib/google/apis/connectors_v1/classes.rb', line 459

def update!(**args)
  @auth_config = args[:auth_config] if args.key?(:auth_config)
  @config_variables = args[:config_variables] if args.key?(:config_variables)
  @connector_version = args[:connector_version] if args.key?(:connector_version)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @egress_backends = args[:egress_backends] if args.key?(:egress_backends)
  @envoy_image_location = args[:envoy_image_location] if args.key?(:envoy_image_location)
  @image_location = args[:image_location] if args.key?(:image_location)
  @inactive = args[:inactive] if args.key?(:inactive)
  @labels = args[:labels] if args.key?(:labels)
  @lock_config = args[:lock_config] if args.key?(:lock_config)
  @name = args[:name] if args.key?(:name)
  @service_account = args[:service_account] if args.key?(:service_account)
  @service_directory = args[:service_directory] if args.key?(:service_directory)
  @status = args[:status] if args.key?(:status)
  @update_time = args[:update_time] if args.key?(:update_time)
end