Class: Google::Apis::ConnectorsV1::Connection
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::Connection
- 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
-
#auth_config ⇒ Google::Apis::ConnectorsV1::AuthConfig
AuthConfig defines details of a authentication type.
-
#config_variables ⇒ Array<Google::Apis::ConnectorsV1::ConfigVariable>
Optional.
-
#connector_version ⇒ String
Required.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#envoy_image_location ⇒ String
Output only.
-
#image_location ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Optional.
-
#lock_config ⇒ Google::Apis::ConnectorsV1::LockConfig
Determines whether or no a connection is locked.
-
#name ⇒ String
Output only.
-
#service_account ⇒ String
Optional.
-
#service_directory ⇒ String
Output only.
-
#status ⇒ Google::Apis::ConnectorsV1::ConnectionStatus
ConnectionStatus indicates the state of the connection.
-
#suspended ⇒ Boolean
(also: #suspended?)
Optional.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Connection
constructor
A new instance of Connection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Connection
Returns a new instance of Connection.
461 462 463 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 461 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auth_config ⇒ Google::Apis::ConnectorsV1::AuthConfig
AuthConfig defines details of a authentication type.
Corresponds to the JSON property authConfig
378 379 380 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 378 def auth_config @auth_config end |
#config_variables ⇒ Array<Google::Apis::ConnectorsV1::ConfigVariable>
Optional. Configuration for configuring the connection with an external system.
Corresponds to the JSON property configVariables
383 384 385 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 383 def config_variables @config_variables end |
#connector_version ⇒ String
Required. Connector version on which the connection is created. The format is:
projects//locations/global/providers//connectors//versions/
Corresponds to the JSON property connectorVersion
389 390 391 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 389 def connector_version @connector_version end |
#create_time ⇒ String
Output only. Created time.
Corresponds to the JSON property createTime
394 395 396 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 394 def create_time @create_time end |
#description ⇒ String
Optional. Description of the resource.
Corresponds to the JSON property description
399 400 401 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 399 def description @description end |
#envoy_image_location ⇒ String
Output only. GCR location where the envoy image is stored. formatted like: gcr.
io/bucketName/imageName
Corresponds to the JSON property envoyImageLocation
405 406 407 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 405 def envoy_image_location @envoy_image_location end |
#image_location ⇒ String
Output only. GCR location where the runtime image is stored. formatted like:
gcr.io/bucketName/imageName
Corresponds to the JSON property imageLocation
411 412 413 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 411 def image_location @image_location end |
#labels ⇒ Hash<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
418 419 420 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 418 def labels @labels end |
#lock_config ⇒ Google::Apis::ConnectorsV1::LockConfig
Determines whether or no a connection is locked. If locked, a reason must be
specified.
Corresponds to the JSON property lockConfig
424 425 426 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 424 def lock_config @lock_config end |
#name ⇒ String
Output only. Resource name of the Connection. Format: projects/project/
locations/location/connections/connection
Corresponds to the JSON property name
430 431 432 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 430 def name @name end |
#service_account ⇒ String
Optional. Service account needed for runtime plane to access GCP resources.
Corresponds to the JSON property serviceAccount
435 436 437 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 435 def service_account @service_account end |
#service_directory ⇒ String
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
443 444 445 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 443 def service_directory @service_directory end |
#status ⇒ Google::Apis::ConnectorsV1::ConnectionStatus
ConnectionStatus indicates the state of the connection.
Corresponds to the JSON property status
448 449 450 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 448 def status @status end |
#suspended ⇒ Boolean Also known as: suspended?
Optional. Suspended indicates if a user has suspended a connection or not.
Corresponds to the JSON property suspended
453 454 455 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 453 def suspended @suspended end |
#update_time ⇒ String
Output only. Updated time.
Corresponds to the JSON property updateTime
459 460 461 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 459 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 466 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) @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 |