Class: Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1Connection

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/representations.rb

Overview

Connection represents an instance of connector.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudConnectorsV1Connection

Returns a new instance of GoogleCloudConnectorsV1Connection.



5094
5095
5096
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5094

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

Instance Attribute Details

#auth_configGoogle::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1AuthConfig

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



4999
5000
5001
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4999

def auth_config
  @auth_config
end

#config_variablesArray<Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1ConfigVariable>

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



5004
5005
5006
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5004

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


5011
5012
5013
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5011

def connector_version
  @connector_version
end

#create_timeString

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

Returns:

  • (String)


5016
5017
5018
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5016

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


5021
5022
5023
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5021

def description
  @description
end

#destination_configsArray<Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1DestinationConfig>

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



5027
5028
5029
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5027

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)


5033
5034
5035
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5033

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)


5039
5040
5041
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5039

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>)


5046
5047
5048
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5046

def labels
  @labels
end

#lock_configGoogle::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1LockConfig

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



5052
5053
5054
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5052

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)


5058
5059
5060
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5058

def name
  @name
end

#node_configGoogle::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1NodeConfig

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



5063
5064
5065
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5063

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)


5068
5069
5070
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5068

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)


5076
5077
5078
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5076

def service_directory
  @service_directory
end

#statusGoogle::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1ConnectionStatus

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



5081
5082
5083
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5081

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


5086
5087
5088
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5086

def suspended
  @suspended
end

#update_timeString

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

Returns:

  • (String)


5092
5093
5094
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5092

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5099

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