Class: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint

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

Overview

The service endpoint that may be started in a VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ServiceEndpoint

Returns a new instance of ServiceEndpoint



484
485
486
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 484

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

Instance Attribute Details

#nameString

The name of the service endpoint. Corresponds to the JSON property name

Returns:

  • (String)


477
478
479
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 477

def name
  @name
end

#portFixnum

The port of the service endpoint. Corresponds to the JSON property port

Returns:

  • (Fixnum)


482
483
484
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 482

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



489
490
491
492
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 489

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