Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1DateRange
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1DateRange
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb
Overview
A representation of usage or invoice date ranges.
Instance Attribute Summary collapse
-
#invoice_end_date ⇒ Google::Apis::CloudchannelV1::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday.
-
#invoice_start_date ⇒ Google::Apis::CloudchannelV1::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday.
-
#usage_end_date_time ⇒ Google::Apis::CloudchannelV1::GoogleTypeDateTime
Represents civil time (or occasionally physical time).
-
#usage_start_date_time ⇒ Google::Apis::CloudchannelV1::GoogleTypeDateTime
Represents civil time (or occasionally physical time).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1alpha1DateRange
constructor
A new instance of GoogleCloudChannelV1alpha1DateRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1alpha1DateRange
Returns a new instance of GoogleCloudChannelV1alpha1DateRange.
3509 3510 3511 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3509 def initialize(**args) update!(**args) end |
Instance Attribute Details
#invoice_end_date ⇒ Google::Apis::CloudchannelV1::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 invoiceEndDate
3459 3460 3461 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3459 def invoice_end_date @invoice_end_date end |
#invoice_start_date ⇒ Google::Apis::CloudchannelV1::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 invoiceStartDate
3471 3472 3473 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3471 def invoice_start_date @invoice_start_date end |
#usage_end_date_time ⇒ Google::Apis::CloudchannelV1::GoogleTypeDateTime
Represents civil time (or occasionally physical time). This type can represent
a civil time in one of a few possible ways: * When utc_offset is set and
time_zone is unset: a civil time on a calendar day with a particular offset
from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
calendar day in a particular time zone. * When neither time_zone nor
utc_offset is set: a civil time on a calendar day in local time. The date is
relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
the DateTime is considered not to have a specific year, month, or day
respectively. This type may also be used to represent a physical time if all
the date and time fields are set and either case of the time_offset
oneof is
set. Consider using Timestamp
message for physical time instead. If your use
case also would like to store the user's timezone, that can be done in another
field. This type is more flexible than some applications may want. Make sure
to document and validate your application's limitations.
Corresponds to the JSON property usageEndDateTime
3489 3490 3491 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3489 def usage_end_date_time @usage_end_date_time end |
#usage_start_date_time ⇒ Google::Apis::CloudchannelV1::GoogleTypeDateTime
Represents civil time (or occasionally physical time). This type can represent
a civil time in one of a few possible ways: * When utc_offset is set and
time_zone is unset: a civil time on a calendar day with a particular offset
from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
calendar day in a particular time zone. * When neither time_zone nor
utc_offset is set: a civil time on a calendar day in local time. The date is
relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
the DateTime is considered not to have a specific year, month, or day
respectively. This type may also be used to represent a physical time if all
the date and time fields are set and either case of the time_offset
oneof is
set. Consider using Timestamp
message for physical time instead. If your use
case also would like to store the user's timezone, that can be done in another
field. This type is more flexible than some applications may want. Make sure
to document and validate your application's limitations.
Corresponds to the JSON property usageStartDateTime
3507 3508 3509 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3507 def usage_start_date_time @usage_start_date_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3514 3515 3516 3517 3518 3519 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3514 def update!(**args) @invoice_end_date = args[:invoice_end_date] if args.key?(:invoice_end_date) @invoice_start_date = args[:invoice_start_date] if args.key?(:invoice_start_date) @usage_end_date_time = args[:usage_end_date_time] if args.key?(:usage_end_date_time) @usage_start_date_time = args[:usage_start_date_time] if args.key?(:usage_start_date_time) end |