Class: Google::Apis::ResourceviewsV1beta2::ResourceView

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 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



449
450
451
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 449

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

Instance Attribute Details

#creation_timestampString

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

Returns:

  • (String)


392
393
394
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 392

def creation_timestamp
  @creation_timestamp
end

#descriptionString

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

Returns:

  • (String)


397
398
399
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 397

def description
  @description
end

#endpointsArray<Google::Apis::ResourceviewsV1beta2::ServiceEndpoint>

Services endpoint information. Corresponds to the JSON property endpoints



402
403
404
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 402

def endpoints
  @endpoints
end

#fingerprintString

The fingerprint of the service endpoint information. Corresponds to the JSON property fingerprint

Returns:

  • (String)


407
408
409
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 407

def fingerprint
  @fingerprint
end

#idString

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

Returns:

  • (String)


412
413
414
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 412

def id
  @id
end

#kindString

Type of the resource. Corresponds to the JSON property kind

Returns:

  • (String)


417
418
419
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 417

def kind
  @kind
end

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

The labels for events. Corresponds to the JSON property labels



422
423
424
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 422

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


427
428
429
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 427

def name
  @name
end

#networkString

The URL of a Compute Engine network to which the resources in the view belong. Corresponds to the JSON property network

Returns:

  • (String)


432
433
434
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 432

def network
  @network
end

#resourcesArray<String>

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

Returns:

  • (Array<String>)


437
438
439
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 437

def resources
  @resources
end

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

Returns:

  • (String)


442
443
444
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 442

def self_link
  @self_link
end

#sizeFixnum

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

Returns:

  • (Fixnum)


447
448
449
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 447

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



454
455
456
457
458
459
460
461
462
463
464
465
466
467
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 454

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @endpoints = args[:endpoints] if args.key?(:endpoints)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @network = args[:network] if args.key?(:network)
  @resources = args[:resources] if args.key?(:resources)
  @self_link = args[:self_link] if args.key?(:self_link)
  @size = args[:size] if args.key?(:size)
end