Class: Google::Apis::ResourceviewsV1beta1::ResourceView

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

Overview

The resource view object.

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

Returns a new instance of ResourceView



211
212
213
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 211

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

Instance Attribute Details

#creation_timeString

The creation time of the resource view. Corresponds to the JSON property creationTime

Returns:

  • (String)


164
165
166
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 164

def creation_time
  @creation_time
end

#descriptionString

The detailed description of the resource view. Corresponds to the JSON property description

Returns:

  • (String)


169
170
171
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 169

def description
  @description
end

#idString

[Output Only] The ID of the resource view. Corresponds to the JSON property id

Returns:

  • (String)


174
175
176
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 174

def id
  @id
end

#kindString

Type of the resource. Corresponds to the JSON property kind

Returns:

  • (String)


179
180
181
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 179

def kind
  @kind
end

#labelsArray<Google::Apis::ResourceviewsV1beta1::Label>

The labels for events. Corresponds to the JSON property labels



184
185
186
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 184

def labels
  @labels
end

#last_modifiedString

The last modified time of the view. Not supported yet. Corresponds to the JSON property lastModified

Returns:

  • (String)


189
190
191
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 189

def last_modified
  @last_modified
end

#membersArray<String>

A list of all resources in the resource view. Corresponds to the JSON property members

Returns:

  • (Array<String>)


194
195
196
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 194

def members
  @members
end

#nameString

The name of the resource view. Corresponds to the JSON property name

Returns:

  • (String)


199
200
201
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 199

def name
  @name
end

#num_membersFixnum

The total number of resources in the resource view. Corresponds to the JSON property numMembers

Returns:

  • (Fixnum)


204
205
206
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 204

def num_members
  @num_members
end

[Output Only] A self-link to the resource view. Corresponds to the JSON property selfLink

Returns:

  • (String)


209
210
211
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 209

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



216
217
218
219
220
221
222
223
224
225
226
227
# File 'generated/google/apis/resourceviews_v1beta1/classes.rb', line 216

def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @labels = args[:labels] if args.key?(:labels)
  @last_modified = args[:last_modified] if args.key?(:last_modified)
  @members = args[:members] if args.key?(:members)
  @name = args[:name] if args.key?(:name)
  @num_members = args[:num_members] if args.key?(:num_members)
  @self_link = args[:self_link] if args.key?(:self_link)
end