Class: Google::Apis::ResourceviewsV1beta2::ListResourceResponseItem

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 list response item that contains the resource and end points information.

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

Returns a new instance of ListResourceResponseItem



64
65
66
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 64

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

Instance Attribute Details

#endpointsHash<String,Array<Fixnum>>

The list of service end points on the resource. Corresponds to the JSON property endpoints

Returns:

  • (Hash<String,Array<Fixnum>>)


57
58
59
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 57

def endpoints
  @endpoints
end

#resourceString

The full URL of the resource. Corresponds to the JSON property resource

Returns:

  • (String)


62
63
64
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 62

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



69
70
71
72
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 69

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