Class: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaResourceInfo

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 an app connector resource. Such as: - remote_agent - container - runtime - appgateway - appconnector - appconnection - tunnel - logagent

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBeyondcorpAppconnectorsV1alphaResourceInfo

Returns a new instance of GoogleCloudBeyondcorpAppconnectorsV1alphaResourceInfo.



1778
1779
1780
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1778

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


1754
1755
1756
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1754

def id
  @id
end

#resourceHash<String,Object>

Specific details for the resource. This is for internal use only. Corresponds to the JSON property resource

Returns:

  • (Hash<String,Object>)


1759
1760
1761
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1759

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)


1765
1766
1767
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1765

def status
  @status
end

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

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



1770
1771
1772
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1770

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)


1776
1777
1778
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1776

def time
  @time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1783
1784
1785
1786
1787
1788
1789
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1783

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