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.



721
722
723
# File 'lib/google/apis/connectors_v1/classes.rb', line 721

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

Instance Attribute Details

#async_operations_enabledBoolean Also known as: async_operations_enabled?

Optional. Async operations enabled for the connection. If Async Operations is enabled, Connection allows the customers to initiate async long running operations using the actions API. Corresponds to the JSON property asyncOperationsEnabled

Returns:

  • (Boolean)


559
560
561
# File 'lib/google/apis/connectors_v1/classes.rb', line 559

def async_operations_enabled
  @async_operations_enabled
end

#auth_configGoogle::Apis::ConnectorsV1::AuthConfig

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



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

def auth_config
  @auth_config
end

#billing_configGoogle::Apis::ConnectorsV1::BillingConfig

Billing config for the connection. Corresponds to the JSON property billingConfig



570
571
572
# File 'lib/google/apis/connectors_v1/classes.rb', line 570

def billing_config
  @billing_config
end

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

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



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

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)


581
582
583
# File 'lib/google/apis/connectors_v1/classes.rb', line 581

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)


588
589
590
# File 'lib/google/apis/connectors_v1/classes.rb', line 588

def connector_version
  @connector_version
end

#connector_version_infra_configGoogle::Apis::ConnectorsV1::ConnectorVersionInfraConfig

This cofiguration provides infra configs like rate limit threshold which need to be configurable for every connector version Corresponds to the JSON property connectorVersionInfraConfig



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

def connector_version_infra_config
  @connector_version_infra_config
end

#connector_version_launch_stageString

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

Returns:

  • (String)


599
600
601
# File 'lib/google/apis/connectors_v1/classes.rb', line 599

def connector_version_launch_stage
  @connector_version_launch_stage
end

#create_timeString

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

Returns:

  • (String)


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

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


609
610
611
# File 'lib/google/apis/connectors_v1/classes.rb', line 609

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



615
616
617
# File 'lib/google/apis/connectors_v1/classes.rb', line 615

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)


621
622
623
# File 'lib/google/apis/connectors_v1/classes.rb', line 621

def envoy_image_location
  @envoy_image_location
end

#eventing_configGoogle::Apis::ConnectorsV1::EventingConfig

Eventing Configuration of a connection Corresponds to the JSON property eventingConfig



626
627
628
# File 'lib/google/apis/connectors_v1/classes.rb', line 626

def eventing_config
  @eventing_config
end

#eventing_enablement_typeString

Optional. Eventing enablement type. Will be nil if eventing is not enabled. Corresponds to the JSON property eventingEnablementType

Returns:

  • (String)


631
632
633
# File 'lib/google/apis/connectors_v1/classes.rb', line 631

def eventing_enablement_type
  @eventing_enablement_type
end

#eventing_runtime_dataGoogle::Apis::ConnectorsV1::EventingRuntimeData

Eventing runtime data has the details related to eventing managed by the system. Corresponds to the JSON property eventingRuntimeData



637
638
639
# File 'lib/google/apis/connectors_v1/classes.rb', line 637

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


643
644
645
# File 'lib/google/apis/connectors_v1/classes.rb', line 643

def image_location
  @image_location
end

#is_trusted_testerBoolean Also known as: is_trusted_tester?

Output only. Is trusted tester program enabled for the project. Corresponds to the JSON property isTrustedTester

Returns:

  • (Boolean)


648
649
650
# File 'lib/google/apis/connectors_v1/classes.rb', line 648

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


656
657
658
# File 'lib/google/apis/connectors_v1/classes.rb', line 656

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



662
663
664
# File 'lib/google/apis/connectors_v1/classes.rb', line 662

def lock_config
  @lock_config
end

#log_configGoogle::Apis::ConnectorsV1::ConnectorsLogConfig

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



667
668
669
# File 'lib/google/apis/connectors_v1/classes.rb', line 667

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)


673
674
675
# File 'lib/google/apis/connectors_v1/classes.rb', line 673

def name
  @name
end

#node_configGoogle::Apis::ConnectorsV1::NodeConfig

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



678
679
680
# File 'lib/google/apis/connectors_v1/classes.rb', line 678

def node_config
  @node_config
end

#service_accountString

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

Returns:

  • (String)


684
685
686
# File 'lib/google/apis/connectors_v1/classes.rb', line 684

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)


692
693
694
# File 'lib/google/apis/connectors_v1/classes.rb', line 692

def service_directory
  @service_directory
end

#ssl_configGoogle::Apis::ConnectorsV1::SslConfig

SSL Configuration of a connection Corresponds to the JSON property sslConfig



697
698
699
# File 'lib/google/apis/connectors_v1/classes.rb', line 697

def ssl_config
  @ssl_config
end

#statusGoogle::Apis::ConnectorsV1::ConnectionStatus

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



702
703
704
# File 'lib/google/apis/connectors_v1/classes.rb', line 702

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)


708
709
710
# File 'lib/google/apis/connectors_v1/classes.rb', line 708

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)


713
714
715
# File 'lib/google/apis/connectors_v1/classes.rb', line 713

def suspended
  @suspended
end

#update_timeString

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

Returns:

  • (String)


719
720
721
# File 'lib/google/apis/connectors_v1/classes.rb', line 719

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
# File 'lib/google/apis/connectors_v1/classes.rb', line 726

def update!(**args)
  @async_operations_enabled = args[:async_operations_enabled] if args.key?(:async_operations_enabled)
  @auth_config = args[:auth_config] if args.key?(:auth_config)
  @billing_config = args[:billing_config] if args.key?(:billing_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_infra_config = args[:connector_version_infra_config] if args.key?(:connector_version_infra_config)
  @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)
  @eventing_config = args[:eventing_config] if args.key?(:eventing_config)
  @eventing_enablement_type = args[:eventing_enablement_type] if args.key?(:eventing_enablement_type)
  @eventing_runtime_data = args[:eventing_runtime_data] if args.key?(:eventing_runtime_data)
  @image_location = args[:image_location] if args.key?(:image_location)
  @is_trusted_tester = args[:is_trusted_tester] if args.key?(:is_trusted_tester)
  @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