Class: Google::Apis::MigrationcenterV1::Source

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



4735
4736
4737
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4735

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)


4680
4681
4682
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4680

def create_time
  @create_time
end

#descriptionString

Free-text description. Corresponds to the JSON property description

Returns:

  • (String)


4685
4686
4687
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4685

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


4690
4691
4692
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4690

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)


4696
4697
4698
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4696

def error_frame_count
  @error_frame_count
end

#managedBoolean Also known as: managed?

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

Returns:

  • (Boolean)


4701
4702
4703
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4701

def managed
  @managed
end

#nameString

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

Returns:

  • (String)


4707
4708
4709
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4707

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)


4712
4713
4714
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4712

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)


4718
4719
4720
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4718

def priority
  @priority
end

#stateString

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

Returns:

  • (String)


4723
4724
4725
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4723

def state
  @state
end

#typeString

Data source type. Corresponds to the JSON property type

Returns:

  • (String)


4728
4729
4730
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4728

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


4733
4734
4735
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4733

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4740

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)
  @managed = args[:managed] if args.key?(: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