Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDateLimits

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

Limits for date Field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaDateLimits

Returns a new instance of GoogleAppsDriveLabelsV2betaDateLimits.



364
365
366
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 364

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

Instance Attribute Details

#max_valueGoogle::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



350
351
352
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 350

def max_value
  @max_value
end

#min_valueGoogle::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



362
363
364
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 362

def min_value
  @min_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



369
370
371
372
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 369

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