Class: Google::Apis::BigqueryV2::IdentityColumnInfo
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::IdentityColumnInfo
- 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
-
#generated_mode ⇒ String
Optional.
-
#increment ⇒ String
Optional.
-
#start ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IdentityColumnInfo
constructor
A new instance of IdentityColumnInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_mode ⇒ String
Optional. Dictates when system generated values are used to populate the field.
Corresponds to the JSON property generatedMode
3976 3977 3978 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3976 def generated_mode @generated_mode end |
#increment ⇒ String
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
3983 3984 3985 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3983 def increment @increment end |
#start ⇒ String
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
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 |