Class: Google::Apis::MigrationcenterV1alpha1::DiscoveryClient

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

Overview

Represents an installed Migration Center Discovery Client instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiscoveryClient

Returns a new instance of DiscoveryClient.



2255
2256
2257
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2255

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

Instance Attribute Details

#create_timeString

Output only. Time when the discovery client was first created. Corresponds to the JSON property createTime

Returns:

  • (String)


2177
2178
2179
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2177

def create_time
  @create_time
end

#descriptionString

Optional. Free text description. Maximum length is 1000 characters. Corresponds to the JSON property description

Returns:

  • (String)


2182
2183
2184
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2182

def description
  @description
end

#display_nameString

Optional. Free text display name. Maximum length is 63 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


2187
2188
2189
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2187

def display_name
  @display_name
end

#errorsArray<Google::Apis::MigrationcenterV1alpha1::Status>

Output only. Errors affecting client functionality. Corresponds to the JSON property errors



2192
2193
2194
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2192

def errors
  @errors
end

#expire_timeString

Optional. Client expiration time in UTC. If specified, the backend will not accept new frames after this time. Corresponds to the JSON property expireTime

Returns:

  • (String)


2198
2199
2200
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2198

def expire_time
  @expire_time
end

#heartbeat_timeString

Output only. Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes). Corresponds to the JSON property heartbeatTime

Returns:

  • (String)


2204
2205
2206
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2204

def heartbeat_time
  @heartbeat_time
end

#labelsHash<String,String>

Optional. Labels as key value pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2209
2210
2211
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2209

def labels
  @labels
end

#nameString

Output only. Identifier. Full name of this discovery client. Corresponds to the JSON property name

Returns:

  • (String)


2214
2215
2216
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2214

def name
  @name
end

#service_accountString

Required. Service account used by the discovery client for various operation. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


2219
2220
2221
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2219

def 
  @service_account
end

#signals_endpointString

Output only. This field is intended for internal use. Corresponds to the JSON property signalsEndpoint

Returns:

  • (String)


2224
2225
2226
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2224

def signals_endpoint
  @signals_endpoint
end

#sourceString

Required. Full name of the source object associated with this discovery client. Corresponds to the JSON property source

Returns:

  • (String)


2229
2230
2231
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2229

def source
  @source
end

#stateString

Output only. Current state of the discovery client. Corresponds to the JSON property state

Returns:

  • (String)


2234
2235
2236
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2234

def state
  @state
end

#ttlString

Optional. Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the expire_time field. Corresponds to the JSON property ttl

Returns:

  • (String)


2241
2242
2243
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2241

def ttl
  @ttl
end

#update_timeString

Output only. Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the heartbeat_time field. Corresponds to the JSON property updateTime

Returns:

  • (String)


2248
2249
2250
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2248

def update_time
  @update_time
end

#versionString

Output only. Client version, as reported in recent heartbeat. Corresponds to the JSON property version

Returns:

  • (String)


2253
2254
2255
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2253

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2260

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @errors = args[:errors] if args.key?(:errors)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @heartbeat_time = args[:heartbeat_time] if args.key?(:heartbeat_time)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @service_account = args[:service_account] if args.key?(:service_account)
  @signals_endpoint = args[:signals_endpoint] if args.key?(:signals_endpoint)
  @source = args[:source] if args.key?(:source)
  @state = args[:state] if args.key?(:state)
  @ttl = args[:ttl] if args.key?(:ttl)
  @update_time = args[:update_time] if args.key?(:update_time)
  @version = args[:version] if args.key?(:version)
end