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.



3530
3531
3532
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3530

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)


3486
3487
3488
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3486

def create_time
  @create_time
end

#descriptionString

Free-text description. Corresponds to the JSON property description

Returns:

  • (String)


3491
3492
3493
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3491

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


3496
3497
3498
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3496

def display_name
  @display_name
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)


3501
3502
3503
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3501

def is_managed
  @is_managed
end

#nameString

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

Returns:

  • (String)


3507
3508
3509
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3507

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)


3512
3513
3514
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3512

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)


3518
3519
3520
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3518

def priority
  @priority
end

#typeString

Data source type. Corresponds to the JSON property type

Returns:

  • (String)


3523
3524
3525
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3523

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


3528
3529
3530
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3528

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3535

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