Class: Azure::CostManagement::Mgmt::V2019_01_01::Models::QueryTimePeriod
- Inherits:
-
Object
- Object
- Azure::CostManagement::Mgmt::V2019_01_01::Models::QueryTimePeriod
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_time_period.rb
Overview
The start and end date for pulling data for the query.
Instance Attribute Summary collapse
-
#from ⇒ DateTime
The start date to pull data from.
-
#to ⇒ DateTime
The end date to pull data to.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for QueryTimePeriod class as Ruby Hash.
Instance Attribute Details
#from ⇒ DateTime
Returns The start date to pull data from.
16 17 18 |
# File 'lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_time_period.rb', line 16 def from @from end |
#to ⇒ DateTime
Returns The end date to pull data to.
19 20 21 |
# File 'lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_time_period.rb', line 19 def to @to end |
Class Method Details
.mapper ⇒ Object
Mapper for QueryTimePeriod class as Ruby Hash. This will be used for serialization/deserialization.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_time_period.rb', line 26 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'QueryTimePeriod', type: { name: 'Composite', class_name: 'QueryTimePeriod', model_properties: { from: { client_side_validation: true, required: true, serialized_name: 'from', type: { name: 'DateTime' } }, to: { client_side_validation: true, required: true, serialized_name: 'to', type: { name: 'DateTime' } } } } } end |