Class: Google::Apis::BigqueryV2::IdentityColumnInfo

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

Overview

Metadata for value generation for an identity column.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IdentityColumnInfo

Returns a new instance of IdentityColumnInfo.



3991
3992
3993
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3991

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

Instance Attribute Details

#generated_modeString

Optional. Dictates when system generated values are used to populate the field. Corresponds to the JSON property generatedMode

Returns:

  • (String)


3976
3977
3978
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3976

def generated_mode
  @generated_mode
end

#incrementString

Optional. The minimum difference between two successive generated values. Should be INTEGER compatible. Can be negative or positive but not 0. The default value is 1 if the field is not specified. Corresponds to the JSON property increment

Returns:

  • (String)


3983
3984
3985
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3983

def increment
  @increment
end

#startString

Optional. The first generated value. Should be INTEGER compatible. The default value is 1 if the field is not specified. Corresponds to the JSON property start

Returns:

  • (String)


3989
3990
3991
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3989

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3996
3997
3998
3999
4000
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3996

def update!(**args)
  @generated_mode = args[:generated_mode] if args.key?(:generated_mode)
  @increment = args[:increment] if args.key?(:increment)
  @start = args[:start] if args.key?(:start)
end