class Google::Apis::DlpV2::GooglePrivacyDlpV2DateTime

Message for a date time object. e.g. 2018-01-01, 5th August.

Attributes

date[RW]

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 value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and ` google.protobuf.Timestamp`. Corresponds to the JSON property `date` @return [Google::Apis::DlpV2::GoogleTypeDate]

day_of_week[RW]

Day of week Corresponds to the JSON property `dayOfWeek` @return [String]

time[RW]

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. Corresponds to the JSON property `time` @return [Google::Apis::DlpV2::GoogleTypeTimeOfDay]

time_zone[RW]

Time zone of the date time object. Corresponds to the JSON property `timeZone` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TimeZone]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dlp_v2/classes.rb, line 1675
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dlp_v2/classes.rb, line 1680
def update!(**args)
  @date = args[:date] if args.key?(:date)
  @day_of_week = args[:day_of_week] if args.key?(:day_of_week)
  @time = args[:time] if args.key?(:time)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end