class Azure::PolicyInsights::Mgmt::V2017_12_12_preview::Models::QueryOptions

Additional parameters for a set of operations.

Attributes

apply[RW]

@return [String] OData apply expression for aggregations.

filter[RW]

@return [String] OData filter expression.

from[RW]

@return [DateTime] ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).

order_by[RW]

@return [String] Ordering expression using OData notation. One or more comma-separated column names with an optional “desc” (the default) or “asc”, e.g. “$orderby=PolicyAssignmentId, ResourceId asc”.

select[RW]

@return [String] Select expression using OData notation. Limits the columns on each record to just those requested, e.g. “$select=PolicyAssignmentId, ResourceId”.

to[RW]

@return [DateTime] ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.

top[RW]

@return [Integer] Maximum number of records to return.

Public Class Methods

mapper() click to toggle source

Mapper for QueryOptions class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2017-12-12-preview/generated/azure_mgmt_policy_insights/models/query_options.rb, line 49
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'
          }
        }
      }
    }
  }
end