Class: Google::Apis::DatamigrationV1::SequenceEntity

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

Overview

Sequence's parent is a schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SequenceEntity

Returns a new instance of SequenceEntity.



4040
4041
4042
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4040

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

Instance Attribute Details

#cacheFixnum

Indicates number of entries to cache / precreate. Corresponds to the JSON property cache

Returns:

  • (Fixnum)


4001
4002
4003
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4001

def cache
  @cache
end

#custom_featuresHash<String,Object>

Custom engine specific features. Corresponds to the JSON property customFeatures

Returns:

  • (Hash<String,Object>)


4006
4007
4008
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4006

def custom_features
  @custom_features
end

#cycleBoolean Also known as: cycle?

Indicates whether the sequence value should cycle through. Corresponds to the JSON property cycle

Returns:

  • (Boolean)


4011
4012
4013
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4011

def cycle
  @cycle
end

#incrementFixnum

Increment value for the sequence. Corresponds to the JSON property increment

Returns:

  • (Fixnum)


4017
4018
4019
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4017

def increment
  @increment
end

#max_valueString

Maximum number for the sequence represented as bytes to accommodate large. numbers Corresponds to the JSON property maxValue NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


4024
4025
4026
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4024

def max_value
  @max_value
end

#min_valueString

Minimum number for the sequence represented as bytes to accommodate large. numbers Corresponds to the JSON property minValue NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


4031
4032
4033
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4031

def min_value
  @min_value
end

#start_valueString

Start number for the sequence represented as bytes to accommodate large. numbers Corresponds to the JSON property startValue NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


4038
4039
4040
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4038

def start_value
  @start_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4045
4046
4047
4048
4049
4050
4051
4052
4053
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4045

def update!(**args)
  @cache = args[:cache] if args.key?(:cache)
  @custom_features = args[:custom_features] if args.key?(:custom_features)
  @cycle = args[:cycle] if args.key?(:cycle)
  @increment = args[:increment] if args.key?(:increment)
  @max_value = args[:max_value] if args.key?(:max_value)
  @min_value = args[:min_value] if args.key?(:min_value)
  @start_value = args[:start_value] if args.key?(:start_value)
end