Class: Google::Apis::CloudsearchV1::DateTimePicker
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::DateTimePicker
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#label ⇒ String
The label for the field, which is displayed to the user.
-
#name ⇒ String
The name of the text field which is used in FormInput, and uniquely identifies this input.
-
#on_change ⇒ Google::Apis::CloudsearchV1::FormAction
Triggered when the user clicks on the Save, or Clear button from the date / time picker dialog.
-
#timezone_offset_date ⇒ Fixnum
The number representing the time-zone offset from UTC, in minutes.
-
#type ⇒ String
The type of the DateTimePicker.
-
#value_ms_epoch ⇒ Fixnum
The value to display which can be the default value before user input or previous user input.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DateTimePicker
constructor
A new instance of DateTimePicker.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DateTimePicker
Returns a new instance of DateTimePicker.
6457 6458 6459 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6457 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label ⇒ String
The label for the field, which is displayed to the user.
Corresponds to the JSON property label
6420 6421 6422 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6420 def label @label end |
#name ⇒ String
The name of the text field which is used in FormInput, and uniquely identifies
this input.
Corresponds to the JSON property name
6426 6427 6428 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6426 def name @name end |
#on_change ⇒ Google::Apis::CloudsearchV1::FormAction
Triggered when the user clicks on the Save, or Clear button from the date /
time picker dialog. Will only be triggered if the value changed as a result of
the Save / Clear operation.
Corresponds to the JSON property onChange
6433 6434 6435 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6433 def on_change @on_change end |
#timezone_offset_date ⇒ Fixnum
The number representing the time-zone offset from UTC, in minutes. If set, the
value_ms_epoch will be displayed in the specified time zone. If not set, it
will use the user's timezone setting in client side.
Corresponds to the JSON property timezoneOffsetDate
6440 6441 6442 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6440 def timezone_offset_date @timezone_offset_date end |
#type ⇒ String
The type of the DateTimePicker.
Corresponds to the JSON property type
6445 6446 6447 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6445 def type @type end |
#value_ms_epoch ⇒ Fixnum
The value to display which can be the default value before user input or
previous user input. It is represented in milliseconds (Epoch time). - For
DATE_AND_TIME type, the full epoch value is used. - For DATE_ONLY type, only
date of the epoch time is used. - For TIME_ONLY type, only time of the epoch
time is used. For example, you can set epoch time to 3 * 60 * 60 * 1000 to
represent 3am.
Corresponds to the JSON property valueMsEpoch
6455 6456 6457 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6455 def value_ms_epoch @value_ms_epoch end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6462 6463 6464 6465 6466 6467 6468 6469 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6462 def update!(**args) @label = args[:label] if args.key?(:label) @name = args[:name] if args.key?(:name) @on_change = args[:on_change] if args.key?(:on_change) @timezone_offset_date = args[:timezone_offset_date] if args.key?(:timezone_offset_date) @type = args[:type] if args.key?(:type) @value_ms_epoch = args[:value_ms_epoch] if args.key?(:value_ms_epoch) end |