Class: Google::Apis::BigqueryV2::TimePartitioning

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TimePartitioning

Returns a new instance of TimePartitioning.



2953
2954
2955
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2953

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

Instance Attribute Details

#expiration_msString

[Optional] Number of milliseconds for which to keep the storage for a partition. Corresponds to the JSON property expirationMs

Returns:

  • (String)


2945
2946
2947
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2945

def expiration_ms
  @expiration_ms
end

#typeString

[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

Returns:

  • (String)


2951
2952
2953
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2951

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2958
2959
2960
2961
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2958

def update!(**args)
  @expiration_ms = args[:expiration_ms] if args.key?(:expiration_ms)
  @type = args[:type] if args.key?(:type)
end