Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageDateTimePicker

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

Overview

The widget that lets users to specify a date and time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteStorageDateTimePicker

Returns a new instance of AppsDynamiteStorageDateTimePicker.



3296
3297
3298
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3296

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

Instance Attribute Details

#labelString

The label for the field that displays to the user. Corresponds to the JSON property label

Returns:

  • (String)


3261
3262
3263
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3261

def label
  @label
end

#nameString

The name of the text input that's used in formInput, and uniquely identifies this input. Corresponds to the JSON property name

Returns:

  • (String)


3267
3268
3269
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3267

def name
  @name
end

#on_change_actionGoogle::Apis::CloudsearchV1::AppsDynamiteStorageAction

An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form. Corresponds to the JSON property onChangeAction



3273
3274
3275
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3273

def on_change_action
  @on_change_action
end

#timezone_offset_dateFixnum

The number representing the time zone offset from UTC, in minutes. If set, the value_ms_epoch is displayed in the specified time zone. If not set, it uses the user's time zone setting on the client side. Corresponds to the JSON property timezoneOffsetDate

Returns:

  • (Fixnum)


3280
3281
3282
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3280

def timezone_offset_date
  @timezone_offset_date
end

#typeString

The type of the date/time picker. Corresponds to the JSON property type

Returns:

  • (String)


3285
3286
3287
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3285

def type
  @type
end

#value_ms_epochFixnum

The value to display as 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

Returns:

  • (Fixnum)


3294
3295
3296
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3294

def value_ms_epoch
  @value_ms_epoch
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3301
3302
3303
3304
3305
3306
3307
3308
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3301

def update!(**args)
  @label = args[:label] if args.key?(:label)
  @name = args[:name] if args.key?(:name)
  @on_change_action = args[:on_change_action] if args.key?(:on_change_action)
  @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