Class: Google::Apis::ConnectorsV1::Destination

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Destination

Returns a new instance of Destination.



2055
2056
2057
# File 'lib/google/apis/connectors_v1/classes.rb', line 2055

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

Instance Attribute Details

#hostString

For publicly routable host. Corresponds to the JSON property host

Returns:

  • (String)


2042
2043
2044
# File 'lib/google/apis/connectors_v1/classes.rb', line 2042

def host
  @host
end

#portFixnum

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

Returns:

  • (Fixnum)


2048
2049
2050
# File 'lib/google/apis/connectors_v1/classes.rb', line 2048

def port
  @port
end

#service_attachmentString

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

Returns:

  • (String)


2053
2054
2055
# File 'lib/google/apis/connectors_v1/classes.rb', line 2053

def service_attachment
  @service_attachment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2060
2061
2062
2063
2064
# File 'lib/google/apis/connectors_v1/classes.rb', line 2060

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