Class: Google::Apis::MigrationcenterV1alpha1::Source

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

Source represents an object from which asset information is streamed to Migration Center.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Source

Returns a new instance of Source.



4539
4540
4541
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4539

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

Instance Attribute Details

#create_timeString

Output only. The timestamp when the source was created. Corresponds to the JSON property createTime

Returns:

  • (String)


4484
4485
4486
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4484

def create_time
  @create_time
end

#descriptionString

Free-text description. Corresponds to the JSON property description

Returns:

  • (String)


4489
4490
4491
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4489

def description
  @description
end

#display_nameString

User-friendly display name. Corresponds to the JSON property displayName

Returns:

  • (String)


4494
4495
4496
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4494

def display_name
  @display_name
end

#error_frame_countFixnum

Output only. The number of frames that were reported by the source and contained errors. Corresponds to the JSON property errorFrameCount

Returns:

  • (Fixnum)


4500
4501
4502
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4500

def error_frame_count
  @error_frame_count
end

#is_managedBoolean Also known as: is_managed?

If true, the source is managed by other service(s). Corresponds to the JSON property isManaged

Returns:

  • (Boolean)


4505
4506
4507
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4505

def is_managed
  @is_managed
end

#nameString

Output only. The full name of the source. Corresponds to the JSON property name

Returns:

  • (String)


4511
4512
4513
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4511

def name
  @name
end

#pending_frame_countFixnum

Output only. Number of frames that are still being processed. Corresponds to the JSON property pendingFrameCount

Returns:

  • (Fixnum)


4516
4517
4518
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4516

def pending_frame_count
  @pending_frame_count
end

#priorityFixnum

The information confidence of the source. The higher the value, the higher the confidence. Corresponds to the JSON property priority

Returns:

  • (Fixnum)


4522
4523
4524
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4522

def priority
  @priority
end

#stateString

Output only. The state of the source. Corresponds to the JSON property state

Returns:

  • (String)


4527
4528
4529
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4527

def state
  @state
end

#typeString

Data source type. Corresponds to the JSON property type

Returns:

  • (String)


4532
4533
4534
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4532

def type
  @type
end

#update_timeString

Output only. The timestamp when the source was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


4537
4538
4539
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4537

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4544

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)
  @error_frame_count = args[:error_frame_count] if args.key?(:error_frame_count)
  @is_managed = args[:is_managed] if args.key?(:is_managed)
  @name = args[:name] if args.key?(:name)
  @pending_frame_count = args[:pending_frame_count] if args.key?(:pending_frame_count)
  @priority = args[:priority] if args.key?(:priority)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end