Class: Google::Apis::BeyondcorpV1alpha::ResourceInfo

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

Overview

ResourceInfo represents the information/status of the associated resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceInfo

Returns a new instance of ResourceInfo.



3574
3575
3576
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3574

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

Instance Attribute Details

#idString

Required. Unique Id for the resource. Corresponds to the JSON property id

Returns:

  • (String)


3550
3551
3552
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3550

def id
  @id
end

#resourceHash<String,Object>

Specific details for the resource. Corresponds to the JSON property resource

Returns:

  • (Hash<String,Object>)


3555
3556
3557
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3555

def resource
  @resource
end

#statusString

Overall health status. Overall status is derived based on the status of each sub level resources. Corresponds to the JSON property status

Returns:

  • (String)


3561
3562
3563
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3561

def status
  @status
end

#subArray<Google::Apis::BeyondcorpV1alpha::ResourceInfo>

List of Info for the sub level resources. Corresponds to the JSON property sub



3566
3567
3568
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3566

def sub
  @sub
end

#timeString

The timestamp to collect the info. It is suggested to be set by the topmost level resource only. Corresponds to the JSON property time

Returns:

  • (String)


3572
3573
3574
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3572

def time
  @time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3579
3580
3581
3582
3583
3584
3585
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3579

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @resource = args[:resource] if args.key?(:resource)
  @status = args[:status] if args.key?(:status)
  @sub = args[:sub] if args.key?(:sub)
  @time = args[:time] if args.key?(:time)
end