Class: Google::Apis::BeyondcorpV1alpha::ResourceInfo
- Inherits:
-
Object
- Object
- Google::Apis::BeyondcorpV1alpha::ResourceInfo
- 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
-
#id ⇒ String
Required.
-
#resource ⇒ Hash<String,Object>
Specific details for the resource.
-
#status ⇒ String
Overall health status.
-
#sub ⇒ Array<Google::Apis::BeyondcorpV1alpha::ResourceInfo>
List of Info for the sub level resources.
-
#time ⇒ String
The timestamp to collect the info.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceInfo
constructor
A new instance of ResourceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceInfo
Returns a new instance of ResourceInfo.
3898 3899 3900 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3898 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Required. Unique Id for the resource.
Corresponds to the JSON property id
3874 3875 3876 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3874 def id @id end |
#resource ⇒ Hash<String,Object>
Specific details for the resource.
Corresponds to the JSON property resource
3879 3880 3881 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3879 def resource @resource end |
#status ⇒ String
Overall health status. Overall status is derived based on the status of each
sub level resources.
Corresponds to the JSON property status
3885 3886 3887 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3885 def status @status end |
#sub ⇒ Array<Google::Apis::BeyondcorpV1alpha::ResourceInfo>
List of Info for the sub level resources.
Corresponds to the JSON property sub
3890 3891 3892 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3890 def sub @sub end |
#time ⇒ String
The timestamp to collect the info. It is suggested to be set by the topmost
level resource only.
Corresponds to the JSON property time
3896 3897 3898 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3896 def time @time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3903 3904 3905 3906 3907 3908 3909 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 3903 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 |