Class: Google::Apis::BigqueryV2::TimePartitioning
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::TimePartitioning
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb
Instance Attribute Summary collapse
-
#expiration_ms ⇒ Fixnum
[Optional] Number of milliseconds for which to keep the storage for a partition.
-
#type ⇒ String
[Required] The only type supported is DAY, which will generate one partition per day based on data loading time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimePartitioning
constructor
A new instance of TimePartitioning.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TimePartitioning
Returns a new instance of TimePartitioning
3037 3038 3039 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3037 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expiration_ms ⇒ Fixnum
[Optional] Number of milliseconds for which to keep the storage for a
partition.
Corresponds to the JSON property expirationMs
3029 3030 3031 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3029 def expiration_ms @expiration_ms end |
#type ⇒ String
[Required] The only type supported is DAY, which will generate one partition
per day based on data loading time.
Corresponds to the JSON property type
3035 3036 3037 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3035 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3042 3043 3044 3045 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3042 def update!(**args) @expiration_ms = args[:expiration_ms] if args.key?(:expiration_ms) @type = args[:type] if args.key?(:type) end |