Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DateTime
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DateTime
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb
Overview
Message for a date time object.
Instance Attribute Summary collapse
-
#date ⇒ Google::Apis::DlpV2beta2::GoogleTypeDate
Represents a whole calendar date, e.g.
-
#day_of_week ⇒ String
Corresponds to the JSON property
dayOfWeek
. -
#time ⇒ Google::Apis::DlpV2beta2::GoogleTypeTimeOfDay
Represents a time of day.
-
#time_zone ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2TimeZone
Corresponds to the JSON property
timeZone
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2DateTime
constructor
A new instance of GooglePrivacyDlpV2beta2DateTime.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2DateTime
Returns a new instance of GooglePrivacyDlpV2beta2DateTime
2708 2709 2710 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2708 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date ⇒ Google::Apis::DlpV2beta2::GoogleTypeDate
Represents a whole calendar date, e.g. date of birth. The time of day and
time zone are either specified elsewhere or are not significant. The date
is relative to the Proleptic Gregorian Calendar. The day may be 0 to
represent a year and month where the day is not significant, e.g. credit card
expiration date. The year may be 0 to represent a month and day independent
of year, e.g. anniversary date. Related types are google.type.TimeOfDay
and google.protobuf.Timestamp
.
Corresponds to the JSON property date
2689 2690 2691 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2689 def date @date end |
#day_of_week ⇒ String
Corresponds to the JSON property dayOfWeek
2694 2695 2696 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2694 def day_of_week @day_of_week end |
#time ⇒ Google::Apis::DlpV2beta2::GoogleTypeTimeOfDay
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
2701 2702 2703 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2701 def time @time end |
#time_zone ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2TimeZone
Corresponds to the JSON property timeZone
2706 2707 2708 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2706 def time_zone @time_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2713 2714 2715 2716 2717 2718 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2713 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 |