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.



5184
5185
5186
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5184

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

Instance Attribute Details

#hostString

For publicly routable host. Corresponds to the JSON property host

Returns:

  • (String)


5172
5173
5174
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5172

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)


5177
5178
5179
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5177

def port
  @port
end

#service_attachmentString

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

Returns:

  • (String)


5182
5183
5184
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5182

def service_attachment
  @service_attachment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5189
5190
5191
5192
5193
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5189

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