Class: Google::Apis::BatchV1::AgentMetadata

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

Overview

AgentMetadata never changes for a single instance of VM agent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AgentMetadata

Returns a new instance of AgentMetadata.



163
164
165
# File 'lib/google/apis/batch_v1/classes.rb', line 163

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

Instance Attribute Details

#creation_timeString

When the VM agent started. Corresponds to the JSON property creationTime

Returns:

  • (String)


129
130
131
# File 'lib/google/apis/batch_v1/classes.rb', line 129

def creation_time
  @creation_time
end

#creatorString

Full name of the entity that created this vm. For MIG, this path is: projects/ project/regions/region/InstanceGroupManagers/igm The value is retrieved from the vm metadata key of "created-by". Corresponds to the JSON property creator

Returns:

  • (String)


136
137
138
# File 'lib/google/apis/batch_v1/classes.rb', line 136

def creator
  @creator
end

#instanceString

GCP instance name (go/instance-name). Corresponds to the JSON property instance

Returns:

  • (String)


141
142
143
# File 'lib/google/apis/batch_v1/classes.rb', line 141

def instance
  @instance
end

#instance_idFixnum

GCP instance ID (go/instance-id). Corresponds to the JSON property instanceId

Returns:

  • (Fixnum)


146
147
148
# File 'lib/google/apis/batch_v1/classes.rb', line 146

def instance_id
  @instance_id
end

#os_releaseHash<String,String>

parsed contents of /etc/os-release Corresponds to the JSON property osRelease

Returns:

  • (Hash<String,String>)


151
152
153
# File 'lib/google/apis/batch_v1/classes.rb', line 151

def os_release
  @os_release
end

#versionString

agent binary version running on VM Corresponds to the JSON property version

Returns:

  • (String)


156
157
158
# File 'lib/google/apis/batch_v1/classes.rb', line 156

def version
  @version
end

#zoneString

Agent zone. Corresponds to the JSON property zone

Returns:

  • (String)


161
162
163
# File 'lib/google/apis/batch_v1/classes.rb', line 161

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



168
169
170
171
172
173
174
175
176
# File 'lib/google/apis/batch_v1/classes.rb', line 168

def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @creator = args[:creator] if args.key?(:creator)
  @instance = args[:instance] if args.key?(:instance)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @os_release = args[:os_release] if args.key?(:os_release)
  @version = args[:version] if args.key?(:version)
  @zone = args[:zone] if args.key?(:zone)
end