Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldDateOptions
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldDateOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drivelabels_v2beta/classes.rb,
lib/google/apis/drivelabels_v2beta/representations.rb,
lib/google/apis/drivelabels_v2beta/representations.rb
Overview
Options for the date field type.
Instance Attribute Summary collapse
-
#date_format ⇒ String
Output only.
-
#date_format_type ⇒ String
Localized date formatting option.
-
#max_value ⇒ Google::Apis::DrivelabelsV2beta::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday.
-
#min_value ⇒ Google::Apis::DrivelabelsV2beta::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldDateOptions
constructor
A new instance of GoogleAppsDriveLabelsV2betaFieldDateOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldDateOptions
Returns a new instance of GoogleAppsDriveLabelsV2betaFieldDateOptions.
1519 1520 1521 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1519 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_format ⇒ String
Output only. ICU date format.
Corresponds to the JSON property dateFormat
1487 1488 1489 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1487 def date_format @date_format end |
#date_format_type ⇒ String
Localized date formatting option. Field values are rendered in this format
according to their locale.
Corresponds to the JSON property dateFormatType
1493 1494 1495 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1493 def date_format_type @date_format_type end |
#max_value ⇒ Google::Apis::DrivelabelsV2beta::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property maxValue
1505 1506 1507 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1505 def max_value @max_value end |
#min_value ⇒ Google::Apis::DrivelabelsV2beta::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property minValue
1517 1518 1519 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1517 def min_value @min_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1524 1525 1526 1527 1528 1529 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1524 def update!(**args) @date_format = args[:date_format] if args.key?(:date_format) @date_format_type = args[:date_format_type] if args.key?(:date_format_type) @max_value = args[:max_value] if args.key?(:max_value) @min_value = args[:min_value] if args.key?(:min_value) end |