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.



603
604
605
# File 'lib/google/apis/connectors_v1/classes.rb', line 603

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



481
482
483
# File 'lib/google/apis/connectors_v1/classes.rb', line 481

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



486
487
488
# File 'lib/google/apis/connectors_v1/classes.rb', line 486

def config_variables
  @config_variables
end

#connection_revisionFixnum

Output only. Connection revision. This field is only updated when the connection is created or updated by User. Corresponds to the JSON property connectionRevision

Returns:

  • (Fixnum)


492
493
494
# File 'lib/google/apis/connectors_v1/classes.rb', line 492

def connection_revision
  @connection_revision
end

#connector_versionString

Required. Connector version on which the connection is created. The format is: projects//locations//providers//connectors//versions/* Only global location is supported for ConnectorVersion resource. Corresponds to the JSON property connectorVersion

Returns:

  • (String)


499
500
501
# File 'lib/google/apis/connectors_v1/classes.rb', line 499

def connector_version
  @connector_version
end

#connector_version_launch_stageString

Output only. Flag to mark the version indicating the launch stage. Corresponds to the JSON property connectorVersionLaunchStage

Returns:

  • (String)


504
505
506
# File 'lib/google/apis/connectors_v1/classes.rb', line 504

def connector_version_launch_stage
  @connector_version_launch_stage
end

#create_timeString

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

Returns:

  • (String)


509
510
511
# File 'lib/google/apis/connectors_v1/classes.rb', line 509

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


514
515
516
# File 'lib/google/apis/connectors_v1/classes.rb', line 514

def description
  @description
end

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

Optional. Configuration of the Connector's destination. Only accepted for Connectors that accepts user defined destination(s). Corresponds to the JSON property destinationConfigs



520
521
522
# File 'lib/google/apis/connectors_v1/classes.rb', line 520

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


526
527
528
# File 'lib/google/apis/connectors_v1/classes.rb', line 526

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)


532
533
534
# File 'lib/google/apis/connectors_v1/classes.rb', line 532

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


539
540
541
# File 'lib/google/apis/connectors_v1/classes.rb', line 539

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



545
546
547
# File 'lib/google/apis/connectors_v1/classes.rb', line 545

def lock_config
  @lock_config
end

#log_configGoogle::Apis::ConnectorsV1::ConnectorsLogConfig

Log configuration for the connection. Corresponds to the JSON property logConfig



550
551
552
# File 'lib/google/apis/connectors_v1/classes.rb', line 550

def log_config
  @log_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)


556
557
558
# File 'lib/google/apis/connectors_v1/classes.rb', line 556

def name
  @name
end

#node_configGoogle::Apis::ConnectorsV1::NodeConfig

Node configuration for the connection. Corresponds to the JSON property nodeConfig



561
562
563
# File 'lib/google/apis/connectors_v1/classes.rb', line 561

def node_config
  @node_config
end

#service_accountString

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

Returns:

  • (String)


566
567
568
# File 'lib/google/apis/connectors_v1/classes.rb', line 566

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)


574
575
576
# File 'lib/google/apis/connectors_v1/classes.rb', line 574

def service_directory
  @service_directory
end

#ssl_configGoogle::Apis::ConnectorsV1::SslConfig

SSL Configuration of a connection Corresponds to the JSON property sslConfig



579
580
581
# File 'lib/google/apis/connectors_v1/classes.rb', line 579

def ssl_config
  @ssl_config
end

#statusGoogle::Apis::ConnectorsV1::ConnectionStatus

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



584
585
586
# File 'lib/google/apis/connectors_v1/classes.rb', line 584

def status
  @status
end

#subscription_typeString

Output only. This subscription type enum states the subscription type of the project. Corresponds to the JSON property subscriptionType

Returns:

  • (String)


590
591
592
# File 'lib/google/apis/connectors_v1/classes.rb', line 590

def subscription_type
  @subscription_type
end

#suspendedBoolean Also known as: suspended?

Optional. Suspended indicates if a user has suspended a connection or not. Corresponds to the JSON property suspended

Returns:

  • (Boolean)


595
596
597
# File 'lib/google/apis/connectors_v1/classes.rb', line 595

def suspended
  @suspended
end

#update_timeString

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

Returns:

  • (String)


601
602
603
# File 'lib/google/apis/connectors_v1/classes.rb', line 601

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
# File 'lib/google/apis/connectors_v1/classes.rb', line 608

def update!(**args)
  @auth_config = args[:auth_config] if args.key?(:auth_config)
  @config_variables = args[:config_variables] if args.key?(:config_variables)
  @connection_revision = args[:connection_revision] if args.key?(:connection_revision)
  @connector_version = args[:connector_version] if args.key?(:connector_version)
  @connector_version_launch_stage = args[:connector_version_launch_stage] if args.key?(:connector_version_launch_stage)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @destination_configs = args[:destination_configs] if args.key?(:destination_configs)
  @envoy_image_location = args[:envoy_image_location] if args.key?(:envoy_image_location)
  @image_location = args[:image_location] if args.key?(:image_location)
  @labels = args[:labels] if args.key?(:labels)
  @lock_config = args[:lock_config] if args.key?(:lock_config)
  @log_config = args[:log_config] if args.key?(:log_config)
  @name = args[:name] if args.key?(:name)
  @node_config = args[:node_config] if args.key?(:node_config)
  @service_account = args[:service_account] if args.key?(:service_account)
  @service_directory = args[:service_directory] if args.key?(:service_directory)
  @ssl_config = args[:ssl_config] if args.key?(:ssl_config)
  @status = args[:status] if args.key?(:status)
  @subscription_type = args[:subscription_type] if args.key?(:subscription_type)
  @suspended = args[:suspended] if args.key?(:suspended)
  @update_time = args[:update_time] if args.key?(:update_time)
end