Class: Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1Destination

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudConnectorsV1Destination

Returns a new instance of GoogleCloudConnectorsV1Destination.



5318
5319
5320
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5318

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

Instance Attribute Details

#hostString

For publicly routable host. Corresponds to the JSON property host

Returns:

  • (String)


5306
5307
5308
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5306

def host
  @host
end

#portFixnum

The port is the target port number that is accepted by the destination. Corresponds to the JSON property port

Returns:

  • (Fixnum)


5311
5312
5313
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5311

def port
  @port
end

#service_attachmentString

PSC service attachments. Format: projects//regions//serviceAttachments/* Corresponds to the JSON property serviceAttachment

Returns:

  • (String)


5316
5317
5318
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5316

def service_attachment
  @service_attachment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5323
5324
5325
5326
5327
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5323

def update!(**args)
  @host = args[:host] if args.key?(:host)
  @port = args[:port] if args.key?(:port)
  @service_attachment = args[:service_attachment] if args.key?(:service_attachment)
end