class Google::Apis::ConnectorsV1::Connection

Connection represents an instance of connector.

Attributes

auth_config[RW]

AuthConfig defines details of a authentication type. Corresponds to the JSON property ‘authConfig` @return [Google::Apis::ConnectorsV1::AuthConfig]

config_variables[RW]

Optional. Configuration for configuring the connection with an external system. Corresponds to the JSON property ‘configVariables` @return [Array<Google::Apis::ConnectorsV1::ConfigVariable>]

connector_version[RW]

Required. Connector version on which the connection is created. The format is: projects//locations/global/providers//connectors//versions/ Corresponds to the JSON property ‘connectorVersion` @return [String]

create_time[RW]

Output only. Created time. Corresponds to the JSON property ‘createTime` @return [String]

description[RW]

Optional. Description of the resource. Corresponds to the JSON property ‘description` @return [String]

egress_backends[RW]

Output only. Outbound domains/hosts needs to be allowlisted. Corresponds to the JSON property ‘egressBackends` @return [Array<String>]

envoy_image_location[RW]

Output only. GCR location where the envoy image is stored. formatted like: gcr. io/‘bucketName`/`imageName` Corresponds to the JSON property `envoyImageLocation` @return [String]

image_location[RW]

Output only. GCR location where the runtime image is stored. formatted like: gcr.io/‘bucketName`/`imageName` Corresponds to the JSON property `imageLocation` @return [String]

labels[RW]

Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. cloud.google.com/compute/ docs/labeling-resources Corresponds to the JSON property ‘labels` @return [Hash<String,String>]

lock_config[RW]

Determines whether or no a connection is locked. If locked, a reason must be specified. Corresponds to the JSON property ‘lockConfig` @return [Google::Apis::ConnectorsV1::LockConfig]

name[RW]

Output only. Resource name of the Connection. Format: projects/‘project`/ locations/`location`/connections/`connection` Corresponds to the JSON property `name` @return [String]

service_account[RW]

Optional. Service account needed for runtime plane to access GCP resources. Corresponds to the JSON property ‘serviceAccount` @return [String]

service_directory[RW]

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` @return [String]

status[RW]

ConnectionStatus indicates the state of the connection. Corresponds to the JSON property ‘status` @return [Google::Apis::ConnectorsV1::ConnectionStatus]

suspended[RW]

Optional. Suspended indicates if a user has suspended a connection or not. Corresponds to the JSON property ‘suspended` @return [Boolean]

suspended?[RW]

Optional. Suspended indicates if a user has suspended a connection or not. Corresponds to the JSON property ‘suspended` @return [Boolean]

update_time[RW]

Output only. Updated time. Corresponds to the JSON property ‘updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/connectors_v1/classes.rb, line 454
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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)
  @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)
  @suspended = args[:suspended] if args.key?(:suspended)
  @update_time = args[:update_time] if args.key?(:update_time)
end