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.



1329
1330
1331
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1329

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)


1251
1252
1253
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1251

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


1256
1257
1258
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1256

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


1261
1262
1263
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1261

def display_name
  @display_name
end

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

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



1266
1267
1268
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1266

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)


1272
1273
1274
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1272

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)


1278
1279
1280
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1278

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


1283
1284
1285
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1283

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


1288
1289
1290
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1288

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)


1293
1294
1295
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1293

def 
  @service_account
end

#signals_endpointString

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

Returns:

  • (String)


1298
1299
1300
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1298

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)


1303
1304
1305
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1303

def source
  @source
end

#stateString

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

Returns:

  • (String)


1308
1309
1310
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1308

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)


1315
1316
1317
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1315

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)


1322
1323
1324
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1322

def update_time
  @update_time
end

#versionString

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

Returns:

  • (String)


1327
1328
1329
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1327

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1334

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