Class: Google::Apis::BeyondcorpV1::GoogleCloudBeyondcorpAppconnectorsV1ResourceInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/beyondcorp_v1/classes.rb,
lib/google/apis/beyondcorp_v1/representations.rb,
lib/google/apis/beyondcorp_v1/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) ⇒ GoogleCloudBeyondcorpAppconnectorsV1ResourceInfo

Returns a new instance of GoogleCloudBeyondcorpAppconnectorsV1ResourceInfo.



1181
1182
1183
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1181

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


1157
1158
1159
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1157

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


1162
1163
1164
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1162

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)


1168
1169
1170
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1168

def status
  @status
end

#subArray<Google::Apis::BeyondcorpV1::GoogleCloudBeyondcorpAppconnectorsV1ResourceInfo>

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



1173
1174
1175
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1173

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)


1179
1180
1181
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1179

def time
  @time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1186
1187
1188
1189
1190
1191
1192
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 1186

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