Class: DatadogAPIClient::V1::UsageAttributionPagination
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::UsageAttributionPagination
- Defined in:
- lib/datadog_api_client/v1/models/usage_attribution_pagination.rb
Overview
The metadata for the current pagination.
Instance Attribute Summary collapse
-
#limit ⇒ Object
Maximum amount of records to be returned.
-
#offset ⇒ Object
Records to be skipped before beginning to return.
-
#sort_direction ⇒ Object
Direction to sort by.
-
#sort_name ⇒ Object
Field to sort by.
-
#total_number_of_records ⇒ Object
Total number of records.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UsageAttributionPagination
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ UsageAttributionPagination
Initializes the object
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 |
# File 'lib/datadog_api_client/v1/models/usage_attribution_pagination.rb', line 80 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionPagination` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAttributionPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'limit') self.limit = attributes[:'limit'] end if attributes.key?(:'offset') self.offset = attributes[:'offset'] end if attributes.key?(:'sort_direction') self.sort_direction = attributes[:'sort_direction'] end if attributes.key?(:'sort_name') self.sort_name = attributes[:'sort_name'] end if attributes.key?(:'total_number_of_records') self.total_number_of_records = attributes[:'total_number_of_records'] end end |
Instance Attribute Details
#limit ⇒ Object
Maximum amount of records to be returned.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/usage_attribution_pagination.rb', line 27 def limit @limit end |
#offset ⇒ Object
Records to be skipped before beginning to return.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/usage_attribution_pagination.rb', line 30 def offset @offset end |
#sort_direction ⇒ Object
Direction to sort by.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/usage_attribution_pagination.rb', line 33 def sort_direction @sort_direction end |
#sort_name ⇒ Object
Field to sort by.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/usage_attribution_pagination.rb', line 36 def sort_name @sort_name end |
#total_number_of_records ⇒ Object
Total number of records.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/usage_attribution_pagination.rb', line 39 def total_number_of_records @total_number_of_records end |