Class: Azure::PolicyInsights::Mgmt::V2019_10_01::Models::QueryOptions
- Inherits:
-
Object
- Object
- Azure::PolicyInsights::Mgmt::V2019_10_01::Models::QueryOptions
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb
Overview
Additional parameters for a set of operations.
Instance Attribute Summary collapse
-
#apply ⇒ String
OData apply expression for aggregations.
-
#expand ⇒ String
components use $expand=components.
-
#filter ⇒ String
OData filter expression.
-
#from ⇒ DateTime
time of the interval to query.
-
#order_by ⇒ String
comma-separated column names with an optional “desc” (the default) or “asc”, e.g.
-
#select ⇒ String
columns on each record to just those requested, e.g.
-
#skip_token ⇒ String
returned a partial result as a part of nextLink element.
-
#to ⇒ DateTime
of the interval to query.
-
#top ⇒ Integer
Maximum number of records to return.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for QueryOptions class as Ruby Hash.
Instance Attribute Details
#apply ⇒ String
Returns OData apply expression for aggregations.
42 43 44 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb', line 42 def apply @apply end |
#expand ⇒ String
components use $expand=components
50 51 52 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb', line 50 def @expand end |
#filter ⇒ String
Returns OData filter expression.
39 40 41 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb', line 39 def filter @filter end |
#from ⇒ DateTime
time of the interval to query. When not specified, the service uses ($to - 1-day).
31 32 33 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb', line 31 def from @from end |
#order_by ⇒ String
comma-separated column names with an optional “desc” (the default) or “asc”, e.g. “$orderby=PolicyAssignmentId, ResourceId asc”.
21 22 23 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb', line 21 def order_by @order_by end |
#select ⇒ String
columns on each record to just those requested, e.g. “$select=PolicyAssignmentId, ResourceId”.
26 27 28 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb', line 26 def select @select end |
#skip_token ⇒ String
returned a partial result as a part of nextLink element.
46 47 48 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb', line 46 def skip_token @skip_token end |
#to ⇒ DateTime
of the interval to query. When not specified, the service uses request time.
36 37 38 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb', line 36 def to @to end |
#top ⇒ Integer
Returns Maximum number of records to return.
16 17 18 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb', line 16 def top @top end |
Class Method Details
.mapper ⇒ Object
Mapper for QueryOptions class as Ruby Hash. This will be used for serialization/deserialization.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/query_options.rb', line 57 def self.mapper() { client_side_validation: true, required: false, type: { name: 'Composite', class_name: 'QueryOptions', model_properties: { top: { client_side_validation: true, required: false, type: { name: 'Number' } }, order_by: { client_side_validation: true, required: false, type: { name: 'String' } }, select: { client_side_validation: true, required: false, type: { name: 'String' } }, from: { client_side_validation: true, required: false, type: { name: 'DateTime' } }, to: { client_side_validation: true, required: false, type: { name: 'DateTime' } }, filter: { client_side_validation: true, required: false, type: { name: 'String' } }, apply: { client_side_validation: true, required: false, type: { name: 'String' } }, skip_token: { client_side_validation: true, required: false, type: { name: 'String' } }, expand: { client_side_validation: true, required: false, type: { name: 'String' } } } } } end |